I found that my bug was the way that I was calling the script. Even though the sms-msg.pl script was marked as executable and the first line contained #! /usr/bin/perl -w Nagios didn't run Perl . I had to specify "/usr/bin/perl -w /usr/lib/nagios/plugins/sms-msg.pl"
 
I found this to be a little weird.. perhaps it's a bug? or just something over looked.


From: Lori Adams [mailto:[EMAIL PROTECTED]
Sent: January 26, 2006 2:17 PM
To: Chad Osmond; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] Notification script problems.. How do I debug

Have you checked any log for errors? Maybe you have a permissions problem on your sms script. 

 

-Lori

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chad Osmond
Sent: Thursday, January 26, 2006 11:12 AM
To: nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] Notification script problems.. How do I debug

 

My contacts.cfg calls the notify-by-sms.

contactgroups contains myself and another tech here. We both get e-mail messages about critical services, but I don't get a SMS.

 

This is in Nagios 1.2.2 btw...

 

# 'osmond' contact definition
define contact{
        contact_name                    osmond
        alias                           Chad Osmond
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,u,r
        service_notification_commands   notify-by-email,notify-by-sms
        host_notification_commands      host-notify-by-email,notify-by-sms
        email                          
[EMAIL PROTECTED]
        pager                           905XXXXXXX
        }

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Toto Capuccino
Sent: January 26, 2006 12:21 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Notification script problems.. How do I debug

What do your services.cfg file conrtain about enabling sms messages ?

2006/1/26, Chad Osmond <[EMAIL PROTECTED]>:

Reply via email to