Am trying to send an sms through smstools my GSM modem connected via serial port<br><br>sendsms  0777488xxxxx 'lord2'<br><br>2008-01-06 11:01:01,6, GSM1: Modem is registered to the network<br>2008-01-06 11:01:01,6, GSM1: Selecting PDU mode
<br>2008-01-06 11:01:01,7, GSM1: -> AT+CMGF=0<br>2008-01-06 11:01:01,7, GSM1: Command is sent, waiting for the answer<br>2008-01-06 11:01:02,7, GSM1: <- AT+CMGF=0<br>OK<br>2008-01-06 11:01:02,6, GSM1: Checking memory size
<br>2008-01-06 11:01:02,7, GSM1: -> AT+CPMS?<br>2008-01-06 11:01:02,7, GSM1: Command is sent, waiting for the answer<br>2008-01-06 11:01:02,7, GSM1: <- AT+CPMS?<br>+CPMS: "MT",0,65,"MT",0,65,"MT",0,65
<br>OK<br>2008-01-06 11:01:02,6, GSM1: Used memory is 0 of 65<br>2008-01-06 11:01:02,6, GSM1: No SMS received<br>2008-01-06 11:01:10,6, smsd: Moved file /var/spool/sms/outgoing/send_JD7682 to /var/spool/sms/checked<br>2008-01-06 11:01:13,6, smsd: I have to send 1 short message for /var/spool/sms/checked/send_JD7682
<br>2008-01-06 11:01:13,6, GSM1: Sending SMS from  to 0777xxxxxxx<br>2008-01-06 11:01:13,6, GSM1: Checking if modem is ready<br>2008-01-06 11:01:13,7, GSM1: -> AT<br>2008-01-06 11:01:13,7, GSM1: Command is sent, waiting for the answer
<br>2008-01-06 11:01:13,7, GSM1: <- AT<br>OK<br>2008-01-06 11:01:13,6, GSM1: Checking if Modem is registered to the network<br>2008-01-06 11:01:13,7, GSM1: -> AT+CREG?<br>2008-01-06 11:01:13,7, GSM1: Command is sent, waiting for the answer
<br>2008-01-06 11:01:14,7, GSM1: <- AT+CREG?<br>+CREG: 0,1<br>OK<br>2008-01-06 11:01:14,6, GSM1: Modem is registered to the network<br>2008-01-06 11:01:14,6, GSM1: Selecting PDU mode<br>2008-01-06 11:01:14,7, GSM1: -> AT+CMGF=0
<br>2008-01-06 11:01:14,7, GSM1: Command is sent, waiting for the answer<br>2008-01-06 11:01:14,7, GSM1: <- AT+CMGF=0<br>OK<br>2008-01-06 11:01:14,7, GSM1: -> AT+CMGS=18<br>2008-01-06 11:01:14,7, GSM1: Command is sent, waiting for the answer
<br>2008-01-06 11:01:14,7, GSM1: <- AT+CMGS=18<br>><br>2008-01-06 11:01:14,7, GSM1: -> 0011000A9.........................F05ECB79C2C03<br>2008-01-06 11:01:14,7, GSM1: Command is sent, waiting for the answer<br>2008-01-06 11:01:18,7, GSM1: <- 0011000A9..........................F1FF05ECB79C2C03
<br>ERROR<br>2008-01-06 11:01:18,3, GSM1: The modem said ERROR or did not answer.<br>2008-01-06 11:01:18,5, GSM1: Waiting 10 sec. before retrying<br>2008-01-06 11:01:28,6, GSM1: Checking if modem is ready<br>2008-01-06 11:01:28,7, GSM1: -> AT
<br>2008-01-06 11:01:28,7, GSM1: Command is sent, waiting for the answer<br>2008-01-06 11:01:28,7, GSM1: <- AT<br>OK<br>2008-01-06 11:01:28,6, GSM1: Checking if Modem is registered to the network<br>2008-01-06 11:01:28,7, GSM1: -> AT+CREG?
<br>2008-01-06 11:01:28,7, GSM1: Command is sent, waiting for the answer<br>2008-01-06 11:01:29,7, GSM1: <- AT+CREG?<br>+CREG: 0,1<br>OK<br>2008-01-06 11:01:29,6, GSM1: Modem is registered to the network<br>2008-01-06 11:01:29,6, GSM1: Selecting PDU mode
<br>2008-01-06 11:01:29,7, GSM1: -> AT+CMGF=0<br>2008-01-06 11:01:29,7, GSM1: Command is sent, waiting for the answer<br>2008-01-06 11:01:29,7, GSM1: <- AT+CMGF=0<br>OK<br>2008-01-06 11:01:29,7, GSM1: -> AT+CMGS=18
<br><br>[root@linux2 ~]# <br><br><br>my config <br><br><br># Example smsd.conf. Read the manual for a description<br><br>devices = GSM1<br>outgoing = /var/spool/sms/outgoing<br>checked = /var/spool/sms/checked<br>failed = /var/spool/sms/failed
<br>sent = /var/spool/sms/sent<br>incoming = /var/spool/sms/incoming<br>logfile = /var/log/smsd.log<br>loglevel = 7<br><br>[GSM1]<br>device = /dev/ttyS0<br>incoming = yes<br>#baudrate = 115200<br>#cs_convert = yes<br>#pin = 0000
<br>#mode = nw<br>#baudrate = 115200<br>#rtscts = yes<br>#pin = 1111<br><br><br>what could be wrong?<br><br><br><div class="gmail_quote">On Jan 5, 2008 10:15 PM, Dario B. Bestetti <<a href="mailto:dario.bestetti@opservices.com.br">
dario.bestetti@opservices.com.br</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><div></div><div class="Wj3C7c">
<br>----- Original Message -----<br>From: "Mad Unix" <<a href="mailto:madunix@gmail.com" target="_blank">madunix@gmail.com</a>><br>To: "Peter Edmonds" <<a href="mailto:termx23@gmail.com" target="_blank">
termx23@gmail.com</a>><br>Cc: <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>Sent: Saturday, January 5, 2008 4:53:56 PM (GMT-0300) Auto-Detected<br>Subject: Re: [Nagios-users] SMS gateway
<br><br><div> </div>
<div>
<p>in the future am thinking of a good enhancements of SMS (gnokii or smstools) to be 2 way communications, i.e. so the server can be controled via mobile phone. <br>if a server/service goes down, you can reply to the <br>

alert SMS message with a reboot command or start an application, <br>to fix a service as long the server reachable and the signal can get to the server.</p>
<p>What do you think ?</p>
<p>Thanks Dennis and Peter for you inputs ... i have downloaded smstools started with the configuration.....</p>
<p> </p>
<p> </p><br><br> </div>
<div><span class="gmail_quote">On 1/5/08, <b class="gmail_sendername">Peter Edmonds</b> <<a href="mailto:termx23@gmail.com" target="_blank">termx23@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">> which tools do you use to send sms through GSM modem (connected via COM)<br>> through nagios:
<br>> smstools, kanal, or smsclient
<br><br>I use gnokii. Modem is a Telular GSM SX5D<br><br>/etc/gnokiirc looks like this<br><br>[global]<br>port = /dev/ttyS0<br>model = AT<br>initlength = default<br>connection = serial<br>use_locking = yes<br>serial_baudrate = 19200
<br>smsc_timeout = 10<br>[gnokiid]<br>bindir = /usr/sbin/<br>[connect_script]<br>TELEPHONE = 12345678<br>[disconnect_script]<br>[logging]<br>debug = on<br>rlpdebug = off<br>xdebug = off<br><br><br><br>Notify command for service notifications looks like this
<br><br>echo -e "<$HOSTNAME$>\n$SERVICEDESC$\n$SERVICESTATE$\n$SERVICEOUTPUT$\n$LONGDATETIME$"<br>|gnokii --sendsms $CONTACTPAGER$ >><br>/usr/local/groundwork/nagios/var/gnokii.log 2>&1<br><br>

For host notifications this does the job<br><br>echo -e "<$HOSTNAME$>\n$SERVICEDESC$\n$SERVICESTATE$\n$HOSTOUTPUT$\n$LONGDATETIME$"<br>|gnokii --sendsms $CONTACTPAGER$ >> /usr/local/nagios/var/gnokii.log
<br>2>&1<br><br>Peter Edmonds<br></blockquote></div><br><br clear="all"><br>-- <br>madunix 
<br></div></div>-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
<a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>_______________________________________________
Nagios-users mailing list
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null<br><br><br><br>Actually, smstools allow you to interact with any application. You can
send a message back and execute any command, it´s just a matter of
configuration. And keep in mind the security issues.<br>
<br>
[]s<br>_________________________________________________<br>Dario B. Bestetti        OpServices<br>                                  R. Luciana de Abreu, 471 - Sala 403<br>                                  Porto Alegre, RS - CEP 90570-060
<br>Fone 55(51)30613588 Mobile  55(51)81518218<br>Fax     55(51)30613588  Email    <a href="mailto:dario.bestetti@opservices.com.br" target="_blank">dario.bestetti@opservices.com.br</a><br> <br>               "In God we trust, the rest we monitor ..."
<br>_________________________________________________<br><br></div><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by: Microsoft<br>Defy all challenges. Microsoft(R) Visual Studio 2005.
<br><a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>_______________________________________________<br>Nagios-users mailing list
<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users
</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br><br clear="all"><br>-- <br>
madunix