[hobbit] Script Delay
Henrik Stoerner
henrik at hswn.dk
Wed Nov 9 07:34:20 CET 2005
On Tue, Nov 08, 2005 at 07:07:57PM -0700, Charles Jones wrote:
> 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."
And it's usually a good idea to add a bit of extra time to give the
script time to run the next time - say, half an hour extra.
Regards,
Henrik
More information about the Xymon
mailing list