Page 1 of 1

NCPA - Windows perfmon metrics

Posted: Mon Oct 20, 2014 3:06 pm
by AMacintosh
Is there a way to use NCPA agent to access Windows perfmon metrics, such as "\Processor Information(_Total)\% Processor Time" or any others?

The built in check "-M cpu/percent" returns a result for each core, but what I need is the total CPU result, not to be alerted if 1 core is busy while all the others are idle. If windows performance metrics can be accessed this would help resolve this issue.

Thanks

Re: NCPA - Windows perfmon metrics

Posted: Mon Oct 20, 2014 5:05 pm
by abrist
NCPA should fully support perf counters in the near future. For the current build, could you open a feature request for total cpu usage on github?
https://github.com/NagiosEnterprises/ncpa

Re: NCPA - Windows perfmon metrics

Posted: Thu Jun 02, 2016 8:24 am
by eloyd
18 months later and I don't see any progress on this front. We'd love to switch all our NSclient++ clients over to NCPA, but this is a big stumbling block. Any updates?

Re: NCPA - Windows perfmon metrics

Posted: Thu Jun 02, 2016 8:34 am
by eloyd
Wait, I do see an update in https://github.com/NagiosEnterprises/ncpa/issues/111, but nothing posted back here. It looks as though things are mostly working, but there are some idiosyncrdacies with formatting, sleeping, and some thing return values that seem to be unrelated to what's showing up in current perfmon reports. I'll investigate further, but an official status on 2.0.0 would be awesome, since this was added as a milestone for that release just over a week ago.

Re: NCPA - Windows perfmon metrics

Posted: Thu Jun 02, 2016 8:57 am
by lmiltchev
Technically you should be able to monitor windows performance counters via NCPA - here's a KB article on the topic:

https://support.nagios.com/kb/article.php?id=491

It may not be very easy to figure out the correct syntax with some of the performance counters though - you may need to do some escaping, etc. In my opinion it is easier to use a powershell script to get the job done. You can try the "Check-Performance-Counters.ps1" script with NCPA. Check out my post here:

https://support.nagios.com/forum/viewto ... rs#p170197

Hope this helps.

Re: NCPA - Windows perfmon metrics

Posted: Thu Jun 02, 2016 9:42 am
by eloyd
Thanks. Will have to look into it later. Need to get back to customer work. :-)

Re: NCPA - Windows perfmon metrics

Posted: Thu Jun 02, 2016 10:38 am
by lmiltchev
No problem. We will keep the thread open.

Re: NCPA - Windows perfmon metrics

Posted: Tue Jun 07, 2016 1:15 pm
by eloyd
Please close (at least, for me). We got what we needed. Thanks.

Re: NCPA - Windows perfmon metrics

Posted: Tue Jun 07, 2016 1:19 pm
by mcapra
Closing this up!