Nagios ignoring Perl Shebang - Was: Notification script problems.. How do I debug
Arno Lehmann
al at its-lehmann.de
Thu Jan 26 23:12:03 CET 2006
Hi,
On 1/26/2006 10:58 PM, Chad Osmond wrote:
>
> 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.
You've probably got a Nagios with embedded Perl running. There's a
section in the manual with some hints how to write your Perl scripts in
that case.
Arno
> *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
> <mailto:chad.osmond at holburn.com>>:
>
--
IT-Service Lehmann al at its-lehmann.de
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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