Page 1 of 1

Monitoring for low CPU Usage

Posted: Mon Apr 19, 2021 3:53 am
by NagiosIMCS
Good morning,

I am looking for a monitor that checks for low CPU usage.

We have a number of servers that should be powered down once they have finished their batch processing sadly this doesn't also work so it means we are getting very high bills with the Cloud providers.

We have a mixture of NSClient++ and NCPA agents running on Windows.

I want to create an alarm which triggers if the CPU has been below 10 for 6 hours.

Any ideas please? If you need more information please let me know.

Many thanks

Re: Monitoring for low CPU Usage

Posted: Mon Apr 19, 2021 2:46 pm
by benjaminsmith
Hi,
We have a number of servers that should be powered down once they have finished their batch processing sadly this doesn't also work so it means we are getting very high bills with the Cloud providers.
I would recommend trying to set up a check on a required process. Would it be possible to monitor the batch process, and if that's not running, then execute an event handler to power down the system. Let us know if that would work.

Introduction to Event Handlers

Another approach would be to monitor the CPU usage, but increase retry interval and max check attempts so it would have to be critical for a period of 6 hours before going HARD non-ok, and then execute the event handler.

NCPA has a built-in module for checking CPU,
https://www.nagios.org/ncpa/help.php#api-modules-cpu