Invalid IPv6 address

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
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Invalid IPv6 address

Post by rlinux57 »

Hi Team,

I have run nrpe through xinetd and it's working perfectly, But i got below error message in /var/log/messages very frequently. Please help me to sort out this issue.

Code: Select all

nrpe[2724]: Invalid IPv6 address in ACL: localhost
Regards,
rlinux57
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Invalid IPv6 address

Post by ssax »

What is the output of this command:

Code: Select all

cat /etc/xinetd.d/nrpe
Additionally, what version of NRPE are you running on that server?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -V
Thank you
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Invalid IPv6 address

Post by rlinux57 »

Hi,

I am using NRPE v2.15 at client machine. And NRPE v3.2.1 on NMS server. How could i get rid off this issue ?
cat /etc/xinetd.d/nrpe

service nrpe
{
flags = REUSE
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
log_on_failure += USERID
log_type = FILE /var/log/nrpelog
disable = no
only_from = 127.0.0.1 NMSIP1 NMSIP2 NMSIP3
}
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Invalid IPv6 address

Post by npolovenko »

@rlinux57, There was an issue with IPv6 addresses not resolving correctly on the NRPE v2.x. This issue was fixed in the nrpe v3.0 release.
https://github.com/NagiosEnterprises/nrpe/issues/31
So upgrading the client agent should fix the issue.

But also, you can try editing the check_nrpe command on the XI server by adding the -4 flag to force ipv4 connections.
$USER1$/check_nrpe -4 -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
Let me know if it fixes your issue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Invalid IPv6 address

Post by rlinux57 »

Hi,

It's fixed by changing allowed_hosts=localhost to 127.0.0.1 and restart xinetd service. Kindly let me know How to upgrade NRPE v2.15 to NRPE v3.2.1

Regards,
rlinux57
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Invalid IPv6 address

Post by npolovenko »

@rlinux57, This depends on how the NRPE agent was installed. If it was a source install I recommend uninstalling the old agent and reinstalling the new one:
https://support.nagios.com/kb/article/n ... e-741.html
https://support.nagios.com/kb/article.php?id=515
Make a backup copy of the /usr/local/nagios/etc/nrpe.cfg file somewhere on the server. That way you won't have to define commands again after you install the new agent. (You can copy-paste them from the old file)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked