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

2009-06-14 Thread Jan Wagner
forcemerge 509359 531716
thanks


Hi Alexander,

On Wednesday 03 June 2009, Alexander Schmehl wrote:
 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.

Looks like the same problem as in #509359.

With kind regards, Jan.
-- 
Never write mail to w...@spamfalle.info, you have been warned!
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GIT d-- s+: a- C+++ UL P+ L+++ E- W+++ N+++ o++ K++ w--- O M V- PS PE
Y++ PGP++ t-- 5 X R tv- b+ DI- D++ G++ e++ h-- r+++ y+++
--END GEEK CODE BLOCK--


signature.asc
Description: This is a digitally signed message part.


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

2009-06-03 Thread Alexander Schmehl
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