-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 severity 705900 minor thanks
Hi Petter, many thanks for your verbose informations. Am 22.04.2013 10:32, schrieb Petter Reinholdtsen: > [Jan Wagner] >> Could you please test "/usr/lib/nagios/plugins/check_ping -vvv >> -H test.test.org -w 10,10% -c 10,10%" ... just to be sure. > > The machine do not have internet connectivity by default. I tried > this first: > > root@tjener:~# /usr/lib/nagios/plugins/check_ping -vvv -H > tjener.intern -w 10,10% -c 10,10% CMD: /bin/ping6 -n -U -w 10 -c 5 > tjener.intern Got stderr: connect: Invalid argument /bin/ping6 -n > -U -w 10 -c 5 tjener.intern CRITICAL - Could not interpret output > from ping command Hmm ... this is really strange! > root@tjener:~# /usr/lib/nagios/plugins/check_ping -vvv -H > test.test.org -w 10,10% -c 10,10% check_ping: Invalid > hostname/address - test.test.org Usage: check_ping -H > <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>% [-p packets] [-t > timeout] [-4|-6] root@tjener:~# Okay .. without network this seems really feasible. > Then I fixed internet routing and tried again to test.test.org: > > root@tjener:~# /usr/lib/nagios/plugins/check_ping -vvv -H > test.test.org -w 10,10% -c 10,10% CMD: /bin/ping -n -U -w 10 -c 5 > test.test.org Output: PING test.test.org (127.0.0.1) 56(84) bytes > of data. Output: 64 bytes from 127.0.0.1: icmp_req=1 ttl=64 > time=0.119 ms Output: 64 bytes from 127.0.0.1: icmp_req=2 ttl=64 > time=0.042 ms Output: 64 bytes from 127.0.0.1: icmp_req=3 ttl=64 > time=0.041 ms Output: 64 bytes from 127.0.0.1: icmp_req=4 ttl=64 > time=0.041 ms Output: 64 bytes from 127.0.0.1: icmp_req=5 ttl=64 > time=0.042 ms Output: Output: --- test.test.org ping statistics > --- Output: 5 packets transmitted, 5 received, 0% packet loss, time > 3999ms Output: rtt min/avg/max/mdev = 0.041/0.057/0.119/0.031 ms > PING OK - Packet loss = 0%, RTA = 0.06 > ms|rta=0.057000ms;10.000000;10.000000;0.000000 pl=0%;10;10;0 > 10.000000:10% 10.000000:10% root@tjener:~# Okay ... that's whet I expected. Nice to see that it works. > No idea what is going on here, nor how they are different. Okay .. I did put "tjener.intern" into my /etc/hosts as 127.0.0.1: waja@bb:~$ grep tjener.intern /etc/hosts 127.0.0.1 localhost tjener.intern waja@bb:~$ /usr/lib/nagios/plugins/check_ping -vvv -H tjener.intern -w 10,10% -c 10,10% CMD: /bin/ping -n -U -w 10 -c 5 tjener.intern Output: PING localhost (127.0.0.1) 56(84) bytes of data. Output: 64 bytes from 127.0.0.1: icmp_req=1 ttl=64 time=0.025 ms Output: 64 bytes from 127.0.0.1: icmp_req=2 ttl=64 time=0.038 ms Output: 64 bytes from 127.0.0.1: icmp_req=3 ttl=64 time=0.051 ms Output: 64 bytes from 127.0.0.1: icmp_req=4 ttl=64 time=0.042 ms Output: 64 bytes from 127.0.0.1: icmp_req=5 ttl=64 time=0.047 ms Output: Output: --- localhost ping statistics --- Output: 5 packets transmitted, 5 received, 0% packet loss, time 3998ms Output: rtt min/avg/max/mdev = 0.025/0.040/0.051/0.011 ms PING OK - Packet loss = 0%, RTA = 0.04 ms|rta=0.040000ms;10.000000;10.000000;0.000000 pl=0%;10;10;0 10.000000:10% 10.000000:10% Looks like it's working and I'm actually convinced, that the source of your trouble is somewhere outside of the nagios-plugins package. Fore sure even if it turns out it is, so it seems just 'minor'. Just out of curiosity, could you please try to use "check_ping -4 ..."? Many thanks, Jan. - -- Never write mail to <w...@spamfalle.info>, you have been warned! - -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V- PS PE Y++ PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++ - ------END GEEK CODE BLOCK------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iD8DBQFRdQJi9u6Dud+QFyQRAsT3AJ45Kpc9KPZNO2/uDrvCfulIYI9ODQCeJ4dZ dWqzraGEvUaTPY97hGrwxmE= =n//n -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org