NCPA CPU Load Average over time

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mazeman
Posts: 7
Joined: Fri Sep 27, 2013 9:26 am

NCPA CPU Load Average over time

Post by mazeman »

Hi everyone,

We currently use NSClient++ on the majority of our windows hosts and I've been working with NCPA for a little bit now. I'm trying to determine if NCPA (or Nagios XI) has the ability to average the CPU usage over time. For example, with NSClient++ we can set the following for a 10 minute average and only alert if the average is over 80 or 90%

CPULOAD!-l 10,80,90

How would something similar be configured with NCPA?

Thanks!

-Kevin
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA CPU Load Average over time

Post by lmiltchev »

I don't think this functionality is available with NCPA. It shouldn't be difficult to be implemented. You are welcome to post a feature request here:

https://github.com/NagiosEnterprises/ncpa/issues

Click on the "New issue" and post your feature request. I can also do it for you (if you want me to). Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
DennisPR
Posts: 149
Joined: Mon May 07, 2012 10:34 am

Re: NCPA CPU Load Average over time

Post by DennisPR »

I see that the feature request has been filled in
https://github.com/NagiosEnterprises/ncpa/issues/180

Has this been implemented as well ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA CPU Load Average over time

Post by lmiltchev »

I just heard back from our developers. The "CPU load average over time" feature request won't be implemented in the next release of NCPA as this will be a "bug fix" release. Most probably this functionality will be added in one of the future minor or major releases of NCPA. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
DennisPR
Posts: 149
Joined: Mon May 07, 2012 10:34 am

Re: NCPA CPU Load Average over time

Post by DennisPR »

OK thank you for the info but that doesn't really help me at this time.
I'm looking for way to see Windows CPU usage in Nagios with passive tests.
I've been looking at NSCA, NRDS and NCPA that last couple of days it seems that there is no really easy way to set this up at this time.
The only "usefull" thing I have found was the following post with a powershell workaround posted by essrichard
https://support.nagios.com/forum/viewto ... 4&start=10

Any suggestions for me pls ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA CPU Load Average over time

Post by lmiltchev »

You can set up the script posted by essrichrd as a passive check in NSClient++.

Example:

Code: Select all

[/settings/external scripts/scripts]
check_cpu_usage = cmd /c echo scripts\cpu_usage.ps1; exit $LastExitCode | powershell.exe -command -

[/settings/scheduler/schedules]
cpu_usage=check_cpu_usage
http://docs.nsclient.org/0.4.4/tutorial ... /nsca.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked