Xymon Mailing List Archive search

smsplus didn't recovered

2 messages in this thread

list Martin Flemming · Thu, 11 Nov 2010 10:58:59 +0100 (CET) ·

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 user-8e6f6da5bf1a@xymon.invalid  "$RCPT"<<EOT
From: <user-f286aaa49a76@xymon.invalid>
To: ${RCPT}
Subject: ${message}
${message}
EOT


Thanks & Cheers,

        Martin
list Martin Flemming · Fri, 12 Nov 2010 09:59:16 +0100 (CET) ·
Hmm,

  nobody else has got this issue,
that smsplus dind't send a tagged "recovered sms" ?

thanks & cheers

 	martin
quoted from Martin Flemming

On Thu, 11 Nov 2010, Martin Flemming wrote:
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 user-8e6f6da5bf1a@xymon.invalid  "$RCPT"<<EOT
From: <user-f286aaa49a76@xymon.invalid>
To: ${RCPT}
Subject: ${message}
${message}
EOT


Thanks & Cheers,

      Martin