SMS gateway

Dario B. Bestetti dario.bestetti at opservices.com.br
Sat Jan 5 21:15:33 CET 2008


----- Original Message ----- 
From: "Mad Unix" <madunix at gmail.com> 
To: "Peter Edmonds" <termx23 at gmail.com> 
Cc: nagios-users at lists.sourceforge.net 
Sent: Saturday, January 5, 2008 4:53:56 PM (GMT-0300) Auto-Detected 
Subject: Re: [Nagios-users] SMS gateway 





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. 
if a server/service goes down, you can reply to the 
alert SMS message with a reboot command or start an application, 
to fix a service as long the server reachable and the signal can get to the server. 

What do you think ? 

Thanks Dennis and Peter for you inputs ... i have downloaded smstools started with the configuration..... 






On 1/5/08, Peter Edmonds < termx23 at gmail.com > wrote: 

> which tools do you use to send sms through GSM modem (connected via COM) 
> through nagios: 
> smstools, kanal, or smsclient 

I use gnokii. Modem is a Telular GSM SX5D 

/etc/gnokiirc looks like this 

[global] 
port = /dev/ttyS0 
model = AT 
initlength = default 
connection = serial 
use_locking = yes 
serial_baudrate = 19200 
smsc_timeout = 10 
[gnokiid] 
bindir = /usr/sbin/ 
[connect_script] 
TELEPHONE = 12345678 
[disconnect_script] 
[logging] 
debug = on 
rlpdebug = off 
xdebug = off 



Notify command for service notifications looks like this 

echo -e "<$HOSTNAME$>\n$SERVICEDESC$\n$SERVICESTATE$\n$SERVICEOUTPUT$\n$LONGDATETIME$" 
|gnokii --sendsms $CONTACTPAGER$ >> 
/usr/local/groundwork/nagios/var/gnokii.log 2>&1 

For host notifications this does the job 

echo -e "<$HOSTNAME$>\n$SERVICEDESC$\n$SERVICESTATE$\n$HOSTOUTPUT$\n$LONGDATETIME$" 
|gnokii --sendsms $CONTACTPAGER$ >> /usr/local/nagios/var/gnokii.log 
2>&1 

Peter Edmonds 



-- 
madunix 
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ 
_______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null 



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. 

[]s 
_________________________________________________ 
Dario B. Bestetti OpServices 
R. Luciana de Abreu, 471 - Sala 403 
Porto Alegre, RS - CEP 90570-060 
Fone 55(51)30613588 Mobile 55(51)81518218 
Fax 55(51)30613588 Email dario.bestetti at opservices.com.br 

"In God we trust, the rest we monitor ..." 
_________________________________________________ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080105/b2cab5bc/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list