(Return code of 13 is out of bounds : (No output on stdout)

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mhedtcke
Posts: 19
Joined: Mon Jan 15, 2018 11:22 am

(Return code of 13 is out of bounds : (No output on stdout)

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: (Return code of 13 is out of bounds : (No output on stdo

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mhedtcke
Posts: 19
Joined: Mon Jan 15, 2018 11:22 am

Re: (Return code of 13 is out of bounds : (No output on stdo

Post by mhedtcke »

Here is a screenshot of the command and output.
Attachments
nagios.png
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: (Return code of 13 is out of bounds : (No output on stdo

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mhedtcke
Posts: 19
Joined: Mon Jan 15, 2018 11:22 am

Re: (Return code of 13 is out of bounds : (No output on stdo

Post by mhedtcke »

AWESOME! That worked. I am pretty new to nagios and a linux novice. Can you explain to me what that did?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: (Return code of 13 is out of bounds : (No output on stdo

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mhedtcke
Posts: 19
Joined: Mon Jan 15, 2018 11:22 am

Re: (Return code of 13 is out of bounds : (No output on stdo

Post by mhedtcke »

Thanks again for your help!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: (Return code of 13 is out of bounds : (No output on stdo

Post by scottwilkerson »

Have a great day. Closing thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked