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

Daniel Parthey kabelpada at kabelmail.de
Sat Aug 9 00:27:44 CEST 2014


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

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


More information about the icinga-users mailing list