Page 1 of 1
NCPA CPU Load Average over time
Posted: Fri Jun 05, 2015 8:09 am
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
Re: NCPA CPU Load Average over time
Posted: Fri Jun 05, 2015 9:18 am
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!
Re: NCPA CPU Load Average over time
Posted: Tue Apr 12, 2016 5:22 am
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 ?
Re: NCPA CPU Load Average over time
Posted: Tue Apr 12, 2016 9:40 am
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!
Re: NCPA CPU Load Average over time
Posted: Wed Apr 13, 2016 8:03 am
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 ?
Re: NCPA CPU Load Average over time
Posted: Wed Apr 13, 2016 3:18 pm
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