Configurating NRPE Agent.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
monitoreo1
Posts: 124
Joined: Wed Feb 18, 2015 10:41 am

Configurating NRPE Agent.

Post by monitoreo1 »

Hi Again !!!!!

Do you know if is possible install the NRPE agent without dependences with the "xinetd" service?


Thanks for your help.

We are Using:

Nagios XI Version : 2014R2.6
x86_64
Red Hat Enterprise Linux Server release 7.0 (Maipo)
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Configurating NRPE Agent.

Post by jdalrymple »

xinetd is not a prerequisite for nrpe, it can be run as a daemon. I have some simple instructions I wrote up:

1) Disable the xinetd version and restart xinetd:
i - open the file /etc/xinetd.d/nrpe in your favorite editor
ii - replace the line:

Code: Select all

       disable         = no
with:

Code: Select all

        disable         = yes
iii - restart xinetd:

Code: Select all

sudo /etc/init.d/xinetd restart
2) Install the nrpe startup script if you don't already have it:
i - look in /etc/init.d/ for a file named nrpe
ii - if you don't have the file create a text file and copy the contents of the included attachment into it (don't just scp the file, you could end up with broken line endings)
iii - make sure that the file is set to 755 permissions and is owned by root.root

Code: Select all

chmod 755 /etc/init.d/nrpe
chown root.root /etc/init.d/nrpe
iv - enable nrpe at boot

Code: Select all

chkconfig nrpe on
3) Verify that your config is OK - Open your nrpe.cfg (usually at /usr/local/nagios/etc/nrpe.cfg) and verify the allowed_hosts line reads as you wish. This line is ignored when running from xinetd so it's important to verify. The settings from before can be gotten from the /etc/xinetd.d/nrpe file.

4) Start NRPE

Code: Select all

/etc/init.d/nrpe start
5) Ensure that NRPE is up and running.

Code: Select all

ps -ef | grep nrpe | grep -v grep
sureshvarthi
Posts: 1
Joined: Thu Dec 24, 2015 6:17 am

Re: Configurating NRPE Agent.

Post by sureshvarthi »

There is not attachment for nrpe init.d script

could you please attach it
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Configurating NRPE Agent.

Post by rkennedy »

The init.d script can be found below -
https://exchange.nagios.org/directory/P ... pt/details
Former Nagios Employee
Locked