Package: nagios-plugins-basic
Version: 1.4.12-5
Severity: normal
Hi!
It seems that the results of the ntp checks depend on the used locale:
=
r...@longinus:~# locale
LANG=de_DE.UTF-8
LC_CTYPE=de_DE.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=
r...@longinus:~# /usr/lib/nagios/plugins/check_ntp_peer -H localhost -w 0.5 -c 1
NTP WARNING: Offset 0,014 secs|offset=0,014000s;0,00;1,00;
r...@longinus:~# LANG=POSIX /usr/lib/nagios/plugins/check_ntp_peer -H localhost
-w 0.5 -c 1
NTP OK: Offset 0.014145 secs|offset=0.014145s;0.50;1.00;
===
Note that the values didn't change much, but the german locale uses a
, to sepperate decimal values instead of a dot.
(Causes especially funny results, if you invoke the test via nrpe and
the locale settings of the user starting nrpe influence the results of
this test...)
Best regards,
Alexander
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org