[Xymon] customize the email body alerts for xymon
FORD Alan
Alan.FORD at stanwell.com
Tue May 17 00:58:17 CEST 2011
I have written an email script which displays as html (of course you have to have a html enabled email client).
It checks for individual services and displays a fixed message, could also add checks for specific hosts to.
Here is a sample (not sure if html will display properly thru here)
Xymon Alert (red) : files utnfrc01.stanwell.com
Files on server testserver.stanwell.com have not been updated recently
testserver.stanwell.com:files red [124238]
red Files status at Tue May 17 04:05:58 EST 2011
[red]/stanwell/data/mms/loader/Reports/STANWELL_P5MIN_201105170410_20110517040540.zip</xymon-cgi/bb-hostsvc.sh?CLIENT=utnfrc01.stanwell.com&SECTION=file:/stanwell/data/mms/loader/Reports/STANWELL_P5MIN_201105170410_20110517040540.zip>
File is missing
File is missing
[yellow]/stanwell/data/scada/sps/incoming/unit2/MTBIN.DAT</xymon-cgi/bb-hostsvc.sh?CLIENT=utnfrc01.stanwell.com&SECTION=file:/stanwell/data/scada/sps/incoming/unit2/MTBIN.DAT>
File is missing
[green]/stanwell/data/mms/batcher/Holding</xymon-cgi/bb-hostsvc.sh?CLIENT=utnfrc01.stanwell.com&SECTION=file:/stanwell/data/mms/batcher/Holding>
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Vernon Everett
Sent: Monday, 16 May 2011 9:21 PM
To: sonal kumar
Cc: Xymon mailinglist
Subject: Re: [Xymon] customize the email body alerts for xymon
Use the script option in the alerts file.
At a previous client, we had a very specific problem we were monitoring for.
Instead of Xymon sending a standard alert email, I needed a set of detailed instructions sent out, indicating how to resolve the issue.
I then created a script to send the custom email, instead.
It worked so well, the client asked me to use the technique for a number of other problem areas.
Most popular use was to send instructions to helpdesk, explaining who to log the call to, and the severity level.
Regards
Vernon
________________________________________________________________________________
This email (including all attachments) may contain personal information and is intended solely for the named addressee. It is confidential and may be subject to legal or other professional privilege and any confidentiality or privilege is not waived or lost because this email has been sent to you by mistake. This email is also subject to copyright. No part of it should be reproduced, adapted or communicated without the written consent of the copyright owner. Any personal Information in this email must be handled in accordance with the Privacy Act 1988 (Cth). If you have received it in error, please let Stanwell Corporation Limited know by reply email, delete it from your system and destroy any copies. Stanwell is not responsible for any changes made to a document other than those made by Stanwell. Stanwell accepts no liability for any damage caused by this email or its attachments due to viruses, interference, interception, corruption or unauthorised access. If you have any doubts about the authenticity of an email purportedly sent by us, please contact us immediately. If this is a commercial electronic message within the meaning of the Spam Act 2003 (Cth), you may indicate that you do not wish to receive any further commercial electronic messages from Stanwell by emailing mailto:privacy at stanwell.com...
________________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110516/59b88af7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 885 bytes
Desc: image001.png
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110516/59b88af7/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 920 bytes
Desc: image002.png
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110516/59b88af7/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.gif
Type: image/x-citrix-gif
Size: 118 bytes
Desc: image003.gif
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110516/59b88af7/attachment.bin>
More information about the Xymon
mailing list