Page 1 of 1

add_ipv4_to_acl: Error, ip-address >::1< incorrect length

Posted: Fri Jul 07, 2017 3:32 am
by jchristy16
Software: nrpe v3.1.1-2

OS: RHEL 6.9

I am using the default configuration file /etc/nagios/nrpe.cfg with the following key/value:
allowed_hosts=127.0.0.1,::1

The message apears in /var/log/messages when the nrpe service is started:
... nrpe[20187]: add_ipv4_to_acl: Error, ip-address >::1< incorrect length

The message does not appear if I use the following key/value instead in /etc/nagios/nrpe.cfg:
allowed_hosts=127.0.0.1

Re: add_ipv4_to_acl: Error, ip-address >::1< incorrect lengt

Posted: Fri Jul 07, 2017 10:42 am
by mcapra
Check out this Github issue:
https://github.com/NagiosEnterprises/nrpe/issues/128

You might try updating to the latest version of NRPE, which is 3.2.0 as of this post, and see if that fixes the issue.

Re: add_ipv4_to_acl: Error, ip-address >::1< incorrect lengt

Posted: Fri Jul 07, 2017 11:19 am
by scottwilkerson
mcapra wrote:Check out this Github issue:
https://github.com/NagiosEnterprises/nrpe/issues/128

You might try updating to the latest version of NRPE, which is 3.2.0 as of this post, and see if that fixes the issue.
Correct, the previous version wasn't accounting correctly for IPv6 addresses

Re: add_ipv4_to_acl: Error, ip-address >::1< incorrect lengt

Posted: Fri Jul 07, 2017 12:26 pm
by jchristy16
Thank you for the quick response, it's greatly appreciated!

I will update nrpe to v3.2.0 or greater once fedora/red hat generate rpms. (Project policy requirement).

Re: add_ipv4_to_acl: Error, ip-address >::1< incorrect lengt

Posted: Fri Jul 07, 2017 12:31 pm
by scottwilkerson
no problem.