[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] No pages when going from yellow to red
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] No pages when going from yellow to red
- From: "Pat Vaughan" <hobbit (at) pvaughan.us>
- Date: Wed, 2 Nov 2005 14:07:59 -0500 (EST)
- Importance: Normal
- References: <20051101223645.GA30834@hswn.dk>
- User-agent: SquirrelMail/1.4.6 [CVS]-0.cvs20050812.1.fc4
Okay, my recipients are different, but I'm using scripts instead of MAIL
recipients:
SCRIPT /usr/local/bin/scripts/hobbit-mail UNIX_ADMIN
SERVICE=%(cpu|disk|entstat|procs|ssh|telnet|vmio) COLOR=yellow,purple
REPEAT=30d RECOVERED
SCRIPT /usr/local/bin/scripts/hobbit-mailpage $PATVAUGHAN_PAGERMAIL
SERVICE=%(cpu|disk|entstat|memory|procs|ssh|telnet|vmio) COLOR=red
TIME=12345:0800:1700 REPEAT=30d
> On Tue, Nov 01, 2005 at 05:25:33PM -0500, Larry.Barber (at) usda.gov wrote:
>> If you use separate rules for yellow and red alerts, say a
>> hobbit-alerts.cfg that looked something like:
>>
>> HOST a_host:
>> MAIL xxxx (at) yyy.com COLOR=red DELAY=0 REPEAT=30m RECOVERED
>> MAIL xxxx (at) yyy.com COLOR=yellow DELAY=0 REPEAT=30m RECOVERED
>>
>> would you then get a separate email when the condition turned red at
>> 22:45 below?
>
> No, and that might be something that could change. The repeat-
> checking code currently identifies an alert by the combination
> of hostname, servicename and recipient; I could easily change
> that so a separate line in the config-file would result in a new
> set of repeat-checks.
>