check_nt perfmon counters

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kotterbein
Posts: 87
Joined: Fri Aug 10, 2012 8:15 am

check_nt perfmon counters

Post by kotterbein »

I am encountering an issue with the check_nt COUNTERS command:

I am able to properly get information on some counters, such as CPU utilization:

Code: Select all

/usr/local/nagios/libexec/check_nt -H 11.0.0.0 -s "nsclient" -p 12489 -v COUNTER -l "\\processor(_Total)\\% processor time","Percent Utilized "
Percent Utilized  = 14.98 % | 'Percent Utilized '=14.983200%;0.000000;0.000000;
same host, different counters:

Code: Select all

/usr/local/nagios/libexec/check_nt -H 11.0.0.0 -s "nsclient" -p 12489 -v COUNTER -l "\\XXX.ExegyAPIWrapper.Sessions(XXX2_XXX.02p_sess_0)\\Messages/sec","%.f Messages\Sec"
0 Messages\Sec | '%.f Messages\Sec'=0.000000%;0.000000;0.000000;
These worked last week, just encountered the issue starting this morning. I have double checked the counter path and instance spelling, it seems that it gets to the server, but does not pull the information properly- the count should be in the thousands (as it is when viewed through a perfmon console.)

hoping someone has some idea what MAY be going on here- i have exhausted the limit of my troubleshooting of this issue.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_nt perfmon counters

Post by lmiltchev »

Do you see anything in the nsclient.log, that might be related to this issue?
Be sure to check out our Knowledgebase for helpful articles and solutions!
kotterbein
Posts: 87
Joined: Fri Aug 10, 2012 8:15 am

Re: check_nt perfmon counters

Post by kotterbein »

Code: Select all

13-03-25 12:06:49: error:modules\CheckSystem\CheckSystem.cpp:1084: ERROR: Counter not found: \XXX.ExegyAPIWrapper.Sessions(XXX2_XXX.02p_sess_0)\Messages/sec: The specified object was not found on the computer.   (C0000BB8)
2013-03-25 12:06:49: error:modules\CheckSystem\CheckSystem.cpp:1086: ERROR: Counter not found: \XXX.ExegyAPIWrapper.Sessions(XXX2_XXX.02p_sess_0)\Messages/sec: The specified object was not found on the computer.   (C0000BB8)
2013-03-25 12:06:49: error:modules\CheckSystem\CheckSystem.cpp:1115: ERROR: \XXX.ExegyAPIWrapper.Sessions(XXX2_XXX.02p_sess_0)\Messages/sec: PdhAddCounter failed: The specified object was not found on the computer.   (C0000BB8) (\XXX.ExegyAPIWrapper.Sessions(XXX2_XXX.02p_sess_0)\Messages/sec|\XXX.ExegyAPIWrapper.Sessions(XXX2_XXX.02p_sess_0)\Messages/sec)
do I need to somehow discover it with NSCLient++? I seem to remember that if the counter is not there during the installation of nsclient it will not be available to nsclient until it is restarted or re-installed?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_nt perfmon counters

Post by lmiltchev »

Is the counter working? You can check with running in CMD:

Code: Select all

perfmon
It is possible that the counters are loaded after NSClient++ was started. Have you tried restarting the NSClient++ service to see if this is going to fix you issue? I would also recommend posting on the NSClient++ forum as well, since this is a specific NSClient++ issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
kotterbein
Posts: 87
Joined: Fri Aug 10, 2012 8:15 am

Re: check_nt perfmon counters

Post by kotterbein »

yes, restarting it cleared up the issue. after you mentioned the logfile, I remembered going through this once prior and the same issue- seems when the perfmon counters are registered, you have to restart nsclient.

Thanks for your help-

K
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_nt perfmon counters

Post by slansing »

Great thanks for letting us know! Performance counters can be tricky at times..
Locked