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
… .. .
participants (1)
-
Don.Kuhlman@schawk.com