Xymon Mailing List Archive search

problems with sms script

list Jarrod Hodder
Mon, 16 Jun 2008 16:19:30 +1000
Message-Id: <user-f393e1dfbd58@xymon.invalid>

New error now

Error opening device, you don't have permissions.
2008-06-16 16:15:16 Paging script /usr/local/bin/smstest terminated with
status 255

So now it is saying I don't have permission.

But I can execute the script fine from the hobbit user.

Something has gorn haywire.

``````````````````````

Tim McCloskey Wrote:

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>