[Pkg-nagios-devel] Bug#597068: check_ping from nagios-plugins-basic fails with ipv6

Jens Pranaitis pranaitis at phil-fak.uni-duesseldorf.de
Thu Sep 16 09:24:04 UTC 2010


Package: nagios-plugins-basic
Version: 1.4.15-1
X-Debbugs-CC: zerbe at phil-fak.uni-duesseldorf.de

The check_ping plugin fails when a host doesn't support ipv6 but a ipv6
address is returned by gethostbyname. 
See for example the following command line output:

infra1:~# host www.heise.de
www.heise.de has address 193.99.144.85
www.heise.de has IPv6 address 2a02:2e0:3fe:100::7
infra1:~# /usr/lib/nagios/plugins/check_ping -H www.heise.de -w
100.0,20% -c 200.0,40%
CRITICAL - Network Unreachable (www.heise.de)
infra1:~# ping6 2a02:2e0:3fe:100::7
connect: Network is unreachable

Nagios should use the ipv4 address if available, at least as a fallback.

Thanks for your great work so far!






More information about the Pkg-nagios-devel mailing list