[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] ALERTS time of day problem
- To: hobbit (at) hswn.dk
- Subject: RE: [hobbit] ALERTS time of day problem
- From: PNIXON (at) ci.somerville.ma.us
- Date: Thu, 25 May 2006 10:21:50 -0400
Mike,
Without really thinking about it, I know there's a way to test the alert
setup using a command (I think hobbitd_alert, I'm sure someone will chime in
soon).
It will allow you to set the date, time, host, service, and color for the
test, which is detailed in the man page.
Here's an example from an email last month.
'bin/bbcmd hobbitd_alert --test whq-sapcon-1 telnet DURATION=361'
--Pat
________________________________
From: Mike Rowell [mailto:Mike.Rowell (at) Rightmove.co.uk]
Sent: Thursday, May 25, 2006 4:07 AM
To: hobbit (at) hswn.dk
Subject: [hobbit] ALERTS time of day problem
Morning All (UK Time)
I've got an issue with the TIME function in hobbit-alerts which is causing
us a few problems.
Hobbit has been running fine and we've starting making finer grained control
on the alerts so that we don't get paged out of hours for stuff that we
don't need to deal with. Below is the hobbit-alerts entries. The problem
is that last night at 03:30am we were called out for an alert on the aq
service which according to how the alert is setup should only be paging us
between 0900 and 1700 weekdays. This is on 4.2PRE, we have newer snapshots
running in test but I don't want to upgrade this platform unless I have to
as it is running completely stable except for this TIME problem.
Any ideas?
Mike Rowell
ALERTS------
PAGE=test
MAIL=systems FORMAT=PLAIN TIME=W:0900:1800 COLOR=red,yellow STOP
HOST=%^switches.*
MAIL=systems COLOR=red,yellow REPEAT=1h FORMAT=PLAIN
MAIL=pager SERVICE=cpu COLOR=RED FORMAT=SMS DURATION>15 REPEAT=1h
TIME=*:0800:2200 STOP
HOST=*
MAIL=systems SERVICE=mrtg COLOR=red,yellow FORMAT=PLAIN STOP
MAIL=systems SERVICE=repli,prtdiag FORMAT=PLAIN REPEAT=1h
COLOR=red,yellow STOP
MAIL=systems COLOR=red,yellow REPEAT=1h FORMAT=PLAIN
MAIL=pager SERVICE=cpu COLOR=RED FORMAT=SMS DURATION>15 REPEAT=1h STOP
MAIL=pager SERVICE=aq COLOR=RED FORMAT=SMS DURATION>5 REPEAT=1h
TIME=W:0900:1700 STOP
MAIL=pager COLOR=RED FORMAT=SMS DURATION>5 REPEAT=1h
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs service.
________________________________________________________________________