[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
smsplus didn't recovered
- To: xymon (at) xymon.com
- Subject: smsplus didn't recovered
- From: Martin Flemming <martin.flemming (at) desy.de>
- Date: Thu, 11 Nov 2010 10:58:59 +0100 (CET)
- User-agent: Alpine 2.00 (LRH 1167 2008-08-23)
Hi !
I also use the smsplus script for sms-alerting
http://xymonton.trantor.org/doku.php/alerts:smsplus
but i notice that the alert-option "RECOVERED"
didn't exist in the sms-message, so nobody knows
if it's now a regular alert or a recovered mail .. :-(
Have somebody a hint or what is wrong in my enviroment ?
cat /usr/lib/hobbit/server/ext/smsplus.sh
#!/bin/bash
msg=`echo "${BBALPHAMSG}" | egrep "&yellow|&red"`
msg="${msg}"
# CODE:
#=======
subject="!HB ${ACKCODE}"
alert="${BBHOSTSVC} ${BBCOLORLEVEL}"
message="${alert}${msg}"
/usr/sbin/sendmail -f flemming (at) mail.desy.de "$RCPT"<<EOT
From: <martin.flemming (at) desy.de>
To: ${RCPT}
Subject: ${message}
${message}
EOT
Thanks & Cheers,
Martin