[Pkg-nagios-devel] Bug#333356: check_ntp: fails when offset is 0

Michael Renner robe at amd.co.at
Tue Oct 11 14:29:00 UTC 2005

Package: nagios-plugins
Version: 1.4-6
Severity: normal
Tags: upstream

check_ntp fails when the offset is 0. This might have worked fine "back
then", but nowadays with fast servers you can actually get an offset of
0 when doing ntp checks on localhost.

morework:/# /usr/lib/nagios/plugins/check_ntp -H
NTP OK: Offset 0.000002 secs, jitter 0.154 msec, peer is stratum 1
morework:/# /usr/lib/nagios/plugins/check_ntp -H
NTP CRITICAL: server, stratum 2, offset 0.000000, delay 0.02565
Server for ntp probably down

Please consider removing or adapting the according check (line 205 in check_ntp)

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages nagios-plugins depends on:
ii  dnsutils         1:9.3.1-2               Clients provided with BIND
ii  fping            2.4b2-to-ipv6-11        sends ICMP ECHO_REQUEST packets to
ii  host             20000331-9              utility for querying DNS servers
ii  iputils-ping     3:20020927-2            Tools to test the reachability of 
ii  libc6            2.3.5-6                 GNU C Library: Shared libraries an
ii  libldap2         2.1.30-3                OpenLDAP libraries
ii  libmysqlclient12 4.0.24-10sarge1         mysql database client library
ii  libnet-snmp-perl 5.0.1-1                 Script SNMP connections
ii  libpq3           7.4.6-4                 PostgreSQL C client library
ii  libssl0.9.7      0.9.7g-2                SSL shared libraries
ii  ntp              1:4.2.0a+stable-2sarge1 Network Time Protocol: network uti
ii  ntp-simple       1:4.2.0a+stable-2sarge1 Network Time Protocol: daemon for 
ii  ntpdate          1:4.2.0a+stable-2sarge1 The ntpdate client for setting sys
ii  procps           1:3.2.5-1               /proc file system utilities
ii  qstat            2.8-1                   Command-line tool for querying qua
ii  radiusclient1    0.3.2-8                 /bin/login replacement which uses 
ii  smbclient        3.0.14a-6               a LanManager-like simple client fo
ii  snmp             5.1.2-6.1               NET SNMP (Simple Network Managemen

Versions of packages nagios-plugins recommends:
pn  nagios-text | nagios          <none>     (no description available)

-- no debconf information

More information about the Pkg-nagios-devel mailing list