1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Update in: 21 December 2017


:

Process CPU agent module for Windows

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 PROCESS_SHORT

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:

plugin_exec cscript.exe //B "%ProgramFiles%\Pandora_Agent\util\process_cpu_pid.vbs" FIREFOX.EXE FIREFOX

Note: If exists several process with the same name and short name, it will return the SUM of all CPU % of all processes with the same name.

OPTIONALLY you can provide a third parameter, the CPU ammount of a single process to be considered pernicious for the system and to be killed.

plugin_exec cscript.exe //B "%ProgramFiles%\Pandora_Agent\util\process_cpu_pid.vbs" FIREFOX.EXE FIREFOX 15

Using this mode, will also return the sum of all process (including the process killed)

Files:

process_cpu_kill.zip

(Visited 1,576 times, 1 visits today)

For correct visualization of the Pandora FMS library extension, you must have installed version NG 760 or superior

X