:
An easy way to get process memory usage information, using native Windows shell command (I think this works only on XP or higher).
Module data
This is for the own PandoraAgent process. Replace with your desired process. Just executing tasklist show a full list of process running. This makes use of grep and gawk tools provided by Pandora FMS Windows agent.
module_begin
module_name PandoraAgent_Mem
module_type generic_data
module_exec tasklist | grep PandoraAgent | gawk "{ print $4 }" | tr -d ","
module_end
In Windows 2008, we need a slight modification:
module_begin
module_name PandoraAgent_Mem
module_type generic_data
module_exec tasklist | grep PandoraAgent | gawk "{ print $5 }" | tr -d ","
module_end
(Visited 433 times, 1 visits today)

