[Pkg-nagios-devel] Bug#509359: nagios-plugins-basic: check_ntp fails on locale settings !=C

Christoph Biedl debian.packages.hhqj at manchmal.in-ulm.de
Sun Dec 21 16:22:51 UTC 2008


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20081221/078c467a/attachment.pgp 


More information about the Pkg-nagios-devel mailing list