Page 5 of 5

Re: Install nrpe on Ubuntu

Posted: Thu Sep 08, 2016 10:16 am
by rkennedy
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:

Code: Select all

mv /etc/xinetd.d/nrpe /var/tmp/
Will stop xinetd from running an instance of nrpe. You may need to restart the xinetd service.
You should then make any changes to /etc/nagios/nrpe.cfg
I got (Return code of 255 is out of bounds) error on all services and nrpe was listening on tcp only
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.

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.

Re: Install nrpe on Ubuntu

Posted: Tue Sep 20, 2016 5:39 pm
by Naveed
my nrpe was running from /usr/local/nagios/etc/nrpe.cfg, I just fixed it for now.

Thank you very much all for your inputs.

You may close this thread.

Thanks

Re: Install nrpe on Ubuntu

Posted: Wed Sep 21, 2016 9:47 am
by tmcdonald
Glad to hear it! Will do.