Box293 wrote:In your locate nrpe.txt file I see the following:
/etc/nagios/nrpe.cfg
/usr/local/nagios/etc/nrpe.cfg
/etc/xinetd.d/nrpe
In your ps -ef.txt file I see the following:
nagios 34824 1 0 21:08 ? 00:00:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
root 51453 1 0 14:36 ? 00:00:00 /usr/sbin/xinetd -pidfile /run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
You would assume that /etc/nagios/nrpe.cfg is the file that is being used, however I also see that NRPE is running via xinetd which makes me think that you have two separate copies of NRPE running / trying to run.
This command:Will stop xinetd from running an instance of nrpe. You may need to restart the xinetd service.Code: Select all
mv /etc/xinetd.d/nrpe /var/tmp/
You should then make any changes to /etc/nagios/nrpe.cfg
Your configuration looks good. As Box293 mentioned, it appears you have multiple instances of NRPE running. You are not updating the proper NRPE configuration file, and the reason you get 255 out of bounds is because the other process isn't responding properly.I got (Return code of 255 is out of bounds) error on all services and nrpe was listening on tcp only
Moving forward, how would you like to run NRPE? Standalone or under XINETD? You'll need to figure this out, and stop the other service / remove it accordingly.