[Xymon] How can i change the format for e-mail alert.
Tim McCloskey
tm at freedom.com
Tue Mar 8 20:29:31 CET 2011
>From: Nordquist, Daniel
>Doesn't the format=sms strip the subject from the email?
-------------------------------------------------------------------------------------
From the hobbit internals perspective I can't really answer that. This cludge is perhaps somewhat outside of the way hobbit is designed to work, but it's worked fine for our team for many moons. When a server goes offline I generally don't need/want anything other than a short alert which says servername.conn. The '/bin/mail -s' line below provides that detail in the subject line.
page-primary.sh
-----
#!/bin/bash
/bin/mail -s "$BBHOSTSVC" 1234567890 at somewheretmomail.net < /dev/null
-----
#!/bin/bash
/bin/mail -s "$BBHOSTSVC" gfoo at somewhere121323123.com <<EOM
$BBALPHAMSG
EOM
More information about the Xymon
mailing list