<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">termx23@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">> 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