[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xymon] hobbit-alerts.cfg question
- To: xymon (at) xymon.com
- Subject: Re: [xymon] hobbit-alerts.cfg question
- From: Colin Coe <colin.coe (at) gmail.com>
- Date: Fri, 8 Oct 2010 11:35:15 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=5kjXC74ZGz90tKWeXo2ebUTuuJeoDgceldFIK6+s9dM=; b=ugerkJYQLgI4SjaPRBFE3g/gSZgsT2nsp7UHehXF1H1CpUBAGh4k7Ee253M2ITOhjU d0poTKlgqv426O+qjDJa1ubrfpW0D63Njb9zt6gT76syCMsG8uXpJr0I6dfjcTBdk2/z 5QjTSGYrBk+yhc2QPcH3WD+CtH7ssr52xPamE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=KK/TIGRkTtebTHDRh0uOWvG8891Psl0PccT1RkmpRDyi1imvC+DzuEeyGZZySw3YBf WVZUEG/k+lKAKJAzzrwIotCbkUIZBM+THpA9yhs6FJPK0WCNyYFnUU1wlAkuiJKYhFS/ hHieP96nfUFtcY7r+DCjYW3I8soqRiaex9H0A=
- References: <AANLkTi=OUGSQU_YvUn3temW2Pii09zPXyvUkmfjNTFbx (at) mail.gmail.com> <AANLkTim0=_VXrz7owyiKMf1MSUXg1Oa-hHqyrf-ptkVh (at) mail.gmail.com>
Cool. Thanks Vernon.
On Fri, Oct 8, 2010 at 11:12 AM, Vernon Everett
<everett.vernon (at) gmail.com> wrote:
> Hi Colin
>
> One line per alert, with RECOVERED on the end.
> Change it to something like this.
> MAIL sms (at) somecompany.com SERVICE=proliant FORMAT=SMS REPEAT=1440m
> RECOVERED
>
> Cheers
> Vernon
>
> On Fri, Oct 8, 2010 at 10:40 AM, Colin Coe <colin.coe (at) gmail.com> wrote:
>>
>> Hi all
>>
>> The alerting is starting to take shape but I've a question regarding
>> how the alerting works. If I have a stanza similar to the following,
>> how is it evaluated? Once for all hosts, or for one host at a time?
>> ---
>> HOST=%.*
>> # Proliant tests
>> MAIL sms (at) somecompany.com SERVICE=proliant FORMAT=SMS REPEAT=1440m
>> MAIL sms (at) somecompany.com SERVICE=proliant FORMAT=SMS RECOVERED
>>
>> # conn where status is RED
>> MAIL sms (at) somecompany.com COLOR=red SERVICE=conn EXPAGE=dev
>> REPEAT=1440m
>> MAIL sms (at) somecompany.com COLOR=red SERVICE=conn EXPAGE=dev
>> RECOVERED
>>
>> # conn where status is RED (dev/test)
>> MAIL email (at) somecompany.com COLOR=red SERVICE=conn PAGE=dev
>> REPEAT=1440m
>> MAIL email (at) somecompany.com COLOR=red SERVICE=conn PAGE=dev
>> RECOVERED
>>
>> # cpu,disk,memory where status is RED
>> MAIL sms (at) somecompany.com COLOR=red SERVICE=cpu,disk,memory
>> EXPAGE=dev REPEAT=1440m
>> MAIL sms (at) somecompany.com COLOR=red SERVICE=cpu,disk,memory
>> EXPAGE=dev RECOVERED
>>
>> # Dev servers
>> MAIL email (at) somecompany.com COLOR=red SERVICE=cpu,disk,memory
>> PAGE=dev REPEAT=1440m
>> MAIL email (at) somecompany.com COLOR=red SERVICE=cpu,disk,memory
>> PAGE=dev RECOVERED
>>
>> # Non-dev status YELLOW
>> MAIL email (at) somecompany.com COLOR=yellow
>> SERVICE=cpu,disk,memory REPEAT=1440m DURATION>30m
>> MAIL email (at) somecompany.com COLOR=yellow
>> SERVICE=cpu,disk,memory RECOVERED
>> ---
>>
>> Also, I've noticed that when a fault occurs I get two emails (or sms')
>> and another when the fault is rectified. I'm thinking this is because
>> of the 'RECOVERED' line but i thought this would only trigger when the
>> fault goes. Have I misunderstood?
>>
>> Thanks
>>
>> CC
>>
>> --
>> RHCE#805007969328369
>>
>> To unsubscribe from the xymon list, send an e-mail to
>> xymon-unsubscribe (at) xymon.com
>>
>>
>
>
--
RHCE#805007969328369