[Xymon] Example of alerts.cfg

Neil Simmonds Neil.Simmonds at express-gifts.co.uk
Fri Oct 21 14:59:44 CEST 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20111021/385cb55b/attachment.html>


More information about the Xymon mailing list