Mail formats for alerts
Kauffman, Tom
KauffmanT at nibco.com
Tue Jul 1 14:30:08 CEST 2008
I did my own mashup - we have a number of tests we've written that generate many lines of status, most of which won't make it to any kind of pager or phone.
The key chunk in my routine is the following two lines:
# cut the message down to 150 characters (allows spatch room for
# a security code on echelon pages
TEXT=`echo "${BBALPHAMSG}" | grep "&red"`
TEXTP=`echo "!BB ! - ${BBHOSTSVC} [${ACKCODE}] $FIXED- ${TEXT}" | paste -sd" " | cut -c 1-150`
And we have an explicit rule for the support group - if you get paged on one of these multi-test tests, you get to fix ALL the errors reported, not just the one in the page.
Tom
________________________________
From: Ward, Martin [mailto:Martin.Ward at colt.net]
Sent: Tuesday, July 01, 2008 4:52 AM
To: hobbit at hswn.dk
Subject: [hobbit] Mail formats for alerts
Hi all,
Having got the alerts working, I have been looking at the mail formats available. Since I will be configuring my alerts to use email I have not examined the script or SMS versions yet.
The default TEXT format sends an email with all the info I need in it, but the errors at the top look like this:
red Tue Jul 1 03:32:23 BST 2008 - Processes NOT ok
&green /opt/InfoVista/Agent/jre/bin/java (found 1, req. between 1 and 1) &green /opt/InfoVista/Agent/bin/wrapper (found 1, req. between 1 and 1) &green /opt/InfoVista/VistaMart/bin/vmnotifier.sh (found 1, req. between 1 and 1) &red tnslsnr (found 2, req. between 1 and 1) &green oracleIVDB (found 25, req. between 1 and 99) &green ora_lgwr_IVDB (found 1, req. between 1 and 99)
I get an alert on the first line and all the monitored processes on the second, so I have to pick and choose to find the one that's a problem (tnslsnr in this case). Being lazy<bs><bs><bs><bs> someone who wants to use technology to help them I would like any/all of the following:
1. Have the HTML page emailed to me in MIME format, so I can view it even if I don't have a permanent internet connection (format=HTML?)
2. Have the alert highlighted in the colour for their status, so at least I can see the error line quickly (format=MIME?)
3. Have the alerts displayed on per line, so at least I can more easily spot the alert text. Henrik, is this possible to do? Have you already done/planned this in the next version? I'm willing to have a poke at it myself but it may take some time.
I am currently thinking that maybe I will need to write a script that will parse the data and generate a MIME-format email along the lines of 2. above... unless someone has already done this?
What thoughts have you all?
|\/|artin
--
Martin Ward
Network Systems Operations Specialist
DDI: +44 (0) 20 7863 5218
Fax: +44 (0) 20 7863 5610
Mob: +44 (0) 7971 97 77 21
www.colt.net<file:///\\www.colt.net>
Data | Voice | Managed Services
Help reduce your carbon footprint | Think before you print
COLT Telecommunications, Beaufort House, 15 St Botolph Street, London, EC3A 7QN UK
Registered in England and Wales, registered number 02452736, VAT number GB 645 4205 50
*************************************************************************************
The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way.
The contents of this message and its attachments are confidential and may also be subject to legal privilege. If you are not the named addressee and/or have received this message in error, please advise us by e-mailing security at colt.net and delete the message and any attachments without retaining any copies.
Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses.
No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party.
Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900.
CONFIDENTIALITY NOTICE: This email and any attachments are for the
exclusive and confidential use of the intended recipient. If you are not
the intended recipient, please do not read, distribute or take action in
reliance upon this message. If you have received this in error, please
notify us immediately by return email and promptly delete this message
and its attachments from your computer system. We do not waive
attorney-client or work product privilege by the transmission of this
message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080701/c40bc80f/attachment.html>
More information about the Xymon
mailing list