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)
Configurating NRPE Agent.
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Configurating NRPE Agent.
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:
with:
iii - restart xinetd:
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
iv - enable nrpe at boot
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
5) Ensure that NRPE is up and running.
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
Code: Select all
disable = yesCode: Select all
sudo /etc/init.d/xinetd restarti - 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
Code: Select all
chkconfig nrpe on
4) Start NRPE
Code: Select all
/etc/init.d/nrpe startCode: Select all
ps -ef | grep nrpe | grep -v grep-
sureshvarthi
- Posts: 1
- Joined: Thu Dec 24, 2015 6:17 am
Re: Configurating NRPE Agent.
There is not attachment for nrpe init.d script
could you please attach it
could you please attach it
Re: Configurating NRPE Agent.
The init.d script can be found below -
https://exchange.nagios.org/directory/P ... pt/details
https://exchange.nagios.org/directory/P ... pt/details
Former Nagios Employee