[Pkg-nagios-devel] Bug#509589: check_ntp: wrong output for host with both A and AAAA record

Ferenc Wagner wferi at niif.hu
Tue Dec 23 16:39:34 UTC 2008


Package: nagios-plugins-basic
Version: 1.4.5-1etch1
Severity: normal

Hi,

Please consider this:

$ host -t any lipton.aai.niif.hu
lipton.aai.niif.hu  	A	193.225.14.195
lipton.aai.niif.hu  	AAAA	2001:738:0:701:80:C1E1:EC3:0
$ /usr/lib/nagios/plugins/check_ntp -H lipton.aai.niif.hu -v
sending request to peer 0
sending request to peer 1
response from peer 1: offset -2.680183388e-05
sending request to peer 1
response from peer 1: offset -1.871510176e-05
sending request to peer 1
response from peer 1: offset 3.834080417e-06
sending request to peer 1
response from peer 1: offset -3.614556044e-05
re-sending request to peer 0
re-sending request to peer 0
re-sending request to peer 0
re-sending request to peer 0
re-sending request to peer 0
re-sending request to peer 0
overall average offset: nan
NTP OK: Offset nan secs|offset=nan

This isn't serious, since one uses IP addresses anyway, but still a bug.
Sure the client doesn't respond to IPv6 packets, but its offset isn't NaN.

Regards,
Feri.

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash





More information about the Pkg-nagios-devel mailing list