That is my guess as well, but the user Nagios is the owner of the file.
Also in my last email I did find and include this text from the
Nagios.log file:

Warning: Attempting to execute the command
"/usr/local/nagios/libexec/send_mail.pl - n "Service Problem" -h
"jwilliamspc" -s "Critical"... (all the parameters are correct)...
[EMAIL PROTECTED] resulted in a return code of 126.  Make
sure the script or binary you are trying to execute actually exists...  

I did some searching on error code 126 and the issue was permission, but
if Nagios is the owner how could that be?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc
Powell
Sent: Thursday, July 17, 2008 11:59 AM
To: nagios Mailinglist
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++to
restart services


On Jul 17, 2008, at 11:05 AM, Jonathan Williams wrote:

> To further test the send_mail.pl function, I tried running it  
> directly from a command prompt and I get a "Permission Denied"  
> error.  Any idea why that would be.  I am using root credentials and  
> the user "Nagios" is the owner.
>

Is there more? A line number or command referenced along with the  
error? If so, look at that line number in the script and see what it's  
trying to do. It's usually not difficult to determine what and why if  
you take a look. An educated guess, assuming you really mean to say  
that you're testing the script as the nagios user (as you should), is  
that the nagios user does not have permissions to execute /usr/sbin/ 
sendmail.

--
Marc


------------------------------------------------------------------------
-
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@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 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@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

Reply via email to