Check_procs: check every process cpu consumption
Posted: Thu Jul 05, 2018 9:29 pm
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;
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;