[Nagiosplug-devel] Performance output in different locales
Ton Voon
ton.voon at opsera.com
Tue Dec 16 00:15:43 CET 2008
Hi!
Wanted to get an opinion about an issue that I've recently found.
Note the different output:
$ ./check_ntp_time -H pool.ntp.org
NTP OK: Offset 0.00287938118 secs|offset=0.002879s;60.000000;120.000000;
$ LC_NUMERIC=fi_FI ./check_ntp_time -H pool.ntp.org
NTP OK: Offset 0,01642262936 secs|offset=0,016423s;60,000000;120,000000;
The performance data in the latter has commas instead of periods for
the values.
This was causing problems for the parsing routines in
Nagios::Plugin::Performance, which has now been fixed. But the broader
question is: should performance data return in this format?
As part of internationalisation, the plugin output should be
localised, but I'm thinking that the performance data should always be
in LC_NUMERIC=C.
Any thoughts?
Ton
More information about the Devel
mailing list