Re: [Nagios-users] Sending notifications via SMS+mobile phone
On Sat, Apr 26, 2008 at 6:00 AM, Ilya Meylikhov [EMAIL PROTECTED] wrote: The user which runs nagios (nagios in my case) didn't have the permission to write to the /usr/local/nagios/var/gnokii.log and this user didn't have any permission to use /dev/ttyS0 (so chown nagios:nagios /dev/ttyS0 solved this one). Hi Ilya, Glad you solved this one Ilya. I had the exact same issue when I first setup SMS notifications. It is easy to forget that you need to have the correct permissions to be able to access files, directories or in this case devices ! Probably a good idea to put the chown nagios.nagios /dev/ttyS0 in rc.local so that the permissions get changed when the machine boots. I managed to get voice notifications working via Asterisk if you are interested. Asterisk calls your phone and reads the notification using flite. Peter Edmonds - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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
Re: [Nagios-users] Sending notifications via SMS+mobile phone
-Original Message- From: Peter Edmonds [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2008 3:20 PM To: Meylikhov Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Sending notifications via SMS+mobile phone Can anyone assist me in solving the following task: I need nagios to send SMS via mobile phone connected to COM port. I use gnokii. I have used a Telular GSM SX5D and currently use an Easygate analog fixed cellular terminal (via serial port). Gnokii is avaialble in Debian Etch and supports a lot of mobile phones. Check http://wiki.gnokii.org/index.php/Config for a partial list of supported phones. The atgen driver in gnokii supports lots of phones. /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 21 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 21 Peter Edmonds - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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
Re: [Nagios-users] Sending notifications via SMS+mobile phone
Hello! Could anyone please assist me in troubleshooting the following task: I've bought a TC-35i GSM modem and connect it to my linux Debian box. Everything works fine and I can successfully send sms using the following command: echo some test text | gnokii --sendsms myNumber The problem is that nagios can't send sms using gnokii and I can't figure out why Peter's script (I add it to my message in the bottom) won't work for me. The command for nagios is: define command{ command_name notify-service-by-email command_line echo -e $HOSTNAME$\n$SERVICEDESC$\n$SERVICESTATE$\n$SERVICEOUTPUT$\n$LONGDATETIME $ |gnokii --sendsms $CONTACTPAGER$ /usr/local/nagios/var/gnokii.log 21 } I got the following message in /usr/local/nagios/var/nagios.log: [1209125514] SERVICE ALERT: vector;Check SMTP;CRITICAL;SOFT;1;Connection refused [1209125574] SERVICE ALERT: vector;Check SMTP;CRITICAL;SOFT;2;Connection refused [1209125634] SERVICE ALERT: vector;Check SMTP;CRITICAL;HARD;3;Connection refused [1209125634] SERVICE NOTIFICATION: nagiosadmin;vector;Check SMTP;CRITICAL;notify-service-by-email;Connection refused Thanks in advance, Ilya. -Original Message- From: Peter Edmonds [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2008 3:20 PM To: Meylikhov Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Sending notifications via SMS+mobile phone Can anyone assist me in solving the following task: I need nagios to send SMS via mobile phone connected to COM port. I use gnokii. I have used a Telular GSM SX5D and currently use an Easygate analog fixed cellular terminal (via serial port). Gnokii is avaialble in Debian Etch and supports a lot of mobile phones. Check http://wiki.gnokii.org/index.php/Config for a partial list of supported phones. The atgen driver in gnokii supports lots of phones. /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 21 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 21 Peter Edmonds - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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
Re: [Nagios-users] Sending notifications via SMS+mobile phone
Hi again. Just now I've tried to change my command definition: define command{ command_name notify-by-sms command_line touch /home/rage/it_is_working } My /usr/local/nagios/etc/objects/templates.cfg: define contact{ namegeneric-contact service_notification_period 24x7 host_notification_period24x7 service_notification_optionsw,u,c,r,f,s service_notification_commands notify-by-sms host_notification_commands notify-by-sms register0 } So according to my configuration, nagios must create a file in my /home/rage folder when an alert take place. But the file didn't appear when I manually shutdown one of my monitoring services. In the log files I got the same messages: Apr 25 19:03:35 srv-nagios nagios: SERVICE ALERT: vector;Check SMTP;OK;HARD;3;SMTP OK - 0.063 sec. response time Apr 25 19:03:35 srv-nagios nagios: SERVICE NOTIFICATION: nagiosadmin;vector;Check SMTP;OK;notify-by-sms;SMTP OK - 0.063 sec. response time What I am doing wrong? Hello! Could anyone please assist me in troubleshooting the following task: I've bought a TC-35i GSM modem and connect it to my linux Debian box. Everything works fine and I can successfully send sms using the following command: echo some test text | gnokii --sendsms myNumber The problem is that nagios can't send sms using gnokii and I can't figure out why Peter's script (I add it to my message in the bottom) won't work for me. The command for nagios is: define command{ command_name notify-service-by-email command_line echo -e $HOSTNAME$\n$SERVICEDESC$\n$SERVICESTATE$\n$SERVICEOUTPUT$\n$LONGDATETIME $ |gnokii --sendsms $CONTACTPAGER$ /usr/local/nagios/var/gnokii.log 21 } I got the following message in /usr/local/nagios/var/nagios.log: [1209125514] SERVICE ALERT: vector;Check SMTP;CRITICAL;SOFT;1;Connection refused [1209125574] SERVICE ALERT: vector;Check SMTP;CRITICAL;SOFT;2;Connection refused [1209125634] SERVICE ALERT: vector;Check SMTP;CRITICAL;HARD;3;Connection refused [1209125634] SERVICE NOTIFICATION: nagiosadmin;vector;Check SMTP;CRITICAL;notify-service-by-email;Connection refused Thanks in advance, Ilya. -Original Message- From: Peter Edmonds [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2008 3:20 PM To: Meylikhov Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Sending notifications via SMS+mobile phone Can anyone assist me in solving the following task: I need nagios to send SMS via mobile phone connected to COM port. I use gnokii. I have used a Telular GSM SX5D and currently use an Easygate analog fixed cellular terminal (via serial port). Gnokii is avaialble in Debian Etch and supports a lot of mobile phones. Check http://wiki.gnokii.org/index.php/Config for a partial list of supported phones. The atgen driver in gnokii supports lots of phones. /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 21 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 21 Peter Edmonds - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao ne ___ 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 - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please
Re: [Nagios-users] Sending notifications via SMS+mobile phone
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Ilya Meylikhov Sent: Friday, April 25, 2008 10:07 AM To: 'Peter Edmonds' Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Sending notifications via SMS+mobile phone Hi again. Just now I've tried to change my command definition: define command{ command_name notify-by-sms command_line touch /home/rage/it_is_working } What I am doing wrong? Are permissions on /home/rage sufficient that nagios can enter the directory and create the file? If you created that user with standard tools and done nothing else beyond that, most linux distributions won't permit that. -- Marc - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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
Re: [Nagios-users] Sending notifications via SMS+mobile phone
Thanks for assistance - I have figured out where my problem was lying. The answer to the major problem was in the following command definition: command_line echo -e $HOSTNAME$\n$SERVICEDESC$\n$SERVICESTATE$\n$SERVICEOUTPUT$\n$LONGDATETIME $ |gnokii --sendsms $CONTACTPAGER$ /usr/local/nagios/var/gnokii.log 21 The user which runs nagios (nagios in my case) didn't have the permission to write to the /usr/local/nagios/var/gnokii.log and this user didn't have any permission to use /dev/ttyS0 (so chown nagios:nagios /dev/ttyS0 solved this one). But I wonder why I could't get any clue in the logs files when I had problems? This is a question to nagios developers... Ilya. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ilya Meylikhov Sent: Friday, April 25, 2008 7:07 PM To: 'Peter Edmonds' Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Sending notifications via SMS+mobile phone Hi again. Just now I've tried to change my command definition: define command{ command_name notify-by-sms command_line touch /home/rage/it_is_working } My /usr/local/nagios/etc/objects/templates.cfg: define contact{ namegeneric-contact service_notification_period 24x7 host_notification_period24x7 service_notification_optionsw,u,c,r,f,s service_notification_commands notify-by-sms host_notification_commands notify-by-sms register0 } So according to my configuration, nagios must create a file in my /home/rage folder when an alert take place. But the file didn't appear when I manually shutdown one of my monitoring services. In the log files I got the same messages: Apr 25 19:03:35 srv-nagios nagios: SERVICE ALERT: vector;Check SMTP;OK;HARD;3;SMTP OK - 0.063 sec. response time Apr 25 19:03:35 srv-nagios nagios: SERVICE NOTIFICATION: nagiosadmin;vector;Check SMTP;OK;notify-by-sms;SMTP OK - 0.063 sec. response time What I am doing wrong? Hello! Could anyone please assist me in troubleshooting the following task: I've bought a TC-35i GSM modem and connect it to my linux Debian box. Everything works fine and I can successfully send sms using the following command: echo some test text | gnokii --sendsms myNumber The problem is that nagios can't send sms using gnokii and I can't figure out why Peter's script (I add it to my message in the bottom) won't work for me. The command for nagios is: define command{ command_name notify-service-by-email command_line echo -e $HOSTNAME$\n$SERVICEDESC$\n$SERVICESTATE$\n$SERVICEOUTPUT$\n$LONGDATETIME $ |gnokii --sendsms $CONTACTPAGER$ /usr/local/nagios/var/gnokii.log 21 } I got the following message in /usr/local/nagios/var/nagios.log: [1209125514] SERVICE ALERT: vector;Check SMTP;CRITICAL;SOFT;1;Connection refused [1209125574] SERVICE ALERT: vector;Check SMTP;CRITICAL;SOFT;2;Connection refused [1209125634] SERVICE ALERT: vector;Check SMTP;CRITICAL;HARD;3;Connection refused [1209125634] SERVICE NOTIFICATION: nagiosadmin;vector;Check SMTP;CRITICAL;notify-service-by-email;Connection refused Thanks in advance, Ilya. -Original Message- From: Peter Edmonds [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2008 3:20 PM To: Meylikhov Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Sending notifications via SMS+mobile phone Can anyone assist me in solving the following task: I need nagios to send SMS via mobile phone connected to COM port. I use gnokii. I have used a Telular GSM SX5D and currently use an Easygate analog fixed cellular terminal (via serial port). Gnokii is avaialble in Debian Etch and supports a lot of mobile phones. Check http://wiki.gnokii.org/index.php/Config for a partial list of supported phones. The atgen driver in gnokii supports lots of phones. /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 21 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 21 Peter Edmonds - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still
Re: [Nagios-users] Sending notifications via SMS+mobile phone
Hello, Peter! I've bought Siemens TC35i and installed gnokii but I am unable to send sms using this setup. srv-nagios:/home/rage# gnokii --sendsms +7111 GNOKII Version 0.6.14 LOG: debug mask is 0x1 Lockfile /var/lock/LCK..ttyS0 is stale. Overriding it.. phone instance config: model: AT port_device: /dev/ttyS0 connection_type: 0 init_length: 0 serial_baudrate: 9600 serial_write_usleep: -1 hardware_handshake: 0 require_dcd: 0 smsc_timeout: 100 connect_script: disconnect_script: rfcomm_cn: 1 sm_retry: off Initializing AT capable mobile phone ... Serial device: opening device /dev/ttyS0 Serial device: setting RTS to high and DTR to high Message sent: 0x00 / 0x0004 41 54 5a 0d | ATZ write: [ATZcr] Message sent: 0x00 / 0x0005 41 54 45 31 0d | ATE1 write: [ATE1cr] Message sent: 0x00 / 0x000a 41 54 2b 43 4d 45 45 3d 31 0d | AT+CMEE=1 write: [AT+CMEE=1cr] Message sent: 0x06 / 0x0008 41 54 2b 43 47 4d 4d 0d | AT+CGMM write: [AT+CGMMcr] Message sent: 0x06 / 0x0007 41 54 2b 47 4d 4d 0d| AT+GMM write: [AT+GMMcr] Initialization failed (11) Telephone interface init failed: Command timed out. Quitting. Command timed out. I've also tried it with /dev/ttyS1 and tried to set the number to 8111 and got the same message. Can you please assist me in troubleshooting this issue? Thanks in advance Faithfully yours, Ilya. -Original Message- From: Peter Edmonds [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2008 3:20 PM To: Meylikhov Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Sending notifications via SMS+mobile phone Can anyone assist me in solving the following task: I need nagios to send SMS via mobile phone connected to COM port. I use gnokii. I have used a Telular GSM SX5D and currently use an Easygate analog fixed cellular terminal (via serial port). Gnokii is avaialble in Debian Etch and supports a lot of mobile phones. Check http://wiki.gnokii.org/index.php/Config for a partial list of supported phones. The atgen driver in gnokii supports lots of phones. /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 21 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 21 Peter Edmonds - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ 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
Re: [Nagios-users] Sending notifications via SMS+mobile phone
Yes there is a SIM card in the terminal. We have this on a contract that has a load of free sms messages allocated every month. Works out very cheap indeed. Gareth. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Josh Wells Sent: 19 March 2008 13:15 To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Sending notifications via SMS+mobile phone This probably seems like a dumb question but does a GSM terminal like this require its own cellular account or is it just a matter of buying it and configuring it on the computer? Josh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gareth Watson Sent: Monday, March 17, 2008 5:01 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Sending notifications via SMS+mobile phone We use that terminal at our workplace. I have been using SMSLink very successfully for the past 12 months. I did have to play with the source code to get it working just how we wanted. However, the developer tells me that the changes I have made are now included in the new version. I would take a look at that if you want an easy way to get this working: http://smslink.sourceforge.net/ Once configured and installed all we needed to do was create a notification command like this: define command{ command_name notify-by-sms command_line echo -e $SERVICEDESC$\r$HOSTNAME$\r$SERVICESTATE$\r$SERVICEOUTPUT$ | /usr/local/bin/sendsms -d $CONTACTPAGER$ -Q -f'-' localhost 2/dev/null } Works a treat for us. Plus we like the fact that we can also send SMSs to this software. This means that, in theory at least, our engineers could acknowledge a problem or get a status report from Nagios by texting the SMS modem. We have yet to implement this but it was a big selling point for our installation. I hope this helps, Gareth. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Hünseler Sent: 17 March 2008 08:02 To: Meylikhov Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Sending notifications via SMS+mobile phone Meylikhov schrieb: Hi! Do you use this one - Siemens TC35i Terminal - http://www.warburtech.com/gsm/tc35i.terminal/ ? -Original Message- From: Sander Klein [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2008 1:38 PM To: Meylikhov Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Sending notifications via SMS+mobile phone Hi, I use the siemens tc35i gsm modem and think it's great. Just hook it up to your COM port, install smstool (which is in debian) create the configfile, make a script to send sms and go It's really easy. Greets, Sander Meylikhov wrote: Hello, everybody! Can anyone assist me in solving the following task: I need nagios to send SMS via mobile phone connected to COM port. Are there are such possibilities in nagios and are there any plugins that support sending sms via mobile phone? I found only one plugin (NAGIOSMS: http://www.nagiosexchange.org/Notifications.35.0.html?tx_netnagext_pi1[p_vi ew]=619 )that is currently supports sending notifications via mobile phone but I even can't imagine how to connect mobile phone to my Linux Debian 4.0 server (2.6.18-6-686). Maybe someone already has configured notifications send via mobile phone and can suggest me what mobile phone to buy? I also need any help (suggestions,links, documentation, etc) in connecting mobile phone to my Linux Debian 4.0 server. My system: Nagios server: Linux Debian 4.0 server 2.6.18-6-686 Nagios: nagios-3.0b5 Nagios plugins: nagios-plugins-1.4.11 NRPE: nrpe-2.10 Thank you! - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing
Re: [Nagios-users] Sending notifications via SMS+mobile phone
Hi! Do you use this one - Siemens TC35i Terminal - http://www.warburtech.com/gsm/tc35i.terminal/ ? -Original Message- From: Sander Klein [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2008 1:38 PM To: Meylikhov Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Sending notifications via SMS+mobile phone Hi, I use the siemens tc35i gsm modem and think it's great. Just hook it up to your COM port, install smstool (which is in debian) create the configfile, make a script to send sms and go It's really easy. Greets, Sander Meylikhov wrote: Hello, everybody! Can anyone assist me in solving the following task: I need nagios to send SMS via mobile phone connected to COM port. Are there are such possibilities in nagios and are there any plugins that support sending sms via mobile phone? I found only one plugin (NAGIOSMS: http://www.nagiosexchange.org/Notifications.35.0.html?tx_netnagext_pi1[p_vi ew]=619 )that is currently supports sending notifications via mobile phone but I even can't imagine how to connect mobile phone to my Linux Debian 4.0 server (2.6.18-6-686). Maybe someone already has configured notifications send via mobile phone and can suggest me what mobile phone to buy? I also need any help (suggestions,links, documentation, etc) in connecting mobile phone to my Linux Debian 4.0 server. My system: Nagios server: Linux Debian 4.0 server 2.6.18-6-686 Nagios: nagios-3.0b5 Nagios plugins: nagios-plugins-1.4.11 NRPE: nrpe-2.10 Thank you! - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/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 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/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
Re: [Nagios-users] Sending notifications via SMS+mobile phone
Hi, Meylikhov wrote: Hi! Do you use this one - Siemens TC35i Terminal - http://www.warburtech.com/gsm/tc35i.terminal/ ? Indeed, that's the one. I bought it with the starter kit. Which was nice for me because it comes with a reasonable antenna. I don't have very good GSM signal in my server room. Regards, Sander - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/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
Re: [Nagios-users] Sending notifications via SMS+mobile phone
We use that terminal at our workplace. I have been using SMSLink very successfully for the past 12 months. I did have to play with the source code to get it working just how we wanted. However, the developer tells me that the changes I have made are now included in the new version. I would take a look at that if you want an easy way to get this working: http://smslink.sourceforge.net/ Once configured and installed all we needed to do was create a notification command like this: define command{ command_name notify-by-sms command_line echo -e $SERVICEDESC$\r$HOSTNAME$\r$SERVICESTATE$\r$SERVICEOUTPUT$ | /usr/local/bin/sendsms -d $CONTACTPAGER$ -Q -f'-' localhost 2/dev/null } Works a treat for us. Plus we like the fact that we can also send SMSs to this software. This means that, in theory at least, our engineers could acknowledge a problem or get a status report from Nagios by texting the SMS modem. We have yet to implement this but it was a big selling point for our installation. I hope this helps, Gareth. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Hünseler Sent: 17 March 2008 08:02 To: Meylikhov Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Sending notifications via SMS+mobile phone Meylikhov schrieb: Hi! Do you use this one - Siemens TC35i Terminal - http://www.warburtech.com/gsm/tc35i.terminal/ ? -Original Message- From: Sander Klein [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2008 1:38 PM To: Meylikhov Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Sending notifications via SMS+mobile phone Hi, I use the siemens tc35i gsm modem and think it's great. Just hook it up to your COM port, install smstool (which is in debian) create the configfile, make a script to send sms and go It's really easy. Greets, Sander Meylikhov wrote: Hello, everybody! Can anyone assist me in solving the following task: I need nagios to send SMS via mobile phone connected to COM port. Are there are such possibilities in nagios and are there any plugins that support sending sms via mobile phone? I found only one plugin (NAGIOSMS: http://www.nagiosexchange.org/Notifications.35.0.html?tx_netnagext_pi1[p_vi ew]=619 )that is currently supports sending notifications via mobile phone but I even can't imagine how to connect mobile phone to my Linux Debian 4.0 server (2.6.18-6-686). Maybe someone already has configured notifications send via mobile phone and can suggest me what mobile phone to buy? I also need any help (suggestions,links, documentation, etc) in connecting mobile phone to my Linux Debian 4.0 server. My system: Nagios server: Linux Debian 4.0 server 2.6.18-6-686 Nagios: nagios-3.0b5 Nagios plugins: nagios-plugins-1.4.11 NRPE: nrpe-2.10 Thank you! - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/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 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists
[Nagios-users] Sending notifications via SMS+mobile phone
Hello, everybody! Can anyone assist me in solving the following task: I need nagios to send SMS via mobile phone connected to COM port. Are there are such possibilities in nagios and are there any plugins that support sending sms via mobile phone? I found only one plugin (NAGIOSMS: http://www.nagiosexchange.org/Notifications.35.0.html?tx_netnagext_pi1[p_vi ew]=619 )that is currently supports sending notifications via mobile phone but I even can't imagine how to connect mobile phone to my Linux Debian 4.0 server (2.6.18-6-686). Maybe someone already has configured notifications send via mobile phone and can suggest me what mobile phone to buy? I also need any help (suggestions,links, documentation, etc) in connecting mobile phone to my Linux Debian 4.0 server. My system: Nagios server: Linux Debian 4.0 server 2.6.18-6-686 Nagios: nagios-3.0b5 Nagios plugins: nagios-plugins-1.4.11 NRPE: nrpe-2.10 Thank you! - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/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
Re: [Nagios-users] Sending notifications via SMS+mobile phone
Hi, please keep it on the list. Meylikhov wrote: Dear Sander, it's brilliant that you know how to do it! But my experience with Linux is not great and there could be difficulties, for example where can I get drivers for linux for this gsm modem? And how nagios will send notifications to this GSM modem? And there could be problems with writing the script. Mostly, I am windows administrator (MCSA) not linux :(. It could be great if you will help me to do it, and if you have problems with time we can talk about money reward :) You don't need any drivers for the modem. Everything is in the stock debian kernel. Just attach the siemens modem and it will work. To be honest, DD has an even better solution than I have when it comes to sending sms. If you read his mail carefully you will get there. Everything is in there. The script to send the sms and the notifications command for nagios. If you still don't get it after reading DD's mail, just contact the list. I myself use smstools because we also receive sms and do stuff with it. Greets, Sander - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/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
Re: [Nagios-users] Sending notifications via SMS+mobile phone
Can anyone assist me in solving the following task: I need nagios to send SMS via mobile phone connected to COM port. I use gnokii. I have used a Telular GSM SX5D and currently use an Easygate analog fixed cellular terminal (via serial port). Gnokii is avaialble in Debian Etch and supports a lot of mobile phones. Check http://wiki.gnokii.org/index.php/Config for a partial list of supported phones. The atgen driver in gnokii supports lots of phones. /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 21 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 21 Peter Edmonds - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/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