Install nrpe on Ubuntu

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Install nrpe on Ubuntu

Post 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.
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Install nrpe on Ubuntu

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Install nrpe on Ubuntu

Post by tmcdonald »

Glad to hear it! Will do.
Former Nagios employee
Locked