NSClient++ Help (#1) - Using CheckCounters? with accented vowel. (#830) - Message List
I'm trying to check some conunters about ASP.NET like "\ASP.NET Applications(*)\Request Execution Time", but our server has a Spanish Windows version so, the name of this counter has an accented vowel, something like "ejecución" so, when I try to check this counter NSClient fail to locate it. :-(
NSClient it's working fine, e.g:
[cgarcia@sg-pro-04 libexec]$ ./check_nrpe -H as-pro-09 I (0.3.9.321 2011-07-04) seem to be doing fine... [cgarcia@sg-pro-04 libexec]$ [cgarcia@sg-pro-04 libexec]$ ./check_nrpe -H as-pro-09 -c alias_cpu OK CPU Load ok.|'5m'=0%;80;90 '1m'=2%;80;90 '30s'=0%;80;90 [cgarcia@sg-pro-04 libexec]$ [cgarcia@sg-pro-04 libexec]$ ./check_nrpe -H as-pro-09 -c alias_disk WARNING: C:\: Total: 20G - Used: 18.6G (93%) - Free: 1.35G (7%) < warning|'C:\ %'=7%;10;5 'C:\'=18.64GB;2;1;0;20
Some counters works fine e.g:
[cgarcia@sg-pro-04 libexec]$./check_nrpe -H as-pro-09 -c CheckCounter -a "\\Servicio HTTP\\UriCacheHits" OK all counters within bounds.|'\Servicio HTTP\UriCacheHits'=6597
But if I try some "CheckCounter" with an accented vowel (or any other spanish character) it fails. :-( e.g:
[cgarcia@sg-pro-04 libexec]$ ./check_nrpe -H as-pro-09 -c CheckCounter -a "\\ASP.NET\\Reinicios de la aplicación" CRIT: Counter not found: \ASP.NET\Reinicios de la aplicación: No se puede encontrar el contador especificado. (C0000BB9)
I must understand that the problem it's with this kind of characters. Is there any solution or workarround to solve this issue?
Thanks in advance.
That is a limitation of the NRPE protocol. There are a few workarounds though:
1, You can use indexes 2, you can "guess your way" to the correct locale used 3, you can define the counters in nsc.ini (which supports utf8)
Michael Medinmickem07/26/11 10:25:20 (2 years ago)
I find the URL with de index explanation. :-)
Thanks Again. :-)psion7s07/30/11 20:55:15 (23 months ago)
Michael, thank you very much for your anwser. :-)
I guess number 3, IMHO, it's the simplest approach for checking one server, but when you need to monitor several ones you need to modify every nsc.ini in every server. Too much work. :-(
Talking about "indexes"...
· What they are? · How can I get these indexes?
Can you point me some URL with instructions. I try "http://www.nsclient.org/nscp/wiki/CheckCounter" but there is no info about indexes. :-S
Thanks again.psion7s07/30/11 20:37:19 (23 months ago)