[Pkg-nagios-devel] Bug#531716: nagios-plugins-basic: Results of check_ntp* tests depend on locale

Alexander Schmehl tolimar at debian.org
Wed Jun 3 13:27:48 UTC 2009


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:


=========================================
root at 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=

root at 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,000000;1,000000;

root at 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.500000;1.000000;
===========================================

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





More information about the Pkg-nagios-devel mailing list