Package: monitoring-plugins-basic Version: 2.2-3 Severity: normal Hello,
I want to monitor a host called www.xn--kleine-knig-yfb.de (or www.kleine-könig.de). Both ways to write this hostname are incompatible with check_ping: $ /usr/lib/nagios/plugins/check_ping -H www.xn--kleine-knig-yfb.de -w 5,5% -c 10,10% -vvv CMD: /bin/ping6 -n -U -w 10 -c 5 www.xn--kleine-knig-yfb.de Got stderr: ping: www.xn--kleine-knig-yfb.de: Parameter string not correctly encoded /bin/ping6 -n -U -w 10 -c 5 www.xn--kleine-knig-yfb.de CRITICAL - Could not interpret output from ping command $ /usr/lib/nagios/plugins/check_ping -H www.kleine-könig.de -w 5,5% -c 10,10% -vvv check_ping: Invalid hostname/address - www.kleine-könig.de Usage: check_ping -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>% [-p packets] [-t timeout] [-4|-6] "funny" enough, ping6 supports both variants: $ /bin/ping6 -n -U -w 10 -c 5 www.xn--kleine-knig-yfb.de PING www.xn--kleine-knig-yfb.de(2a01:4f8:c0c:3a97::2) 56 data bytes 64 bytes from 2a01:4f8:c0c:3a97::2: icmp_seq=1 ttl=64 time=0.092 ms 64 bytes from 2a01:4f8:c0c:3a97::2: icmp_seq=2 ttl=64 time=0.039 ms 64 bytes from 2a01:4f8:c0c:3a97::2: icmp_seq=3 ttl=64 time=0.068 ms 64 bytes from 2a01:4f8:c0c:3a97::2: icmp_seq=4 ttl=64 time=0.046 ms 64 bytes from 2a01:4f8:c0c:3a97::2: icmp_seq=5 ttl=64 time=0.061 ms --- www.xn--kleine-knig-yfb.de ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4092ms rtt min/avg/max/mdev = 0.039/0.061/0.092/0.019 ms $ /bin/ping6 -n -U -w 10 -c 5 www.kleine-könig.de PING www.kleine-könig.de(2a01:4f8:c0c:3a97::2) 56 data bytes 64 bytes from 2a01:4f8:c0c:3a97::2: icmp_seq=1 ttl=64 time=0.031 ms 64 bytes from 2a01:4f8:c0c:3a97::2: icmp_seq=2 ttl=64 time=0.059 ms 64 bytes from 2a01:4f8:c0c:3a97::2: icmp_seq=3 ttl=64 time=0.053 ms 64 bytes from 2a01:4f8:c0c:3a97::2: icmp_seq=4 ttl=64 time=0.058 ms 64 bytes from 2a01:4f8:c0c:3a97::2: icmp_seq=5 ttl=64 time=0.047 ms --- www.kleine-könig.de ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4079ms rtt min/avg/max/mdev = 0.031/0.049/0.059/0.012 ms Best regards Uwe -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (700, 'testing'), (600, 'unstable'), (500, 'unstable-debug'), (500, 'stable'), (499, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.15.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages monitoring-plugins-basic depends on: ii iputils-ping 3:20161105-1 ii libc6 2.27-3 ii libssl1.1 1.1.0h-2 pn monitoring-plugins-common <none> ii procps 2:3.3.12-4 ii ucf 3.0038 Versions of packages monitoring-plugins-basic recommends: ii libcap2-bin 1:2.25-1.2 Versions of packages monitoring-plugins-basic suggests: pn icinga | icinga2 <none>