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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jchristy16
Posts: 3
Joined: Wed Sep 09, 2015 1:29 am

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

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

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

Post 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.
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
jchristy16
Posts: 3
Joined: Wed Sep 09, 2015 1:29 am

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

Post 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).
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

no problem.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked