Hi All,<br>
<br>
Does anyone could help on this one? The thing is, I've connected my
monitor (nagios) with a gsm modem through serial port and created a
script to send sms to notify manager of status from some hosts and
services. The script access kermit and from it sends the message,
follow below the script:<br>
<br>
(-------------------------SCRIPT SMS ---------------------------)<br>
#!/usr/bin/kermit +<br>
#.no := \%1<br>
#.msg := \%2<br>
set line /dev/ttyS0<br>
set carrier-watch off<br>
set speed 9600<br>
output at\13<br>
wait 2<br>
output at+cmgf=1\13<br>
wait 2<br>
output at+cmgs=\%1 \13<br>
wait 2<br>
output \%2 \26<br>
exit<br>
(-------------------------SCRIPT SMS ---------------------------)<br>
<br>
I've called this script as sms, put it on this path
(/usr/local/nagios/sms), on manual way I just need to do like that
/usr/local/nagios/sms 'mobile phone'  ' text message ', the script
works just nice, after that test, the next step was to setting it in
Nagios (/usr/local/nagios/etc/objects/command.cfg)<br>
<br>
define command{<br>
    command_name notify-host-by-sms<br>
    command_line /usr/local/nagios/sms $PAGER$ "Host:$HOSTNAME$ - State:$HOSTSTATE$"<br>
          }<br>
<br>
define command{<br>
    command_name notify-by-sms<br>
    command_line /usr/local/nagios/sms $PAGER$ "Host:$HOSTNAME$ - State:$SERVICEDESC$ - State:$SERVICESTATE$'<br>
          }<br>
<br>
After set it, looked to at the Nagios log and it advise me that some
notifications are been sending through sms but I dont received it,<br>
<br>
<br>
Need help<br>
<br>
Thanks in advance<br>
<br>
Eduardo Barreto<br>
<br>
<br>
<br>