Your message dated Sun, 21 Dec 2008 17:38:00 +0100
with message-id <[email protected]>
and subject line Re: [Pkg-nagios-devel] Bug#509359: nagios-plugins-basic: 
check_ntp fails on locale settings !=C
has caused the Debian Bug report #509359,
regarding nagios-plugins-basic: check_ntp fails on locale settings !=C
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
509359: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509359
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: nagios-plugins-basic
Version: 1.4.12-4
Severity: normal

To be honest, I did not check the sources in detail. However, check_ntp
reports errors at least on some locale settings.

How to repeat:

$ echo $LANG
de_DE.UTF-8
$ /usr/lib/nagios/plugins/check_ntp -4 -H 1.debian.pool.ntp.org -w 0.2 -c 0.5
NTP CRITICAL: Offset 0,001548523083 secs|offset=0,001549s;0,000000;0,000000;
$

$ LANG=C /usr/lib/nagios/plugins/check_ntp -4 -H 1.debian.pool.ntp.org -w 0.2 
-c 0.5
NTP OK: Offset 0.003710093675 secs|offset=0.003710s;0.200000;0.500000;
$


Quick'n'dirty workaround: Add "export LANG=C" somewhere in the beginning
of /etc/init.d/nagios3

    Christoph

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Christoph Biedl wrote:
> Package: nagios-plugins-basic
> Version: 1.4.12-4
> Severity: normal
> 
> To be honest, I did not check the sources in detail. However, check_ntp
> reports errors at least on some locale settings.
> 
> How to repeat:
> 
> $ echo $LANG
> de_DE.UTF-8
> $ /usr/lib/nagios/plugins/check_ntp -4 -H 1.debian.pool.ntp.org -w 0.2 -c 0.5
> NTP CRITICAL: Offset 0,001548523083 secs|offset=0,001549s;0,000000;0,000000;
> $

Well with LANG=de_DE.UTF-8 0.2 is not a number so what's after the '.'
is not considered AFAICS.

So if you want to use it with LANG=de_DE.UTF-8 you should use 0,2.

> $ LANG=C /usr/lib/nagios/plugins/check_ntp -4 -H 1.debian.pool.ntp.org -w 0.2 
> -c 0.5
> NTP OK: Offset 0.003710093675 secs|offset=0.003710s;0.200000;0.500000;
> $

This only confirms above.

> Quick'n'dirty workaround: Add "export LANG=C" somewhere in the beginning
> of /etc/init.d/nagios3

That would only break locale settings. If you don't want to use German
numbers, then just make sure you don't use a German locale.

Working around the environment is only breaking things IMHO, so closing
this bug.

Cheers

Luk


--- End Message ---

Reply via email to