[Nagiosplug-help] NSClient "Custom Counter" with French accents doesn't work

Orlin Damyanov communigate at grandlink.fr
Thu Jun 19 09:29:04 CEST 2003


Hello everyone,

I'm trying to create custom counters for NSClient for a French version 
of Windows 2000 server.
All the default commands work OK (the ones using the counters.defs 
file).

I have no problems finding the data to monitor in Performance Monitor.


Anyways it works for options that don't have accents like the example 
below:

===========================

./check_nt -H buffy -p 1248 -v COUNTER -l "\\Serveur\\Sessions 
serveur","Sessions ouvertes : %.f"

Sessions ouvertes : 6
===========================


But when the data I try to monitor contains an accent like "échange" 
I'm out of luck - it always returns 0 as a result.
I tried a dozen different examples to no avail...  :(


===========================

./check_nt -H buffy -p 1248 -v COUNTER -l "\\Fichier 
d'échange(_Total)\\Pourcentage d'utilisation"

0
===========================



Has anyone found a way to deal with accents?

Is it because the ASCII table is different under Linux and Windows?

Can I modify the "counters.defs" file to add my commands and how do I 
go about invoking them afterwards?

Any ideas are very appreciated.

Thanks!

Orlin



P.S. I have no idea why Microsoft decided to translate every god damn 
thing and create such a mess for people in heterogeneous environments. 
Oh well...





More information about the Help mailing list