----- Original Message ----- 
From: "Mad Unix" <[EMAIL PROTECTED]> 
To: "Peter Edmonds" <[EMAIL PROTECTED]> 
Cc: nagios-users@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 < [EMAIL PROTECTED] > 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@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 [EMAIL PROTECTED] 

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

-------------------------------------------------------------------------
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@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

Reply via email to