[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: Vernon Everett <everett.vernon (at) gmail.com>
- Date: Fri, 8 Oct 2010 11:12:06 +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; bh=RL0b2RxF3QtGygDhHg6SBfYSdbHgWbAVYfciVhks93U=; b=dcmsgqzeRYUuFdibkBpIe0NHde+WdGcPNLixDzfpfbGIFqaWEZcpWSGbP7sBkTmidV 1EBG80+iOs83MbOQcgPbvHUvfrAjZomspHtQl9zENo7nUNTEA/EVbuzI1BPFkEfvu9lw hRJbT9wFZs0SGHn/q9M0uKKYzlDgKuRb0e9Zc=
- 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; b=OonqxaLvNEmSuN9v1kSPVhvBv+2u7ctqWaflMSe/k2qC8Jumhq9Kq5H0eZN63jqGMo 6wITWuyqUCHPP1IUXR+iXnVi+TEjJDczM+QRe4zKysyhCNdgWsujljsTW5XmkMOWOblJ 5Ic98wYYr5E42wn/csGciUOjM8M5Q8cBfwGy8=
- References: <AANLkTi=OUGSQU_YvUn3temW2Pii09zPXyvUkmfjNTFbx (at) mail.gmail.com>
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
>
>
>