[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] hobbit-alerts.cfg - DURATION



In general, Hobbit processes the hobbit-alerts.cfg file from top-down, using
the first matching alert.  At least in my experience with the way we're
using DURATION, it should be counting the time from when the alert changes
status (so, green-to-yellow, yellow-to-red, etc), though to be fair, we're
using it differently than you are in this example.

Try using the bbcmd "hobbitd_alert" test below to see if it is working as
intended.  It can be used as below:
/var/hobbit/server/bin/bbcmd hobbitd_alert --test <hostname> <host test>

Also, you might want to consider using DURATION<3m (specifying "m" for
minutes).  I'm not sure what the default is, but I personally prefer to be
explicit; makes reading it a little easier as well.  And if REPEAT=5,
assuming 5 is in minutes, you'll never get a repeat message for yellow or
red status if DURATION<3m.


Dear Hobbits,

is DURATION keyword within hobbit-alerts.cfg relates to the time period one test is in a special state, yellow or red, or more general the time period since non-green state occurs. In example, i want to get exact one notification at yellow state and one at red, but the following configuration does not work. I get notified on initial yellow alert, but not on red one occurring 4 min later.

HOST=myhost SERVICE=disk COLOR=yellow DURATION<3
SCRIPT $SSMSS $ABSMS REPEAT=5 RECOVERED

HOST=myhost SERVICE=disk COLOR=red DURATION<3
SCRIPT $SSMSS $ABSMS REPEAT=5 RECOVERED

Any ideas? Thanks :-)

Mit freundlichen Grüßen / Yours sincerely

Anatoli Bogajewski

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk