[hobbit] purple-time option

Henrik Stoerner henrik at hswn.dk
Fri Apr 29 17:19:17 CEST 2005


On Fri, Apr 29, 2005 at 05:10:58PM +0200, cits.bogajewski at daimlerchrysler.com wrote:
> 
> Searching for an option to set a time period when a service goes purple, 
> but after consuming the entire docu as well as available options in config 
> files still cant find it..

That's determined by whatever tool reports on that service, not by the
Hobbit server.

All status messages - from clients, from the network tester, from custom
scripts - send status messages with an explicit "lifetime", usually 30
minutes.

The Hobbit server just records this "lifetime" when a status update is
received, and if a new update doesn't arrive within the lifetime, then
the service goes purple.

For custom scripts, if you don't run them every 5 minutes then you should 
send in a status message with an explicit lifetime. E.g. lots of scripts
do this

   $BB $BBDISP "status $MACHINE.$TEST $COLOR `date` OK"

That just generates a status with the default lifetime. If your script
only runs once an hour, you should do this instead:

   $BB $BBDISP "status+70 $MACHINE.$TEST $COLOR `date` OK"

which gives it a lifetime of 70 minutes (1 hour plus a bit, in case a
report takes a couple of minutes to generate).


Henrik




More information about the Xymon mailing list