Page 1 of 2
Return Code of 127 is out of bounds
Posted: Tue Jul 10, 2018 4:43 pm
by compsci28
The host status and HTTP service status for every website I am monitoring is returning an error of "Return code of 127 is out of bounds. Check if plugin exists". I checked and the Check_http plugin is in the correct directory
Re: Return Code of 127 is out of bounds
Posted: Tue Jul 10, 2018 5:15 pm
by scottwilkerson
Can you please provide the command definition that you checks are using and the command configuration for that command from the CCM.
Thanks
Re: Return Code of 127 is out of bounds
Posted: Wed Jul 11, 2018 9:22 am
by compsci28
There is the commands that the host and services are using. And there is the check_http command config
Re: Return Code of 127 is out of bounds
Posted: Wed Jul 11, 2018 11:35 am
by scottwilkerson
And what is the output of the following
Code: Select all
grep USER1 /usr/local/nagios/etc/resources.cfg
ls -al /usr/local/nagios/libexec/check_http
Re: Return Code of 127 is out of bounds
Posted: Wed Jul 11, 2018 11:42 am
by compsci28
There is the output
Re: Return Code of 127 is out of bounds
Posted: Wed Jul 11, 2018 11:50 am
by scottwilkerson
sorry I typo'd
Code: Select all
grep USER1 /usr/local/nagios/etc/resource.cfg
also run the following because these permissions are not correct
Code: Select all
chmod u-s /usr/local/nagios/libexec/check_http
chmod ug+wx /usr/local/nagios/libexec/check_http
Re: Return Code of 127 is out of bounds
Posted: Wed Jul 11, 2018 12:01 pm
by compsci28
No worries. Here is the output
Re: Return Code of 127 is out of bounds
Posted: Wed Jul 11, 2018 2:07 pm
by compsci28
Hey Scott do you have any further suggestions.?
Re: Return Code of 127 is out of bounds
Posted: Wed Jul 11, 2018 2:24 pm
by scottwilkerson
That should do it, unless there are further permissions errors, If it is not resolved then send the output of these
Code: Select all
ls -ld /usr/local/nagios/libexec
ls -ld /usr/local/nagios
Re: Return Code of 127 is out of bounds
Posted: Wed Jul 11, 2018 2:44 pm
by compsci28
No its still broke. Heres the output