Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-22 Thread Joachim Breitner
Hi, Am Dienstag, den 21.05.2013, 20:17 +0200 schrieb Petter Reinholdtsen: [Joachim Breitner] just uploaded to unstable. I have never done a stable update, but I guess I’ll have to wait for it to enter jessie (i.e. wait 10 days), and then talk to the release team. Actually, I believe the

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-21 Thread Joachim Breitner
Hi, Am Dienstag, den 14.05.2013, 01:14 +0200 schrieb Petter Reinholdtsen: [Joachim Breitner] I modified it to use a libc-provided macro to detect link-local-addresses. It works here, but would you mind testing it in your setup: http://git.nomeata.de/?p=libnss-myhostname.git;a=summary

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-21 Thread Petter Reinholdtsen
reassign 705900 libnss-myhostname thanks [Joachim Breitner] just uploaded to unstable. I have never done a stable update, but I guess I’ll have to wait for it to enter jessie (i.e. wait 10 days), and then talk to the release team. Actually, I believe the correct approach is to file a pu

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-13 Thread Joachim Breitner
Hi, I got more information: If, in the attached example test.c, the ai_family field of the hints argument to getaddrinfo is set to AF_UNSPEC, then I do get the correct scope id in the returned data structure. If the hint is set to AF_INET6, I don’t (but I also do not get the debugging

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-13 Thread Joachim Breitner
Hi Petter, Am Sonntag, den 12.05.2013, 08:02 +0200 schrieb Petter Reinholdtsen: Joachim, perhaps time to use the patch I provided in the Debian package, while we wait for these lofty old wizards to fight out their world view dispute? I modified it to use a libc-provided macro to detect

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-13 Thread Lennart Poettering
On Sun, 12.05.13 08:02, Petter Reinholdtsen (p...@hungry.com) wrote: Joachim, perhaps time to use the patch I provided in the Debian package, while we wait for these lofty old wizards to fight out their world view dispute? How about just spending some time to track down the *actual* issue and

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-13 Thread Lennart Poettering
On Mon, 13.05.13 10:03, Joachim Breitner (nome...@debian.org) wrote: Hi, I got more information: If, in the attached example test.c, the ai_family field of the hints argument to getaddrinfo is set to AF_UNSPEC, then I do get the correct scope id in the returned data structure. If the

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-13 Thread Joachim Breitner
Hi, Am Montag, den 13.05.2013, 15:40 +0200 schrieb Lennart Poettering: On Mon, 13.05.13 10:03, Joachim Breitner (nome...@debian.org) wrote: I got more information: If, in the attached example test.c, the ai_family field of the hints argument to getaddrinfo is set to AF_UNSPEC, then I do

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-13 Thread Petter Reinholdtsen
[Joachim Breitner] I modified it to use a libc-provided macro to detect link-local-addresses. It works here, but would you mind testing it in your setup: http://git.nomeata.de/?p=libnss-myhostname.git;a=summary It seem to work just fine when I test it too. :) I hope the fix will make it into

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-12 Thread Petter Reinholdtsen
So, to summarize: 1) 'check_ping $(hostname)' in Nagios fail when libnss-myhostname is active, because glibc return the IPv6 link local address when looking up the IP address of the local host. 2) ping6 can not ping the IPv6 link local address without an network interface specifier.

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-07 Thread Petter Reinholdtsen
[Noah Meyerhans] This doesn't sound like a bug in libc or in ping6. getaddrinfo() will return a scope ID if you've explicitly provided one in the hints you've provided. For example, notice the different behavior when running Joachim's test.c program with a scoped address as opposed to a

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-07 Thread Noah Meyerhans
On Tue, May 07, 2013 at 04:25:40PM +0200, Petter Reinholdtsen wrote: I do not know IPv6 addressing or the glibc internals well enough to form an opinion on this, but I do not understand your argument. ping6 and libc can know from the values in the IPv6 address if it is a link-local address or

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-07 Thread Lennart Poettering
On Tue, 07.05.13 12:43, Noah Meyerhans (no...@debian.org) wrote: On Tue, May 07, 2013 at 04:25:40PM +0200, Petter Reinholdtsen wrote: I do not know IPv6 addressing or the glibc internals well enough to form an opinion on this, but I do not understand your argument. ping6 and libc can know

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-07 Thread Noah Meyerhans
On Tue, May 07, 2013 at 06:52:36PM +0200, Lennart Poettering wrote: As mentioned, nss-myhostname provides the scope ID field filled in correctly to glibc. If this information is somehow lost on the way to the caller of getaddrinfo(), then this is a fuckup in glibc, and that's it. Possibly,

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-05 Thread Joachim Breitner
Control: reassign -1 iputils Control: retitle -1 ping6 should respect the scope_id returned by getaddrinfo Hi everyone, Am Freitag, den 03.05.2013, 13:22 +0200 schrieb Lennart Poettering: We currently filter addresses of HOST and NOWHERE scope, but local addresses should generally be fine.

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-05 Thread Petter Reinholdtsen
[Joachim Breitner] But it seems that the scope id is not really passed all the way down to the user. Using the attached test code, I get: $ ./test kirk Scope id returned for ./test: 0 So is this a bug in the libc? Could be. What do you believe 'getent hosts $(hostname)' should print if

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-05 Thread Noah Meyerhans
On Sun, May 05, 2013 at 07:59:02PM +0200, Petter Reinholdtsen wrote: [Joachim Breitner] But it seems that the scope id is not really passed all the way down to the user. Using the attached test code, I get: $ ./test kirk Scope id returned for ./test: 0 So is this a bug in the libc?

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-03 Thread Lennart Poettering
On Sat, 27.04.13 09:39, Petter Reinholdtsen (p...@hungry.com) wrote: [Joachim Breitner] it was reported that libnss-myhostname may report an IPv6 address for the local hostname that is not pingable, as it is a link scoped address, and it was suggested that it not do that. Do you agree and

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-02 Thread Petter Reinholdtsen
Hi, Joachim. Would you be willing to provide a fix for this in a Wheezy update? Knowing the answer to this question would make it easier for us in Debian Edu to plan what to do. -- Happy hacking Petter Reinholdtsen -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a

Bug#705900: check_ping fail if host do not have IPv6 address

2013-05-02 Thread Joachim Breitner
Hi, Am Donnerstag, den 02.05.2013, 14:25 +0200 schrieb Petter Reinholdtsen: Would you be willing to provide a fix for this in a Wheezy update? Knowing the answer to this question would make it easier for us in Debian Edu to plan what to do. I’d be willing to package a fix; I’m still reluctant

Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-28 Thread Petter Reinholdtsen
[Joachim Breitner] thanks for the patch. However, I’m reluctant to apply it without upstream’s opinion and blessing. Lennart, can you comment on the problem and solution? I understand perfectly. We are also reluctant to make our own libnss-myhostname packages in Debian Edu before we know

Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-27 Thread Petter Reinholdtsen
[Joachim Breitner] it was reported that libnss-myhostname may report an IPv6 address for the local hostname that is not pingable, as it is a link scoped address, and it was suggested that it not do that. Do you agree and can you fix it? Here is a simple patch to make sure link local addresses

Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-27 Thread Joachim Breitner
Hi, Am Samstag, den 27.04.2013, 09:39 +0200 schrieb Petter Reinholdtsen: [Joachim Breitner] it was reported that libnss-myhostname may report an IPv6 address for the local hostname that is not pingable, as it is a link scoped address, and it was suggested that it not do that. Do you agree

Bug#705900: [Pkg-nagios-devel] Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-22 Thread Jan Wagner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 tag 705900 + moreinfo unreproducible thanks Hi Petter, thanks for taking time to reporting your issue. Am 22.04.2013 00:22, schrieb Petter Reinholdtsen: The DNS host name in question only resolve to an IPv4 address, but ping6 is tried

Bug#705900: [Pkg-nagios-devel] Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-22 Thread Petter Reinholdtsen
[Jan Wagner] If you can give me more informations, maybe I can dig into it. I would be happy to, if you have suggestions to what kind of information to collect. -- Happy hacking Petter Reinholdtsen -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of

Bug#705900: [Pkg-nagios-devel] Bug#705900: Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-22 Thread Jan Wagner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 22.04.2013 09:23, schrieb Petter Reinholdtsen: [Jan Wagner] If you can give me more informations, maybe I can dig into it. I would be happy to, if you have suggestions to what kind of information to collect. Could you please test

Bug#705900: [Pkg-nagios-devel] Bug#705900: Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-22 Thread 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%

Bug#705900: [Pkg-nagios-devel] Bug#705900: Bug#705900: Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-22 Thread Jan Wagner
-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%

Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-22 Thread Petter Reinholdtsen
reassign 705900 libnss-myhostname found 705900 0.3-4 severity 705900 important thanks [Jan Wagner] Looks like it's working and I'm actually convinced, that the source of your trouble is somewhere outside of the nagios-plugins package. Hm, I guess you are right. See below. It is not DNS

Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-22 Thread Joachim Breitner
Hi, thanks for the bug report. I’m curious: In root@tjener:~# host tjener.intern tjener.intern has address 10.0.2.2 root@tjener:~# /usr/lib/nagios/plugins/check_ping -H tjener.intern -w 10,10% -c 10,10% /bin/ping6 -n -U -w 10 -c 5 tjener.intern CRITICAL - Could not interpret output

Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-22 Thread Petter Reinholdtsen
[Joachim Breitner] Why exactly does it fail if the local hostname resolves to an IPv6 address? Because ping6 is not installed? Or because /usr/lib/nagios/plugins/check_ping does not understand the output? I do not know. ping6 is installed, but the command fail. This is the output from ping6:

Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-22 Thread Petter Reinholdtsen
[Petter Reinholdtsen] I do not know. ping6 is installed, but the command fail. This is the output from ping6: root@tjener:~# ping6 fe80::5652:ff:fe1f:e659 connect: Invalid argument root@tjener:~# Ah, wrong argument. I know why it fail now. check_ping uses NSS to look up the

Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-22 Thread Joachim Breitner
Hi, Am Montag, den 22.04.2013, 13:20 +0200 schrieb Petter Reinholdtsen: [Petter Reinholdtsen] I do not know. ping6 is installed, but the command fail. This is the output from ping6: root@tjener:~# ping6 fe80::5652:ff:fe1f:e659 connect: Invalid argument root@tjener:~# Ah,

Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-22 Thread Petter Reinholdtsen
[Joachim Breitner] would ping6 use data from /etc/hosts then? It seems to me that this is more likely a bug in ping6 if it circumvents the system???s normal ways of resolving names. Hm, good point. Ah, right. I forgot I had removed libnss-myhostname when I tested the second time. When I try

Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-22 Thread Petter Reinholdtsen
[Petter Reinholdtsen] When I try again with libnss-myhostname active, I get this result: root@tjener:~# ping6 tjener.intern connect: Invalid argument root@tjener:~# Strace below. I asked one of the local IPv6 experts, and he said ping6 is not supposed to be able to ping the IPv6

Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-22 Thread Jan Wagner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Cheers, Am 22.04.13 15:27, schrieb Petter Reinholdtsen: So if libnss-myhostname insist on returning the Link IPv6 address for a given machine, it need to add the interface name as part of the address string. The reason the interface name is

Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-22 Thread Petter Reinholdtsen
[Jan Wagner] while this assumption is valid for local used (indeed with execptions) and multicast IPv6 addresses, this should NOT be the case for globaly routed IPv6 addresses. Sure. I only talk about the scope:Link addresses reported by ifconfig. I was shown that on FreeBSD, ifconfig report

Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-22 Thread Joachim Breitner
Hi, Am Montag, den 22.04.2013, 22:58 +0200 schrieb Petter Reinholdtsen: Anyway, Joachim, do you agree that the addresses returned by libnss-myhostname when running 'getent hosts $(uname -n)' should be pingable addresses? If so, I believe libnss-myhostname should be changed. Besides, I

Bug#705900: check_ping fail if host do not have IPv6 address

2013-04-21 Thread Petter Reinholdtsen
Package: nagios-plugins-basic Version: 1.4.16-1 Severity: important User: debian-...@lists.debian.org Usertags: debian-edu In Debian Edu, we use check_ping from the nagios-plugins-basic package to check if a host is responding. The Nagios configuration is generated using the sitesummary