This Pandora FMS module, used as script, allow to get individual CPU usage for each specified process. This is done by a small script written in VBscript which ask several WMI sources to get a value, used as percentage for individual CPU Usage for a given process.
This agent plugin needs two parameters:
Process full name (as seen in taskmanager), for example FIREFOX.EXE. Please be careful because UPPERCASE names are not the same than lowercase.
Process short name (as seen in Win32_PerfRawData_PerfProc_Process), for example FIREFOX. This is usually the same name, but without extension.
Example of usage:
module_exec cscript.exe //B "%ProgramFiles%Pandora_Agentutilprocess_cpu.vbs" FIREFOX.EXE FIREFOX
Limitations: If you have several process running with the same name, this will give the first one.