(Return code of 255 is out of bounds) troubleshooting sequnc

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

(Return code of 255 is out of bounds) troubleshooting sequnc

Post by dlukinski »

Hello NAGIOS Support

Please help with (Return code of 255 is out of bounds NRPE/Liunux client issues) troubleshooting sequence.
- Installed correctly
- iptables off
- xinet.d has XI IPs
- we can execute NRPE plugins locally

Can't seem to find what is wrong.

Thank you
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: (Return code of 255 is out of bounds) troubleshooting se

Post by mcapra »

What OS is the remote machine using?

Which version of NRPE are you using?

Can you share the contents of the machine's /usr/local/nagios/etc/nrpe.cfg file?
Former Nagios employee
https://www.mcapra.com/
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: (Return code of 255 is out of bounds) troubleshooting se

Post by rkennedy »

In addition to what @mcapra mentioned, usually this is due to permissions of some sort.
we can execute NRPE plugins locally
Are you executing as the same user which NRPE is running as?
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: (Return code of 255 is out of bounds) troubleshooting se

Post by dlukinski »

rkennedy wrote:In addition to what @mcapra mentioned, usually this is due to permissions of some sort.
we can execute NRPE plugins locally
Are you executing as the same user which NRPE is running as?
Hi

su nagios,
RedHat 6.4
2.15 (latest Linux agent from downloads)

nrpe.cfg attached
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: (Return code of 255 is out of bounds) troubleshooting se

Post by rkennedy »

What command are you attempting to execute through NRPE? Please show us the full input / output, ran as the nagios user.

There aren't any custom commands defined, so that'll help us understand what's going on exactly.
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: (Return code of 255 is out of bounds) troubleshooting se

Post by dlukinski »

rkennedy wrote:What command are you attempting to execute through NRPE? Please show us the full input / output, ran as the nagios user.

There aren't any custom commands defined, so that'll help us understand what's going on exactly.
Standard Wizard checks as attached.
IP is correct / iptables disabled.

There is 2nd node host (nfs02), which got NRPE installed same day and configured same way - it works.

We are really lost in what is going on
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: (Return code of 255 is out of bounds) troubleshooting se

Post by tgriep »

Can you login to the remote server as root, run the following commands and post the output?

Code: Select all

netstat -an |grep 5666
netstat -a |grep nrpe
ps -ef --cols=300
cat /etc/xinetd.d/nrpe
ls -l /usr/local/nagios/libexec
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: (Return code of 255 is out of bounds) troubleshooting se

Post by dlukinski »

tgriep wrote:Can you login to the remote server as root, run the following commands and post the output?

Code: Select all

netstat -an |grep 5666
netstat -a |grep nrpe
ps -ef --cols=300
cat /etc/xinetd.d/nrpe
ls -l /usr/local/nagios/libexec
Thanks
Hello

Output attached

Thank you
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: (Return code of 255 is out of bounds) troubleshooting se

Post by tgriep »

Thanks for the file. The output of the netstat commands are not showing that xinetd is starting the NRPE agent so that is causing the issue.
Login to the remote server and run the following to restart xinetd

Code: Select all

service xinetd restart
This should reload the config files and allow the NRPE agent to run.
run this to verify that is it running

Code: Select all

netstat -an |grep 5666
You should see the output that looks similar to this.

Code: Select all

tcp        0      0 :::5666                     :::*                        LISTEN 
If you don't see that then you will have to look in the log files to see why it is not started.
Usually the log file is /var/log/messages
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: (Return code of 255 is out of bounds) troubleshooting se

Post by dlukinski »

tgriep wrote:Thanks for the file. The output of the netstat commands are not showing that xinetd is starting the NRPE agent so that is causing the issue.
Login to the remote server and run the following to restart xinetd

Code: Select all

service xinetd restart
This should reload the config files and allow the NRPE agent to run.
run this to verify that is it running

Code: Select all

netstat -an |grep 5666
You should see the output that looks similar to this.

Code: Select all

tcp        0      0 :::5666                     :::*                        LISTEN 
If you don't see that then you will have to look in the log files to see why it is not started.
Usually the log file is /var/log/messages
This worked, thank you
Please close the thread
Locked