Page 3 of 3

Re: CPU usage just stopped working

Posted: Thu Sep 17, 2015 2:55 pm
by tgriep
Take a look at this link. This is another way to rebuild the counters on your system. See if this helps.
http://social.technet.microsoft.com/wik ... nters.aspx

Re: CPU usage just stopped working

Posted: Thu Sep 17, 2015 3:08 pm
by steve.chambers
Hmmm... it is clear enough once you know what counter you are looking for, which would be the problem, what service am I looking for? There are a lot when it comes to CPU, somewhere north of 40...

Re: CPU usage just stopped working

Posted: Thu Sep 17, 2015 3:46 pm
by tgriep
Run perfmon as admin on your Windows system.
See if you can add the Processor Information, % Processor Time, _Total
I think it uses that one.

Re: CPU usage just stopped working

Posted: Thu Sep 17, 2015 4:07 pm
by steve.chambers
I seem to have been unclear.

Perfmon actually opens with Processor Time selected as the default "example" the problem comes in when following the specific instructions in the link provided.

One of the examples was this:

Code: Select all

cd c:\Windows\Inf\usbhub
lodctr .409\usbperf.ini

This would work on any performance counter navigating to the appropriate folder and targeting the correct .ini file.
What is needed is the specific .ini file corresponding to the specific service that is being targeted. From that page they provide this example:

Code: Select all

From C:\Windows\Inf>
get-childitem -recurse *.ini | Select-String -pattern "usbperf" -context 0
Taking that example and plugging "Processor" in place of USBPERF in the above example gives me in excess of 30 .ini files that have "processor" in their name or description. Some of which are not even in English (a casual glance shows Spanish and German).

So in order to run lodctr against the correct .ini file one has to know the specific name of the service.

Getting properties on the counter in PERFMON does not give that information nor do I see anything in Nagios that gives us the actual Windows service. If I use the "CPULOAD" keyword from the command line of the monitor in NagiosXI The command returns no results.

So in order to follow the instructions at the link provided I need to know what the exact service name is as I have not been able to determine that from the information I have available to me. Any ideas?

Re: CPU usage just stopped working

Posted: Thu Sep 17, 2015 10:33 pm
by Box293
I suggest asking this on the NSClient++ forums: http://forums.nsclient.org/

Re: CPU usage just stopped working

Posted: Tue Sep 22, 2015 10:30 am
by steve.chambers
Unfortunately there has been no response to my query on those forums.
Any other ideas?

Re: CPU usage just stopped working

Posted: Tue Sep 22, 2015 11:44 am
by tgriep
You could try and reinstall the NSClient software or update to the latest stable release.
I don't know why resetting the counters won't fix it, that should do it.