Example of alerts.cfg
list Stefan van der Walt
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
list Neil Simmonds
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 user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED
SERVICE=sql
MAIL user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED
GROUP=unixsupport
MAIL user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED SERVICE=disk
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED SERVICE=disk STOP
MAIL user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED SERVICE=cpu
DURATION>15
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED SERVICE=cpu
DURATION>15 STOP
MAIL user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED EXSERVICE=cpu,disk
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED EXSERVICE=cpu,disk
STOP
GROUP=windowssupport
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED
GROUP=windowssupport SERVICE=msgs
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED STOP
GROUP=sqlsupport
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED STOP
PAGE=Environment
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED STOP
HOST=*
MAIL user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED
Neil Simmonds Operations Analyst
Operations Support Group Express Gifts Ltd. user-8188d25e65e4@xymon.invalid
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
list Stefan van der Walt
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
▸
<user-8188d25e65e4@xymon.invalid>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 user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED****
** **
SERVICE=sql****
MAIL user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED****
** **
GROUP=unixsupport****
MAIL user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED SERVICE=disk ****
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED SERVICE=disk STOP ****
MAIL user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED SERVICE=cpu
DURATION>15 ****
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED SERVICE=cpu
DURATION>15 STOP ****
MAIL user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED EXSERVICE=cpu,disk****
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED EXSERVICE=cpu,disk
STOP****
** **
GROUP=windowssupport****
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED ****
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED ****
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED ****
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED ****
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED ****
** **
GROUP=windowssupport SERVICE=msgs****
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED STOP****
** **
GROUP=sqlsupport****
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED ****
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED ****
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED ****
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED ****
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED ****
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED STOP ****
** **
PAGE=Environment****
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED****
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED STOP****
** **
HOST=*****
MAIL user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED ****
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED****
** **
Neil Simmonds
Operations Analyst
Operations Support Group
Express Gifts Ltd.
user-8188d25e65e4@xymon.invalid ****
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
list Neil Simmonds
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.
user-8188d25e65e4@xymon.invalid
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
<user-8188d25e65e4@xymon.invalid> 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 user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED
SERVICE=sql
MAIL user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED
GROUP=unixsupport
MAIL user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED SERVICE=disk
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED SERVICE=disk STOP
MAIL user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED SERVICE=cpu
DURATION>15
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED SERVICE=cpu
DURATION>15 STOP
MAIL user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED EXSERVICE=cpu,disk
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED EXSERVICE=cpu,disk
STOP
GROUP=windowssupport
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED
GROUP=windowssupport SERVICE=msgs
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED STOP
GROUP=sqlsupport
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=360 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED STOP
PAGE=Environment
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED STOP
HOST=*
MAIL user-088889c3c81f@xymon.invalid REPEAT=120 RECOVERED
MAIL user-088889c3c81f@xymon.invalid REPEAT=1440 RECOVERED
Neil Simmonds
Operations Analyst
Operations Support Group
Express Gifts Ltd.
user-8188d25e65e4@xymon.invalid
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>
▸
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