Help - I am unable to get theNSClient++ to restart services
Jonathan Williams
jonathan.williams at us.g4s.com
Fri Jul 18 16:07:00 CEST 2008
I did (at least similar). I ran it and it returned:
/usr/local/bin/pearl -w
There are no quotes as previously mentioned.
Jon
-----Original Message-----
From: Andreas Ericsson [mailto:ae at op5.se]
Sent: Friday, July 18, 2008 12:38 AM
To: Jonathan Williams
Cc: Valdinger, Stephen (DOV, MSX); nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Help - I am unable to get theNSClient++ to
restart services
Jonathan Williams wrote:
> OK... A little more info. I checked the Nagios.log and saw this
> error:
>
>
>
> Warning: Attempoting to execute the command
> "/usr/local/nagios/libexec/send_mail.pl - n "Service Problem" -h
> "jwilliamspc" -s "Critical"... (all the parameters are correct)...
> jonathan.williams at us.g4s.com resulted in a return code of 126. Make
> sure the script or binary you are trying to execute actually
> exists...
>
>
>
> The file send_mail.pl does exist in the /usr/local/Nagios/libexec
> folder. Not sure why I am getting that return code.
>
>
>
> Any thoughts?
>
sed 1q /usr/local/nagios/libexec/send_mail.pl
should give you output similar to the one below:
#!/usr/bin/perl <args-to-perl>
If it doesn't, you've found your error.
Also make sure you have no stray quotes anywhere in the command
definition.
If you're trying to execute
"sendmail.pl -n" it tries to find a file named "sendmail.pl -n" instead
of
trying to find one named "sendmail.pl" and passing it "-n" as the first
argument.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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