Help - I am unable to send notifications

Andreas Ericsson ae at op5.se
Wed Jul 23 14:03:39 CEST 2008


jonathan williams wrote:
> [1216749581] Warning: Attempting to execute the command
> "/usr/local/nagios/libexec/send_mail.pl -n "SERVICE RECOVERY" -h
> "jwilliamspc" -s "OK" -a "10.10.113.51" -i "PrintSpooler - Spooler:
> Started - check_nt!SERVICESTATE!-d SHOWALL -l Spooler" -d "Tue Jul 22
> 10:59:41 PDT 2008" -e "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..."
> 

Due to some weird and slightly bent way of passing errors between
processes, return code 126 means "Operation not permitted". In
english, that means the script is not executable, or one of the
directories leading up to it isn't readable by the Nagios user.

Run this command (as root):

chmod 0755 /usr/local/nagios/libexec/send_mail.pl

(correct the path if necessary)
and things just might start working a little better.

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