(Return code of 255 is out of bounds) troubleshooting sequnc
(Return code of 255 is out of bounds) troubleshooting sequnc
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
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
Re: (Return code of 255 is out of bounds) troubleshooting se
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?
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/
https://www.mcapra.com/
Re: (Return code of 255 is out of bounds) troubleshooting se
In addition to what @mcapra mentioned, usually this is due to permissions of some sort.
Are you executing as the same user which NRPE is running as?we can execute NRPE plugins locally
Former Nagios Employee
Re: (Return code of 255 is out of bounds) troubleshooting se
Hirkennedy wrote:In addition to what @mcapra mentioned, usually this is due to permissions of some sort.
Are you executing as the same user which NRPE is running as?we can execute NRPE plugins locally
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.
Re: (Return code of 255 is out of bounds) troubleshooting se
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.
There aren't any custom commands defined, so that'll help us understand what's going on exactly.
Former Nagios Employee
Re: (Return code of 255 is out of bounds) troubleshooting se
Standard Wizard checks as attached.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.
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.
Re: (Return code of 255 is out of bounds) troubleshooting se
Can you login to the remote server as root, run the following commands and post the output?
Thanks
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/libexecBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: (Return code of 255 is out of bounds) troubleshooting se
Hellotgriep wrote:Can you login to the remote server as root, run the following commands and post the output?ThanksCode: 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
Output attached
Thank you
You do not have the required permissions to view the files attached to this post.
Re: (Return code of 255 is out of bounds) troubleshooting se
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
This should reload the config files and allow the NRPE agent to run.
run this to verify that is it running
You should see the output that looks similar to this.
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
Login to the remote server and run the following to restart xinetd
Code: Select all
service xinetd restartrun this to verify that is it running
Code: Select all
netstat -an |grep 5666Code: Select all
tcp 0 0 :::5666 :::* LISTEN Usually the log file is /var/log/messages
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: (Return code of 255 is out of bounds) troubleshooting se
This worked, thank youtgriep 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 xinetdThis should reload the config files and allow the NRPE agent to run.Code: Select all
service xinetd restart
run this to verify that is it runningYou should see the output that looks similar to this.Code: Select all
netstat -an |grep 5666If you don't see that then you will have to look in the log files to see why it is not started.Code: Select all
tcp 0 0 :::5666 :::* LISTEN
Usually the log file is /var/log/messages
Please close the thread