[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hobbit-alerts.cfg question
- To: xymon (at) xymon.com
- Subject: hobbit-alerts.cfg question
- From: Colin Coe <colin.coe (at) gmail.com>
- Date: Fri, 8 Oct 2010 10:40:39 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=T3VqlKwaFhsrccNcvlGa2WZxjsmeTKRc0isBiK5/Syk=; b=Y1JLfG42EUMb1zteseCnY+5SVF4ueHEh/HGnQHwXRIue3PeimDK8wzBQmYAPURVZSi lwscLaLLbQUE3jEDWi3t+PWa0gs35sCmpEbhJ8BllnMSSdxBHFsgsn/k/gZdOF6QqcPJ zaoIAuN0/2gBQX4SxLlZdk5BvVL1i7QLmqjVI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=b6U5frST8uVXE4GAyijN1tb69sli7fBd4HZTfbl/CQ+f6lQqiRbRF0x8O/Cb1+plrh 1sm3ntB5Ouwz7Le2uakT9ibSpAn0pXgk4ix30lRVuPHZw1BQJO6mfJaa3qkECB1XTsVL eYaOJXt+8QOMsOpGt0kyFJ5OPXB1zN0QOSOgo=
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