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
NCPA - Windows perfmon metrics
Re: NCPA - Windows perfmon metrics
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
https://github.com/NagiosEnterprises/ncpa
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: NCPA - Windows perfmon metrics
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?
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: NCPA - Windows perfmon metrics
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.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: NCPA - Windows perfmon metrics
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.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NCPA - Windows perfmon metrics
Thanks. Will have to look into it later. Need to get back to customer work. 
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: NCPA - Windows perfmon metrics
No problem. We will keep the thread open.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NCPA - Windows perfmon metrics
Please close (at least, for me). We got what we needed. Thanks.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!