[Nagiosplug-help] Problem with check_nt plugin only one digit return when use a perfomance counter

Thomas Guyot-Sionnest dermoth at aei.ca
Sat Mar 27 15:06:44 CET 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 26/03/10 08:57 AM, Sébastien HAIRION wrote:
>  
> [...]
>
> I use logically check_nt for that and I ask the performance counter.
> 
>  
> 
> But when I do that in a bash :
> 
>  
> 
> ./check_nt ?H 10.198.42.33 ?p 12489 ?v COUNTER ?l
> ?? \\Process(sqlservr)\\Working <file:///\\Process(sqlservr)\Working>
> Set?? -s Password
> 
>  
> 
> The result is :
> 
>  
> 
> 5
> 
>  
> 
>  but when i see the perfomance counter in perfmon the value are 55287808.
> 
>  
> 
>  
> 
> And i don?t think the problem are in NsClient ++ because in the log i
> can see that :
> 
>  
> 
> 2010-03-26 00:30:58: debug:.\NSClientListener.cpp:143: Data:
> Password&8&\Process(sqlservr)\Working Set
> 
> 2010-03-26 00:30:58: debug:.\NSClientListener.cpp:168: Data:
> \Process(sqlservr)\Working Set
> 
> 2010-03-26 00:30:58: debug:.\NSClient++.cpp:516: Injecting:
> checkCounter: Counter=\Process(sqlservr)\Working Set, nsclient
> 
> 2010-03-26 00:30:59: debug:.\NSClient++.cpp:536: Injected Result: OK
> '5.51731e+007'
> 
> 2010-03-26 00:30:59: debug:.\NSClient++.cpp:537: Injected Performance
> Result: ''
> 
>  
> 
> I try to search help on goole but i don?t find anything.
> 
>  
> 
> Y try to reconstruct my perfomance counter database with lodctr /R,  i
> try too to use differents versions of NSclient ++ and differents
> versions of check_nt but the results are the same.
> 
>  
> 
> Version use :
> 
> Nagios 3.1.2
> 
> Plugins 1-4.14
> 
> NSClient++ 0.3.5
> 
>  
> 
> I test these version
> 
> NSClient ++ 0.3.7
> 
> NSClient ++ 0.3.1
> 
> Plugins 1.4.11
> 
> Plugins 1.4.12
> 
>  
> 
> I don?t have this problem before for my other server.

Probably because the number was lower, thus not in scientific notation.

> Anyone have an idea of the resolution of this problem ?

First of all you should not use check_nt with NSClient++ - you should
enable the nrpe module and use check_nrpe. If the problem still persist,
you should likely contact the NSClient++ developer directly - I'm not
sure if he actually read this mailing list.


FWIW I also rolled my own method of getting counters, as the current way
it works with NSClient++ and the like is very imprecise on averaging
counters and too slow for fast cacti polls (I graph in Cacti separately).

I hope to finish the doc soon, but a general overview of it is available
here:
http://solaris.beaubien.net/~dermoth/pages/cacti/windows-perfmon.php

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFLrhDy6dZ+Kt5BchYRAv68AJ93vzQLS+E7rKxxaJ54P6I9+jTqkQCgk0vW
UeA362CYceRGDCrVO4a487E=
=BE0E
-----END PGP SIGNATURE-----




More information about the Help mailing list