Welcome to the Pandora FMS Module Library

 
This is a library with modules, documentation and tools for Pandora FMS users, both public Open Source and Enterprise. Please use your support credentials (same as used to enter support/ticketing system) in the menu to your right. You will be granted access to a resourceful module library, such as Oracle, VMware, JBoss and others, ready to be used in production enviroments, with official professional support from Artica. If you do not own an enterprise account, you still can browse and download lots of modules, you can even register a free account and contribute with your own modules/tools for other public users.

Home > Operating Systems > Linux

Processes high CPU on Linux

Author: mario_pulido Create in: 12/19/2012 Update in: 07/19/2017
Rating: Status:
Module type : Local module


It returns the pid of the process that is consume more than the 90% of the CPU

Module data

module_begin
module_name Processes high CPU
module_type generic_data_string
module_exec ps -eo pcpu,pid,comm | sort -n | grep -v CPU | tail -1 | awk '{if ($1>90) print $2; else print "NA"}' | tr ­d "\n"
module_description PID Processes > 90% CPU
module_end