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
Error getting NRPE to install on Redhat 8
Re: Error getting NRPE to install on Redhat 8
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":
Please edit the "/etc/nagios/nrpe.cfg" file.
Change:
To:
Now, restart xinetd:
Now, see if your "nrpe" is listening at port "5666":
Best Regards,
Vinh
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
Change:
Code: Select all
nrpe_user=nrpe
nrpe_group=nrpe
Code: Select all
nrpe_user=nagios
nrpe_group=nagios
Code: Select all
systemctl restart xinetd
Code: Select all
ss -na | grep 5666
Best Regards,
Vinh
Re: Error getting NRPE to install on Redhat 8
Everyone,
It finally installed and works. Thank you to all for your help.
It finally installed and works. Thank you to all for your help.
Re: Error getting NRPE to install on Redhat 8
Great!! ... locking thread ... 