Page 1 of 1

Return code of 255 is out of bounds

Posted: Thu May 19, 2016 9:36 am
by kumars
Hi

I have installed NRPE2.15 on AIX remote client for monitoring.
After configuration and service startup, all services for logicalHost IP address is showing CRITICAL with message "Return code of 255 is out of bounds"

Manual execution of commands gives result but nagios server unable to get result with logicalHost IP address

Any suggestions/hints appreciated

Re: Return code of 255 is out of bounds

Posted: Thu May 19, 2016 11:39 am
by bwallace
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? (please post the full output)

Code: Select all

./check_nrpe -H <host> -c <command>
echo $?
Also, you may want to take a look at our NRPE t-shooting doc
https://assets.nagios.com/downloads/nag ... utions.pdf

Re: Return code of 255 is out of bounds

Posted: Fri May 20, 2016 4:01 am
by kumars
I am getting connection refused

[nagios@ne-nagios-01 libexec]$ /opt/nagios/libexec/check_nrpe215 -H xxx.xxx.xx.93 -c check_ora_login_fwddb
connect to address 172.26.85.93 port 5666: Connection refused
connect to host 172.26.85.93 port 5666: Connection refused[nagios@ne-nagios-01 libexec]$
[nagios@ne-nagios-01 libexec]$

[nagios@ne-nagios-01 libexec]$ echo $?
255
[nagios@ne-nagios-01 libexec]$



NRPE 2.15 is runing on local host where this host is part of IBM Tivoli cluster group
I have configured the commands to check with Cluster IP ( Virtual IP ) , nrpe is runing on the host and commands run successfully if is submit with local IP

[nagios@ne-nagios-01 libexec]$ /opt/nagios/libexec/check_nrpe215 -H xxx.xxxx.xx.88 -c check_ora_login_fwddb
Database Login successful ***STATUS OK***|Database Login successful ***STATUS OK***
[nagios@ne-nagios-01 libexec]$ echo $?
0
[nagios@ne-nagios-01 libexec]$


Is there any specific configuration on NRPE215 to listen port 5666 also on Virtual IP of cluster host ?

Re: Return code of 255 is out of bounds

Posted: Fri May 20, 2016 9:30 am
by bwallace
Thanks for those details. Now you're getting a 'Connection Refused'? -- that almost always has two main causes:
- Nothing is listening on the IP:Port you are trying to connect to.
- The port is blocked by a firewall.

Since you've confirmed NRPE is listening on the client, then a FW is the next suspect. To confirm, run the following commands from the CLI on the Nagios server and show us the output:

nmap <client ip> -p 5666

/usr/local/nagios/libexec/check_nrpe -H <client ip> (run this one few times then immediately run the cmd below)

tail -50 /var/log/messages