Check_procs: check every process cpu consumption

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
paulofrancisco
Posts: 2
Joined: Thu Feb 22, 2018 12:58 am

Check_procs: check every process cpu consumption

Post by paulofrancisco »

Hi,
I'm looking for ways to use check_procs or check_ncpa.py to show critical if the process reached the max threshold inculding the process/service name.



./check_ncpa.py -H ip_add-P 5693 -t 'pass' -M cpu/percent -w 80 -c 90
CRITICAL: Percent was 1.00 %, 1.00 %, 1.00 %, 0.00 %, 0.00 %, 100.00 %, 0.00 %, 0.00 % | 'percent_0'=1.00%;80;90; 'percent_1'=1.00%;80;90; 'percent_2'=1.00%;80;90; 'percent_3'=0.00%;80;90; 'percent_4'=0.00%;80;90; 'percent_5'=100.00%;80;90; 'percent_6'=0.00%;80;90; 'percent_7'=0.00%;80;90;
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_procs: check every process cpu consumption

Post by lmiltchev »

The "cpu/percent" will not show you the CPU usage per process.

What kind of systems are you monitoring - Windows, Linux, etc.? You could create your own, custom script for CPU utilization per process, and call it via check_ncpa.py. You can also find such scripts online. For example, there are some 3rd party scripts on the Nagios Exchange that you could try:

https://exchange.nagios.org/index.php?o ... %20process

Once you test the script from the command line, and make sure it works for you, you could create a command and a service in Nagios XI by following the steps, outlined in the document below:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked