Page 1 of 1
(Return code of 13 is out of bounds : (No output on stdout)
Posted: Tue Mar 06, 2018 2:24 pm
by mhedtcke
I've searched all over these forums and the internet and I cannot seem to figure out a solution to this. I am getting this error on every thing I have set up in Nagios.
(Return code of 13 is out of bounds : (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_em01, ...) failed. errno is 13: Permission denied))
or
Info: (Return code of 13 is out of bounds : (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_ping, ...) failed. errno is 13: Permission denied))
I've reset the plugins. I've checked the permissions. I made sure there were no temp files restricted to the root account.
Any thoughts or assistance is appreciated.
Re: (Return code of 13 is out of bounds : (No output on stdo
Posted: Tue Mar 06, 2018 4:23 pm
by scottwilkerson
it looks like a permissions thing to me, please show the output of the following
Code: Select all
ls -al /usr/local/nagios/libexec/check_ping
ls -al /usr/local/nagios
Re: (Return code of 13 is out of bounds : (No output on stdo
Posted: Tue Mar 06, 2018 4:28 pm
by mhedtcke
Here is a screenshot of the command and output.
Re: (Return code of 13 is out of bounds : (No output on stdo
Posted: Tue Mar 06, 2018 4:44 pm
by scottwilkerson
ya, check_ping isn't executable
run
Code: Select all
chmod +x /usr/local/nagios/libexec/*
chmod u+s /usr/local/nagios/libexec/check_dhcp
chmod u+s /usr/local/nagios/libexec/check_icmp
Re: (Return code of 13 is out of bounds : (No output on stdo
Posted: Tue Mar 06, 2018 5:11 pm
by mhedtcke
AWESOME! That worked. I am pretty new to nagios and a linux novice. Can you explain to me what that did?
Re: (Return code of 13 is out of bounds : (No output on stdo
Posted: Tue Mar 06, 2018 5:18 pm
by scottwilkerson
mhedtcke wrote:AWESOME! That worked. I am pretty new to nagios and a linux novice. Can you explain to me what that did?
Sure thing. this command took all the file in /usr/local/nagios/libexec/ and made them executable by all
Code: Select all
chmod +x /usr/local/nagios/libexec/*
There are 2 special plugins though that need different permissions do this command allows the plugins the be setuid root (I'll spare you what that means, but basically the plugins can run as root)
Code: Select all
chmod u+s /usr/local/nagios/libexec/check_dhcp
chmod u+s /usr/local/nagios/libexec/check_icmp
Re: (Return code of 13 is out of bounds : (No output on stdo
Posted: Tue Mar 06, 2018 5:25 pm
by mhedtcke
Thanks again for your help!
Re: (Return code of 13 is out of bounds : (No output on stdo
Posted: Tue Mar 06, 2018 5:31 pm
by scottwilkerson
Have a great day. Closing thread