alerts:smsplus

sms+

Author Gary Baluha
Compatibility Xymon 4.2
Requirements unix, Linux
Download None
Last Update 2007-02-15

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

  1. Add script to server's ext folder
  2. 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

#!/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
  • No known bugs
  • 2007-02-15
    • Initial release
  • alerts/smsplus.txt
  • Last modified: 2009/02/01 03:09
  • by 127.0.0.1