Hi
@ ponnpr7,
I suggest that you follow the steps in this kb article to resolve the
check_NRPE: socket timeout error...
https://support.nagios.com/kb/article/n ... conds.html.
As for the
255 out of bounds error, this is possibly due to the fact that the Nagios XI server IP address is not included in the
nrpe.cfg or
xinetd.d file on your remote host.
Depending on how
nrpe is set up on your remote host, it could be that it is using
xinetd as a daemon to run it, or it has its own dedicated daemon.
To identify which is being used, run his command...
ls -la /etc/xinetd.d/nrpe.
If you get output like this
-rw-r--r--. 1 root root 483 Feb 22 12:23 /etc/xinetd.d/nrpe,
xinetdis being used and you should follow the steps below:
Edit the nrpe file by running the command
vi /etc/xinetd.d/nrpe and change the follwoing line
only_from = 127.0.0.1 to
only_from = 127.0.0.1 <Nagios XI server ip>. Its delimited by a space.
Close and save the file the restart
xinetd service by running the command
sudo service xinetd restart.
However, if you got the output
ls: cannot access /etc/xinetd.d/nrpe: No such file or directory from running the command
ls -la /etc/xinetd.d/nrpe then nrpe has its own daemon and you should follow the steps below.
Please go and edit
nrpe.cfg file located at
/usr/local/nagios/etc/nrpe.cfg(or wherever you have it located) and add your Nagios XI
server IP address at the line that says
allowed_hosts=127.0.0.1,<Nagios XI server IP>.
After adding your XI server IP to that file, please restart the nrpe service by running the command
sudo service nrpe restart on your remote host.
Secondly, you are getting the output
filtered under
STATE after running the Nmap port scan for the following reason:
Nmap cannot determine whether the port is open because packet filtering prevents its probes from reaching the port. The filtering could be from a dedicated firewall device, router rules, or host-based firewall software.
Please check your firewall on the remote host(or whichever way you have it setup) for
port 5666. It should be open so the nrpe agent can communicate with the Nagios XI server.
For information about the firewall on Ubuntu, please refer to this link...
https://help.ubuntu.com/lts/serverguide/firewall.html.
Please let me know if the kb article and the instructions above resolves your issue or if you have any questions.