Return Code of 127 is out of bounds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
compsci28
Posts: 11
Joined: Wed Mar 14, 2018 11:56 am

Return Code of 127 is out of bounds

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

Re: Return Code of 127 is out of bounds

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
compsci28
Posts: 11
Joined: Wed Mar 14, 2018 11:56 am

Re: Return Code of 127 is out of bounds

Post by compsci28 »

There is the commands that the host and services are using. And there is the check_http command config
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Return Code of 127 is out of bounds

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
compsci28
Posts: 11
Joined: Wed Mar 14, 2018 11:56 am

Re: Return Code of 127 is out of bounds

Post by compsci28 »

There is the output
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Return Code of 127 is out of bounds

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
compsci28
Posts: 11
Joined: Wed Mar 14, 2018 11:56 am

Re: Return Code of 127 is out of bounds

Post by compsci28 »

No worries. Here is the output
You do not have the required permissions to view the files attached to this post.
compsci28
Posts: 11
Joined: Wed Mar 14, 2018 11:56 am

Re: Return Code of 127 is out of bounds

Post by compsci28 »

Hey Scott do you have any further suggestions.?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Return Code of 127 is out of bounds

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
compsci28
Posts: 11
Joined: Wed Mar 14, 2018 11:56 am

Re: Return Code of 127 is out of bounds

Post by compsci28 »

No its still broke. Heres the output
You do not have the required permissions to view the files attached to this post.
Locked