[Pkg-nagios-devel] Bug#509359: #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:58:37 UTC 2008


Debian Bug Tracking System wrote...

> > $ 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.

This is correct but not the problem.

Basically I want a working nagios. Currently, re-starting nagios from a
shell with locale settings will cause the check_ntp plugin to fail upon
the next test. Which may take some time and was therefore hard to to
debug.

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

If you prefer to cause confusion. Your decision.

    Christoph





More information about the Pkg-nagios-devel mailing list