[Xymon] Example of alerts.cfg
Neil Simmonds
Neil.Simmonds at express-gifts.co.uk
Mon Oct 24 23:32:22 CEST 2011
Hi Stefan,
The STOP essentially tells Xymon to stop looking for where to send the
current alert. The reason I don't have it at the end of the Windows
Support group is because I also want any alerts that are specifically
for msgs to be sent to an extra Email user therefore the stop is after
that user.
Each line in my hosts file looks something like these,
0.0.0.0 servername # NOPROPYELLOW:disk delayyellow=cpu:15
delayred=cpu:15 CLASS:aix
0.0.0.0 servername # NOPROPYELLOW:disk delayyellow=cpu:15
delayred=cpu:15 CLASS:win32
0.0.0.0 servername # NOPROPYELLOW:disk delayyellow=cpu:15
delayred=cpu:15 CLASS:linux
The CLASS setting allows my alerts.cfg to work
It may be that there is a better way of doing this but I haven't found
it yet and this seems to work ok for my requirements.
Neil Simmonds
Operations Analyst
Operations Support Group
Express Gifts Ltd.
neil.simmonds at express-gifts.co.uk
Tel :- 01254 303092
Fax :- 01254 303100
________________________________
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf
Of Stefan
Sent: 21 October 2011 15:01
To: Xymon Mailing List
Subject: Re: [Xymon] Example of alerts.cfg
Thanks.
I'm not sure of the usage of STOP here. What does it do?
you've got it at the end of GROUP=sqlsupport
but not at the end of GROUP=windowssupport
and others
Can you show me a sample of your hosts.cfg as well?
On 21 October 2011 14:59, Neil Simmonds
<Neil.Simmonds at express-gifts.co.uk> wrote:
I've got something line this in mine (email addresses are obviously
different in the real file.)
It seems to work fine. The correct people get the correct Emails. I did
have to add CLASS:win32 etc on the end of each server definition in
hosts.cfg to make it work though.
HOST=ukclamon01 COLOR=purple SERVICE=dm
SCRIPT /xymon/server/scripts/devmon_restart.sh 1234567890
SERVICE=db
MAIL someone at home.com REPEAT=120 RECOVERED
SERVICE=sql
MAIL someone at home.com REPEAT=120 RECOVERED
GROUP=unixsupport
MAIL someone at home.com REPEAT=120 RECOVERED SERVICE=disk
MAIL someone at home.com REPEAT=1440 RECOVERED SERVICE=disk STOP
MAIL someone at home.com REPEAT=120 RECOVERED SERVICE=cpu
DURATION>15
MAIL someone at home.com REPEAT=1440 RECOVERED SERVICE=cpu
DURATION>15 STOP
MAIL someone at home.com REPEAT=120 RECOVERED EXSERVICE=cpu,disk
MAIL someone at home.com REPEAT=1440 RECOVERED EXSERVICE=cpu,disk
STOP
GROUP=windowssupport
MAIL someone at home.com REPEAT=360 RECOVERED
MAIL someone at home.com REPEAT=360 RECOVERED
MAIL someone at home.com REPEAT=360 RECOVERED
MAIL someone at home.com REPEAT=360 RECOVERED
MAIL someone at home.com REPEAT=1440 RECOVERED
GROUP=windowssupport SERVICE=msgs
MAIL someone at home.com REPEAT=360 RECOVERED STOP
GROUP=sqlsupport
MAIL someone at home.com REPEAT=360 RECOVERED
MAIL someone at home.com REPEAT=360 RECOVERED
MAIL someone at home.com REPEAT=360 RECOVERED
MAIL someone at home.com REPEAT=360 RECOVERED
MAIL someone at home.com REPEAT=1440 RECOVERED
MAIL someone at home.com REPEAT=1440 RECOVERED STOP
PAGE=Environment
MAIL someone at home.com REPEAT=1440 RECOVERED
MAIL someone at home.com REPEAT=1440 RECOVERED STOP
HOST=*
MAIL someone at home.com REPEAT=120 RECOVERED
MAIL someone at home.com REPEAT=1440 RECOVERED
Neil Simmonds
Operations Analyst
Operations Support Group
Express Gifts Ltd.
neil.simmonds at express-gifts.co.uk
Tel :- 01254 303092
Fax :- 01254 303100
________________________________
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf
Of Stefan
Sent: 21 October 2011 13:28
To: Xymon Mailing List
Subject: [Xymon] Example of alerts.cfg
Hi
Can anyone please give me an example of a more complicated alerts.cfg?
I need to just see how the structure looks.
I can't seem to get the group/page alerts working, not sure if you need
to just specify PAGE= or PAGE= and HOST= both.
I know there's just something I'm missing.
Thanks
Name & Registered Office: EXPRESS GIFTS LIMITED, 2 GREGORY ST, HYDE,
CHESHIRE, ENGLAND, SK14 4TH, Company No. 00718151.
Express Gifts Limited is authorised and regulated by the Financial
Services Authority
-------------
NOTE: This email and any information contained within or attached in a
separate file is confidential and intended solely for the Individual to
whom it is addressed. The information or data included is solely for the
purpose indicated or previously agreed. Any information or data included
with this e-mail remains the property of Findel PLC and the recipient
will refrain from utilising the information for any purpose other than
that indicated and upon request will destroy the information and remove
it from their records. Any views or opinions presented are solely those
of the author and do not necessarily represent those of Findel PLC. If
you are not the intended recipient, be advised that you have received
this email in error and that any use, dissemination, forwarding,
printing, or copying of this email is strictly prohibited. No warranties
or assurances are made in relation to the safety and content of this
e-mail and any attachments. No liability is accepted for any
consequences arising from it. Findel Plc reserves the right to monitor
all e-mail communications through its internal and external networks. If
you have received this email in error please notify our IT helpdesk on
+44(0) 1254 303030 <tel:%2B44%280%29%201254%20303030>
_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon
Name & Registered Office: EXPRESS GIFTS LIMITED, 2 GREGORY ST, HYDE, CHESHIRE, ENGLAND, SK14 4TH, Company No. 00718151.
Express Gifts Limited is authorised and regulated by the Financial Services Authority
-------------
NOTE: This email and any information contained within or attached in a separate file is confidential and intended solely for the Individual to whom it is addressed. The information or data included is solely for the purpose indicated or previously agreed. Any information or data included with this e-mail remains the property of Findel PLC and the recipient will refrain from utilising the information for any purpose other than that indicated and upon request will destroy the information and remove it from their records. Any views or opinions presented are solely those of the author and do not necessarily represent those of Findel PLC. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. No warranties or assurances are made in relation to the safety and content of this e-mail and any attachments. No liability is accepted for any consequences arising from it. Findel Plc reserves the right to monitor all e-mail communications through its internal and external networks. If you have received this email in error please notify our IT helpdesk on +44(0) 1254 303030
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20111024/b13b0b00/attachment.html>
More information about the Xymon
mailing list