[Nagiosplug-devel] Multi-lingual performance data.
Ben Clewett
ben at clewett.org.uk
Wed Mar 2 05:11:30 CET 2005
Reply to my own posting:
I posted this some time ago under a bad email address, which delayed
posting by several days. I have already had an answer to this, please
ignore!
Regards,
Ben
Ben Clewett wrote:
> 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.
>
>
>
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________________
> Nagios Plugin Development Mailing List
> Nagiosplug-devel at lists.sourceforge.net
> Unsubscribe at
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
More information about the Devel
mailing list