Page 1 of 1

Configurating NRPE Agent.

Posted: Wed May 20, 2015 4:53 pm
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)

Re: Configurating NRPE Agent.

Posted: Wed May 20, 2015 4:56 pm
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

Re: Configurating NRPE Agent.

Posted: Tue Jan 05, 2016 1:36 am
by sureshvarthi
There is not attachment for nrpe init.d script

could you please attach it

Re: Configurating NRPE Agent.

Posted: Tue Jan 05, 2016 11:18 am
by rkennedy
The init.d script can be found below -
https://exchange.nagios.org/directory/P ... pt/details