[Nagiosplug-devel] Multi-lingual performance data.

Ben Clewett bclewett at perfparse.org
Wed Mar 2 05:00:44 CET 2005


I have had a report from a user of PerfParse about problems with 
performance data on non-English setups.

Eg, check_nt returns:

| 'c:\ Used Space'=1,62Gb;1,80;1,90;0.00;2,00

To produce legal performance data, it should write:

| 'c:\ Used Space'=1.62Gb;1.80;1.90;0.00;2.00

 From experience with PerfParse, the following command needs to be added 
before the writing of the performance data:

setlocale(LC_NUMERIC, "POSIX");

Then after writing:

setlocale(LC_NUMERIC, "");

I hope this is of use to somebody.

Regards,

Ben Clewett.









More information about the Devel mailing list