Xymon Mailing List Archive search

purple-time option

2 messages in this thread

list Anatoli Bogajewski · Fri, 29 Apr 2005 17:10:58 +0200 ·
Hi!

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..

can someone give me a hint?

would be nice. thanks in advance..

greetings, 
blind anatoli
list Henrik Størner · Fri, 29 Apr 2005 17:19:17 +0200 ·
quoted from Anatoli Bogajewski
On Fri, Apr 29, 2005 at 05:10:58PM +0200, user-4d3800b5a33a@xymon.invalid 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