From 1203784e8c7952514074dc30fd5c47e8ea6a0632 Mon Sep 17 00:00:00 2001 From: raulmateos Date: Mon, 5 Jul 2010 09:12:14 +0000 Subject: [PATCH] 2010-07-05 Raul Mateos * bin/pandora_agent.conf: Added example of D Drive. Added comments to some modules. Added lost module_begin. Improved command. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2960 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/win32/ChangeLog | 5 +++++ pandora_agents/win32/bin/pandora_agent.conf | 20 +++++++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/pandora_agents/win32/ChangeLog b/pandora_agents/win32/ChangeLog index af36ed2c48..817ac59b25 100644 --- a/pandora_agents/win32/ChangeLog +++ b/pandora_agents/win32/ChangeLog @@ -1,3 +1,8 @@ +2010-07-05 Raul Mateos + + * bin/pandora_agent.conf: Added example of D Drive. Added comments + to some modules. Added lost module_begin. Improved command. + 2010-07-02 Ramon Novoa * modules/pandora_module.h, modules/pandora_module_factory.cc, diff --git a/pandora_agents/win32/bin/pandora_agent.conf b/pandora_agents/win32/bin/pandora_agent.conf index c480026644..911d67751e 100644 --- a/pandora_agents/win32/bin/pandora_agent.conf +++ b/pandora_agents/win32/bin/pandora_agent.conf @@ -92,6 +92,14 @@ module_freepercentdisk C: module_description Free space on drive C: (%) module_end +# Free space on disk D: (%) +# module_begin +# module_name FreeDiskD +# module_type generic_data +# module_freepercentdisk D: +# module_description Free space on drive D: (%) +# module_end + # CPU usage percentage module_begin module_name CPUUse @@ -136,7 +144,6 @@ module_end #module_description Last date and time user launch microsoft Windows update #module_end - # Example of a remote TCP check #module_begin #module_name Tcp Sample check @@ -165,20 +172,23 @@ module_end #module_end # Example of module exec, used to know about the memory used by pandora process +# grep.exe and gawk.exe are included in the util directory of the agent. #module_begin #module_name PandoraFMS RAM #module_type generic_data -#module_exec tasklist | grep Pandora | awk "{ print $5 }" | tr -d "." +#module_exec tasklist | grep Pandora | gawk "{ print $5 }" | tr -d "." #module_end # Example of module exec, used get number of active terminal services sessions +# Works on Windows 2003. In Windows XP the query.exe and quser.exe files were +# moved to %WINDIR%\system32\dllcache. If XP, copy the exe to %WINDIR%\system32 +#module_begin #module_name Active TS Sessions #module_type generic_data_string -#module_exec query session | grep Active | awk "{ print $2 }" |wc -l -#module_description Number of activbe TS Sessions +#module_exec query session | grep Activ | gawk "{ print $2 }" |wc -l +#module_description Number of active TS Sessions #module_end - # Example of watchdog process opening it if it gets closed # NOTE: This need to enable "Service can interactuate with the deskop" option # in the Pandora FMS Service configuration (Windows Service Control management).