Nagios ignoring Perl Shebang - Was: Notification script problems.. How do I debug
Chad Osmond
chad.osmond at holburn.com
Thu Jan 26 22:58:05 CET 2006
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:ladams at cloudmark.com]
Sent: January 26, 2006 2:17 PM
To: Chad Osmond; nagios-users at 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: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Chad
Osmond
Sent: Thursday, January 26, 2006 11:12 AM
To: nagios-users at 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 osmond at holburn.com
<mailto:osmond at holburn.com>
pager 905XXXXXXX
}
________________________________
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Toto
Capuccino
Sent: January 26, 2006 12:21 PM
To: nagios-users at 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 <chad.osmond at holburn.com>:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060126/413f4016/attachment.html>
More information about the Users
mailing list