Page 3 of 3

Re: Error getting NRPE to install on Redhat 8

Posted: Wed Jun 30, 2021 4:20 am
by HIINNS
rpm -ql nrpe
/etc/nagios/nrpe.cfg
/etc/nrpe.d
/etc/sysconfig/nrpe
/usr/lib/.build-id
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/ac53e2031e5335ac6240f6d42d73dc09fdf59d
/usr/lib/systemd/system/nrpe.service
/usr/lib/tmpfiles.d/nrpe.conf
/usr/sbin/nrpe
/usr/share/doc/nrpe
/usr/share/doc/nrpe/CHANGELOG.md
/usr/share/doc/nrpe/LEGAL
/usr/share/doc/nrpe/LICENSE.md
/usr/share/doc/nrpe/NRPE.pdf
/usr/share/doc/nrpe/README.SSL.md
/usr/share/doc/nrpe/README.md
/usr/share/doc/nrpe/SECURITY.md

#cat /etc/xinetd.d/nrpe
# default: off
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
disable = no
per_source = 25
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
only_from = 127.0.0.1 <Nagios XI IP>

ss -na | grep 5666 -> Nothing returned

ps -ef | grep nrpe
root 1428671 1428469 0 05:17 pts/0 00:00:00 grep nrpe

Re: Error getting NRPE to install on Redhat 8

Posted: Wed Jun 30, 2021 9:41 am
by vtrac
Hi,
Hope you are having a good day.
Yes, just as I suspected. Your "nrpe" is installed at a different location.

Please run the below command on your "nrpe" agent machine as "root":

Code: Select all

ln -s /etc/nagios/nrpe.cfg /usr/local/nagios/etc/nrpe.cfg

ln -s /usr/sbin/nrpe /usr/local/nagios/bin/nrpe
Please edit the "/etc/nagios/nrpe.cfg" file.
Change:

Code: Select all

nrpe_user=nrpe

nrpe_group=nrpe
To:

Code: Select all

nrpe_user=nagios

nrpe_group=nagios
Now, restart xinetd:

Code: Select all

systemctl restart xinetd
Now, see if your "nrpe" is listening at port "5666":

Code: Select all

ss -na | grep 5666

Best Regards,
Vinh

Re: Error getting NRPE to install on Redhat 8

Posted: Wed Jun 30, 2021 11:19 am
by HIINNS
Everyone,

It finally installed and works. Thank you to all for your help.

Re: Error getting NRPE to install on Redhat 8

Posted: Wed Jun 30, 2021 1:42 pm
by vtrac
Great!! ... locking thread ... :-)