Hello,
Just installed nrpe rpms on Oracle Linux Server release 7.8
nagios-plugins-disk.x86_64 nagios-plugins-by_ssh.x86_64 nrpe.x86_64 nagios-plugins-nrpe.x86_64
$ ./check_nrpe -H sandbox01
NRPE v4.0.3
When I start the service everything starts up ok. but I noticed this messages
[root@sandbox01 ~]# systemctl status nrpe
● nrpe.service - Nagios Remote Program Executor
Loaded: loaded (/usr/lib/systemd/system/nrpe.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2020-07-30 12:24:59 EDT; 1h 41min ago
Docs: http://www.nagios.org/documentation
Process: 26726 ExecStopPost=/bin/rm -f /var/run/nrpe/nrpe.pid (code=exited, status=0/SUCCESS)
Main PID: 26739 (nrpe)
CGroup: /system.slice/nrpe.service
└─26739 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f
Jul 30 12:24:59 orasndbx01 systemd[1]: Started Nagios Remote Program Executor.
Jul 30 12:24:59 orasndbx01 nrpe[26739]: add_ipv4_to_acl: Error, ip-address >nagios01.mydomain.com< incorrect length
Jul 30 12:24:59 orasndbx01 nrpe[26739]: add_ipv4_to_acl: Error, ip-address >nagiost01.test.mydomian.com< incorrect length
Jul 30 12:24:59 orasndbx01 nrpe[26739]: Starting up daemon
Jul 30 12:24:59 orasndbx01 nrpe[26739]: Server listening on 0.0.0.0 port 5666.
Jul 30 12:24:59 orasndbx01 nrpe[26739]: Server listening on :: port 5666.
Jul 30 12:24:59 orasndbx01 nrpe[26739]: Listening for connections on port 5666
Jul 30 12:24:59 orasndbx01 nrpe[26739]: Allowing connections from: nagios01.mydomain.com,nagiost01.test.mydomain.com
I'm able to setup alerts, etc. I have not seen this on RHEL 7 hosts. Wondering if anyone has any insights ?
Thanks,
nrpe service add_ipv4_to_acl Error, ip-address
Re: nrpe service add_ipv4_to_acl Error, ip-address
Are you using IPv6? Adjusting allowed_hosts to just list the IPv4 address *should* get rid of this warning.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: nrpe service add_ipv4_to_acl Error, ip-address
Hello,
I'm not using IPv6. In our other configurations for nrpe.cfg we use the fqdn. It looks like Oracle Linux 7 version of nagios package does not like this. I replaced the fqdn w/ the IP address of the nagios host and the error did not away. My preference is to use the fqdn, but in this case I'll go w/ IP address. Thanks for the reply and suggestion. Appreciate it.
I'm not using IPv6. In our other configurations for nrpe.cfg we use the fqdn. It looks like Oracle Linux 7 version of nagios package does not like this. I replaced the fqdn w/ the IP address of the nagios host and the error did not away. My preference is to use the fqdn, but in this case I'll go w/ IP address. Thanks for the reply and suggestion. Appreciate it.
Re: nrpe service add_ipv4_to_acl Error, ip-address
I am glad you found a workaround! Just wanted to give you heads up - I notifies our developers about the issue, and they will be looking into it. It is possible that some function in NRPE was only intended for ipv4, not fqdn, but that the rest of the program "works" with fqdn.
Let us know if it is safe to close this topic now. Thank you!
Let us know if it is safe to close this topic now. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!