Xymon Mailing List Archive search

problems with sms script

list Tim McCloskey
Sun, 15 Jun 2008 22:49:46 -0700
Message-Id: <user-4293b24b2ca0@xymon.invalid>

Try with the full path to 'gammu'. (the running hobbit env on your sys may be different than your shell).

I use the same method but not with true SMS, I just use mail.


example below.


page-primary.sh
/bin/mail -s "$BBSVCNAME $BBHOSTNAME $MACHIP $CFID" user-6e7ec7198606@xymon.invalid < /dev/null


hobbit-alerts.cfg
GROUP=linux,web SERVICE=*
SCRIPT /path/to/page-primary.sh FORMAT=sms COLOR=red


Jarrod Hodder wrote:
echo "test" | gammu --sendsms TEXT <Phone Number here>