[Xymon] Customizing Xymon email formats

Don Kuhlman Don.Kuhlman at schawk.com
Wed Apr 25 22:47:31 CEST 2012


Hi folks. Thought I would share this. I modified the html_mail.pl script to replace hobbit or bb references with xymon references.  It was using some older pointers so I replaced that.

I also re-formatted the email piece to change the subject line.

I don't know if there is any interest in this, but I can share the .pl code if so.

I had a question about this though - if I want to keep only the item that has the alert and get rid of all the extra info from $bbalphmsg, is there some way to do that besides using FORMAT=SMS in the alerts.cfg file?  When I use FORMAT=SMS, I get a shorter msg, but then lose the other items that are alerting.

Regards,

Don K

Here's a snip of the long email with the Proto listing shortened.  I would only like the items with the alert in the email.
See http://xymonserver.domain.com/xymon-cgi/svcstatus.sh?HOST=SERVERNAME&SERVICE=ports<http://srmxymon.ambrosi.com/xymon-cgi/svcstatus.sh?HOST=C3SRMSQL01P&SERVICE=ports>

red Wed Apr 25 14:56:04 2012 - Ports NOT ok
[cid:3A143FC6-FC3C-45BF-95B1-B4C2509C3D73] SQL_Port_1433 (found 0, req. 1 or more)
[cid:DB9F1850-5AED-4E93-9CA0-7A19E6BC9855] Listen (found 37, req. none)


Active Connections

Proto  Local Address          Foreign Address        State
TCP    0.0.0.0:80             0.0.0.0:0              LISTENING
TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
TCP    0.0.0.0:2383           0.0.0.0:0              LISTENING

…
..
.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120425/72ff75cb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3A143FC6-FC3C-45BF-95B1-B4C2509C3D73.png
Type: image/png
Size: 249 bytes
Desc: 3A143FC6-FC3C-45BF-95B1-B4C2509C3D73.png
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120425/72ff75cb/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DB9F1850-5AED-4E93-9CA0-7A19E6BC9855.png
Type: image/png
Size: 239 bytes
Desc: DB9F1850-5AED-4E93-9CA0-7A19E6BC9855.png
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120425/72ff75cb/attachment-0001.png>


More information about the Xymon mailing list