[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] hobbit-alerts.cfg - DURATION
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] hobbit-alerts.cfg - DURATION
- From: "Gary Baluha" <gumby3203 (at) gmail.com>
- Date: Tue, 13 Mar 2007 11:53:25 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=e05ttWY9lkqlFgsUmKV7b8A5joRUmpVYC++PUYTxfgoj7Wc3zIjXJmsj5LTTWufKZ3OgT5ZyNsnW5mWdhTSwPyb6CwrxVmRQuKX1r709VGYqVpXMs0BUmf8qEYOGKEq7TszytgHmg1nfk0G1OUUvSbcuV95Ebe7pmdhfC72WD34=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=MrZOMKHZHcMfeP2hZdnsbpgp0x7ZQkiPIVzozQ7UIwtMpF8jlT62npL6cVSvjdS4g/SoSVp02mJ15Fr3s3PU9hhA0ohRF/6hUF5gwMZSMvAfH1UyBnwUVib44ZWAQGIU+9Pp9EXoUJOWcEwiWGLeY9hnmOdA42PcqOdO9a3vEiU=
- References: <OF93136137.C5327DDB-ONC125729D.004DBBF0-C125729D.004EF966@dcx.dcx>
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