I think you have the inequality backwards on your DURATION clause, as it is written no alert will be issued for for alerts that are older than 3 minutes, probably should be DURATION>3, not DURATION<3.<br><br>Thanks,<br>
Larry Barber<br><br><div><span class="gmail_quote">On 3/14/07, <b class="gmail_sendername"><a href="mailto:cits.bogajewski@daimlerchrysler.com">cits.bogajewski@daimlerchrysler.com</a></b> <<a href="mailto:cits.bogajewski@daimlerchrysler.com">
cits.bogajewski@daimlerchrysler.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br><br>thanks for ur reply.<br>
<br><a href="mailto:gumby3203@gmail.com">gumby3203@gmail.com</a> schrieb am 13.03.2007 16:53:25:<br><br>> it should be counting the time from when the alert changes status<br>> (so, green-to-yellow, yellow-to-red, etc)
<br><br>thought so<br><br>> Try using the bbcmd "hobbitd_alert" test below to see if it is<br>> working as intended.  It can be used as below:<br>> /var/hobbit/server/bin/bbcmd hobbitd_alert --test <hostname> <host test>
<br><br>works in principle as expected, although there is no possibility to<br>reproduce my scenario using test utility<br><br>> Also, you might want to consider using DURATION<3m (specifying "m"<br>> for minutes).  I'm not sure what the default is, but I personally
<br>> prefer to be explicit; makes reading it a little easier as well.<br><br>from man pages: "The duration is specified as a number, _optionally_<br>followed by 'm' (minutes, default), 'h' (hours) or 'd' (days)."
<br><br>--debug output of hobbitd_alert looks like:<br><br>(initial alert yellow)<br><br>2007-03-13 14:38:58 hobbitd_alert: Got message 1139<br>@@page#1139|1173793138.770212|xx.xx.xx.xx|myhost|disk|xx.xx.xx.xx|1173794938|yellow|green|1173793138|pct|643201|||
<br>2007-03-13 14:38:58 startpos 2590, fillpos 2590, endpos -1<br>2007-03-13 14:38:58 Got page message from myhost:disk<br>2007-03-13 14:38:58 Alert status changed from 0 to 1<br>2007-03-13 14:38:58 Found a first matching rule
<br>2007-03-13 14:38:58 No more secondary matching rule<br>2007-03-13 14:38:58 1 alerts to go<br>2007-03-13 14:38:58 Found a first matching rule<br>2007-03-13 14:38:58 send_alert myhost:disk state 0<br>2007-03-13 14:38:58 No more secondary matching rule
<br>2007-03-13 14:38:58 Want msg 1140, startpos 2590, fillpos 2590, endpos -1,<br>usedbytes=0, bufleft=263649<br>2007-03-13 14:38:58 Found a first matching rule<br>2007-03-13 14:38:58   repeat myhost|disk|script|0123456789 at 0
<br>2007-03-13 14:38:58   Alert for myhost:disk to 0123456789<br>2007-03-13 14:38:58 Opening file /opt/hobbit/server/etc/bb-hosts<br><br>(4min later red alert raises)<br><br>2007-03-13 14:42:49 hobbitd_alert: Got message 1223
<br>@@page#1223|1173793369.998387|xx.xx.xx.xx|myhost|disk|xx.xx.xx.xx|1173795169|red|yellow|1173793369|pct|643201|||<br>2007-03-13 14:42:49 startpos 47243, fillpos 47243, endpos -1<br>2007-03-13 14:42:49 Got page message from myhost:disk
<br>2007-03-13 14:42:49 Severity increased, cleared repeat interval:<br>myhost/disk yellow->red<br>2007-03-13 14:42:49 Found no first matching rule<br>2007-03-13 14:42:49 Want msg 1224, startpos 47243, fillpos 47243, endpos
<br>-1, usedbytes=0, bufleft=218996<br><br>so hm. i am not sure i got any lines of interest, but this looks not very<br>helpfull.<br><br>Chears,<br>Anatoli<br><br><br>><br>> Dear Hobbits,<br>><br>> is DURATION keyword within 
hobbit-alerts.cfg relates to the time period<br>> one test is in a special state, yellow or red, or more general the time<br>> period since non-green state occurs. In example, i want to get exact one<br>> notification at yellow state and one at red, but the following
<br>> configuration does not work. I get notified on initial yellow alert, but<br>> not on red one occurring 4 min later.<br>><br>> HOST=myhost SERVICE=disk COLOR=yellow DURATION<3<br>> SCRIPT $SSMSS $ABSMS REPEAT=5 RECOVERED
<br>><br>> HOST=myhost SERVICE=disk COLOR=red DURATION<3<br>> SCRIPT $SSMSS $ABSMS REPEAT=5 RECOVERED<br>><br>> Any ideas? Thanks :-)<br>><br>> Mit freundlichen Grüßen / Yours sincerely<br>><br>
> Anatoli Bogajewski<br>><br>> To unsubscribe from the hobbit list, send an e-mail to<br>> <a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br>><br><br><br>To unsubscribe from the hobbit list, send an e-mail to
<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br><br><br></blockquote></div><br>