Page 1 of 1

CPU load for one specific service/process.

Posted: Mon Feb 24, 2020 6:54 am
by Interrex
Hi.

I'm tyring to find a way to get an trigger when a specific process uses more than 60 % of the total CPU in Windows.
I tried to create an overall system check of the CPU, but it gives to many false alerts.

Any tips on how I can solve this?

Can use NCPA / Nsclient or other plugin / solutions.

Re: CPU load for one specific service/process.

Posted: Mon Feb 24, 2020 12:35 pm
by benjaminsmith
Hello @Interrex,

Take a look at the processes module included in NCPA and let me know if that's going to work for your requirements. The process module will count the number of processes running and includes several filter parameters to be able to adjust the results.

For example, you can filter on a specific process and set a check to warn if the CPU usages any of those processes running exceeds the threshold.

An example check command:

Code: Select all

./check_ncpa.py -H 192.168.5.23 -t '<your token>' -M 'processes' -c 1 -q 'name=chrome.exe,cpu_percent=60'
The NCPA process module documentation
https://www.nagios.org/ncpa/help.php#ap ... -processes