sms+
Author | Gary Baluha |
---|---|
Compatibility | Xymon 4.2 |
Requirements | unix, Linux |
Download | None |
Last Update | 2007-02-15 |
Description
This is an external Xymon script that provides a more detailed SMS output, but is still shorter than the regular email alerts. Essentially, this does what FORMAT=SMS does, except that it also displays the items that are red.
This was taken from the hobbit-users mailing list
Installation
- Add script to server's ext folder
- Modify for your environment and replace
MAIL [recipients] [flags]
with
SCRIPT [hobbit home]/server/ext/smsplus.sh [recipients] [flags]
NOTE: Make sure you don't include FORMAT=SMS
Source
smsplus.sh
#!/bin/bash msg=`echo "${BBALPHAMSG}" | egrep "&yellow|&red"` msg="\n${msg}" # CODE: #======= subject="!HB ${ACKCODE}" alert="${BBHOSTSVC} ${BBCOLORLEVEL}" message="\n${alert}${msg}" echo -e "${message}" | mail -s "${subject}" $RCPT
Known Bugs and Issues
- No known bugs
To Do
Credits
Changelog
- 2007-02-15
- Initial release