[Pkg-nagios-devel] Bug#396695: check_ntp: doesn't detect that ntpd isn't running!!!

Ralf G. R. Bergs Ralf+Debian at Bergs.BIZ
Thu Nov 2 12:19:59 CET 2006


Package: nagios-plugins-basic
Version: 1.4.3.0cvs.20060707-2bpo1
Severity: normal

As you can see from the version information, I'm running a backports.org
package. I hope it's ok if I report this possible bug, since I don't
have any means to test a different version of this package.

I'm running above mentioned plugin via nrpe on a remote host. My config
looks like this:

command[check_ntp]=/usr/lib/nagios/plugins/check_ntp -H localhost -w 3 -c 5

Even tho I've (for test purposes) killed ntpd, check_ntp exits like this:

-------------- 8x ------------
/etc/nagios# /usr/lib/nagios/plugins/check_ntp -H localhost -w 3 -c 5 -v
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
re-sending request to peer 0
overall average offset: nan
NTP OK: Offset nan secs|offset=nan
-------------- 8x ------------

check_ntp should most definitely NOT exit with "OK" I assume. :-)


-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.8-12-amd64-k8
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages nagios-plugins-basic depends on:
ii  iputils-ping          3:20020927-2       Tools to test the reachability of 
ii  libc6                 2.3.2.ds1-22sarge4 GNU C Library: Shared libraries an
ii  libssl0.9.7           0.9.7e-3sarge4     SSL shared libraries
ii  procps                1:3.2.1-2          The /proc file system utilities

-- no debconf information




More information about the Pkg-nagios-devel mailing list