[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] SMS Alerts
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] SMS Alerts
- From: Gé Janssen <ge.janssen (at) gmail.com>
- Date: Thu, 19 Mar 2009 20:02:58 +0100
- References: <339D555B07BAFC4A9A6C99FAFBD5BF06311354 (at) para-serve.para.local>
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081204 SeaMonkey/1.1.14
Jarod,
I don't see where your problem is:
This is my alert script rule
HOST=home.nouwen.name SERVICE=*
SCRIPT /usr/local/bin/sendsmshobbit.sh 3123456789 REPEAT=1h
TIME=*:1000:2200 COLOR=red FORMAT=sms
The script contains:
#!/bin/sh
#set -vx
#debug on:: #echo "/usr/local/bin/sendsms $RCPT $BBALPHAMSG $ACKCODE" >>
/tmp/smsd.log
/usr/local/bin/sendsms $RCPT "$BBALPHAMSG $ACKCODE"
/usr/local/bin/sendsms is the binary from smsd.
The message is then formatted as:
(see the debug rule)
/usr/local/bin/sendsms 342384723 *home.nouwen.name:conn red [512857 512857*
this is allways smaller then 160 chars, so......
Gé
Jarrod Hodder wrote:
Hello,
I am trying to get a custom message sent from Hobbit via sms.
All I want is the hostname with a short message sent after it.
So far I have
#!/bin/bash
echo "${BBHOSTNAME:0:160} cpu is red" | gnokii --sendsms 1234567890
I am using gnokii as the gate way.
I think my variable is what is causing the problem, can someone see
where I have gorn wrong?
*Jarrod Hodder*
*_ _*
Paradigm Management Group
110 Livingston Avenue
Kambah, ACT 2902
1300 735 370
Jarrod (at) pmg.net.au