NCPA - Windows perfmon metrics

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
AMacintosh
Posts: 59
Joined: Mon Nov 07, 2011 12:26 pm

NCPA - Windows perfmon metrics

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NCPA - Windows perfmon metrics

Post 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
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.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: NCPA - Windows perfmon metrics

Post 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?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: NCPA - Windows perfmon metrics

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA - Windows perfmon metrics

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: NCPA - Windows perfmon metrics

Post by eloyd »

Thanks. Will have to look into it later. Need to get back to customer work. :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA - Windows perfmon metrics

Post by lmiltchev »

No problem. We will keep the thread open.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: NCPA - Windows perfmon metrics

Post by eloyd »

Please close (at least, for me). We got what we needed. Thanks.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NCPA - Windows perfmon metrics

Post by mcapra »

Closing this up!
Former Nagios employee
https://www.mcapra.com/
Locked