Opened 5 years ago
Closed 3 years ago
#204 closed defect (fixed)
German umlauts (UTF-8)
| Reported by: | frank.enser@… | Owned by: | mickem |
|---|---|---|---|
| Priority: | 1 | Milestone: | 0.3.8 |
| Component: | CheckSystem | Version: | 0.3.3 |
| Severity: | Bugs | Keywords: | |
| Cc: |
Description
Hi,
we have a problem with german umlauts in Windows performance counter names.
Setup:
Nagios (v2.11) Server with UTF-8 (LANG="en_US.UTF-8").
Windows Server 2003 (German) with NSClient++ - 0.3.3.25 2008-07-04 (also tested on pre 0.3.3).
The counter is called "\Terminaldienstesitzungen(Console)\Komprimierungsverhältnis insgesamt".
The counter is checked with the commandline:
check_nrpe -H $HOST$ -c check_counter -a '\Terminaldienstesitzungen(Console)\Komprimierungsverhältnis insgesamt'
And in NSC.log file I get:
debug:.\NSClient++.cpp:561: Injected Result: WARNING 'ERROR: \Terminaldienstesitzungen(Console)\Komprimierungsverhältnis insgesamt: PdhAddCounter? failed: -1073738823: Der angegebene Leistungsindikator wurde nicht gefunden.
As you can see, the umlaut is wrong so the client can't find the counter.
Change History (2)
comment:1 Changed 5 years ago by mickem
- Status changed from new to assigned
comment:2 Changed 3 years ago by mickem
- Milestone changed from 0.4.0 to 0.3.8
- Resolution set to fixed
- Status changed from assigned to closed
This should work with indexes in new version









yes, this is correct, and in the current version it is not really possible to fix, what you can do is play around and send the "correct values" from the nagios server, that unfrunetly means you need to "stupid down" it and not use UTF-8 and instead use some windows (ish) encoding (ie. the same one) for the script.
For 0.4 I hope to have a unicode settings subsystem so you can configure your checks in nsc.ini correctly regardless of locale. I might also make an "encoding" option for the NRPE module so you can read "other" encodings the dthe default one.
MickeM