Thanks very much for the reply (and Andy and Henrik also)...
However, the default time is in minutes, not seconds. I was trying to
figure out why status+87600 wasn't turning purple after 24.5 hours :)
From the man page (thanks again Andy). "The LIFETIME is in minutes,
unless you add an "h" (hours), "d" (days) or "w" (weeks) immediately
after the number, e.g. "status+5h" for a status that is valid for 5
hours."
Thanks,
Al
-----Original Message-----
From: Charles Jones [mailto:user-e86b4aeade4e@xymon.invalid]
Sent: Tuesday, November 08, 2005 9:08 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Script Delay
Jeffcoat, Al wrote:
All,
Is there a way to write a script in such a way that it only reports in
once a day (I know how to do this part), and then tell hobbit not to
turn that test purple for 24 hours after it receives that last status?
Al,
Sure, just append the number of seconds to your status message (in the
format of "+seconds" see example below). Hobbit will then not turn
purple unless that time expires and no further status messages have been
received.
$BB $BBDISP "status+86400 $MACHINE.$COLUMN $COLOR `date` &green This is
a green message that won't expire for 24 hours."
-Charles