[icinga-users] German locale setting and performance data parsing errors

Michael Friedrich michael.friedrich at netways.de
Mon Aug 11 09:36:42 CEST 2014


Am 09.08.2014 00:27, schrieb Daniel Parthey:
> Hi,
>
> I installed the following packages:
> https://packages.debian.org/sid/icinga2
> https://packages.debian.org/sid/nagios-plugins-basic
>
> Then check_http returns a "dot" or a "comma" in performance data, depending on the locale:
>
> $ LC_ALL=de_DE.UTF-8 /usr/lib/nagios/plugins/check_http ::1
> HTTP OK: HTTP/1.1 200 OK - 964 bytes in 0,001 second response time |time=0,000620s;;;0,000000 size=964B;;;0
>
> $ LC_ALL=en_US.UTF-8 /usr/lib/nagios/plugins/check_http ::1
> HTTP OK: HTTP/1.1 200 OK - 964 bytes in 0.000 second response time |time=0.000490s;;;0.000000 size=964B;;;0

Discussed that with the Monitoring Plugins team last week on their irc
channel, it's a known problem violating their own spec.

You will encounter a similar behavior on Icinga 1.x and other cores as well.

We're currently discussing how to deal with that in Icinga 2. Feel free
to join the discussion and decision findings at
https://dev.icinga.org/issues/6857

kind regards,
Michael

>
> System default locale is set to German:
>
> $ locale
> LANG=de_DE.UTF-8
> LANGUAGE=de_DE:de:en_GB:en
> 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=
>
> There are warnings in /var/log/icinga2/icinga2.log because of the German commata:
>
> warning/PluginUtility: Error parsing performance data 'time=0,003995s;;;0,000000;10,000000': Invalid performance data unit: ,003995s
>
> What would you recommend to prevent these warnings?
>
> Kind regards
> Daniel
> _______________________________________________
> icinga-users mailing list
> icinga-users at lists.icinga.org
> https://lists.icinga.org/mailman/listinfo/icinga-users


-- 
Michael Friedrich, DI (FH)
Application Developer

NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | Michael.Friedrich at netways.de

** Open Source Backup Conference 2014 - September - osbconf.org **
** Puppet Camp Duesseldorf 2014 - Oktober - netways.de/puppetcamp **
** OSMC 2014 - November - netways.de/osmc **
** OpenNebula Conf 2014 - Dezember - opennebulaconf.com **


More information about the icinga-users mailing list