No status for the error -Return code of 255 is out of bounds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

No status for the error -Return code of 255 is out of bounds

Post by MSPk »

Hi Team,

We have configured some linux/aix servers for monitoring and getting the status message as - Return code of 255 is out of bounds. we have done some quick checks and found that the ports on the monitored servers are not open. now, our ques is the status of each of these services is blank (not warning/critical or unknown) and when I go to the service summary dashlet its tough to identify that some of these services are not working as dont come under warning/critical/unknown and are missed out from the problems column. Please suggest if there is a workaround for this or if we have done anything incorrectly.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: No status for the error -Return code of 255 is out of bo

Post by abrist »

Are these run through nrpe, check_by_ssh, or some type of other agent?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: No status for the error -Return code of 255 is out of bo

Post by MSPk »

they are run through NRPE
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: No status for the error -Return code of 255 is out of bo

Post by abrist »

Well, port 5666 has to be open for the nrpe checks to work . Have you checked the iptables rules and made sure the nrpe/xinetd service is running?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: No status for the error -Return code of 255 is out of bo

Post by MSPk »

Yes, the port was open and server was pingable, however the services were showing the status message as 'Return code of 255 is out of bounds' and the status is blank shown in the figure.

Upon some investigation we found that when the nrpe service is stopped or not responding we are getting this status. What bothers is that when this error is comes up, the service ends up without any status (none of OK/Warning/Critical/Unknown) and no email is sent out for the service being down/unknown nor is it shown in the stats of service status summary. Please help.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: No status for the error -Return code of 255 is out of bo

Post by abrist »

You should actually get a "connection refused" it the service is stopped and the port not active. Out of bounds errors are usually due to a plugin not exiting with an exit code. Can you run the check from the cli and then check the exit code?

Code: Select all

./check_nrpe -H <host> -c <command>
echo $?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: No status for the error -Return code of 255 is out of bo

Post by lmiltchev »

When you run the check from the CLI, and get "255 is out of bounds" message, what is the exit status code?

Code: Select all

echo $?
Be sure to check out our Knowledgebase for helpful articles and solutions!
litsupport.box
Posts: 80
Joined: Wed Apr 02, 2014 7:24 am

Re: No status for the error -Return code of 255 is out of bo

Post by litsupport.box »

If you get this error on only one or two hosts you could remove them from nagios / remove services -> remove host / and then add it back and see what happens. I got this message when checking with vmware_api plugin with a mod gearman worker. When testing the check it works, but for some reason it gave me false/positives.. anyway you could try.
Nagios XI Version : 2014R2.6
fqdn 2.6.32-431.17.1.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Proxy appears to be in use
VMware Image
Mod Gearman
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: No status for the error -Return code of 255 is out of bo

Post by lmiltchev »

MSPk, any updates?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked