How do configure my agent to send the disk space in gb instead of % % is useless since each disk don't have the same capacity thus the same impact at the end. Thanks Guillaume.
disk space in gb insteas of in %
guillaume · 29 mar 2010, 21:02 · 3 mensajes · 53 visitas
- Inicio del debate
Are you using a *nix system? Take a look at: http://pandorafms.org/index.php?sec=community&sec2=repository&lng=en&action=view_PUI&id_PUI=117 Replace the module_exec for this one: df -kh / | tail -1 | awk '{NF=NF-3; print $NF }' This going to give you the space used in human readable format. Regards.
I'm using Windows, I should have specified. A collegue of mine gave me a .vbs to place in the util folder. Set objWMIService = GetObject("winmgmts:") Set objLogicalDisk = objWMIService.Get("Win32_LogicalDisk.DeviceID='c:'") Wscript.Echo objLogicalDisk.FreeSpace / 1073741824 then in the agent config file: # Free space on disk C: in GB module_begin module_type generic_data module_name FreeDiskC_GB module_description Available disk space on C (GB) module_exec cscript /Nologo C_DiskSpace_GB.vbs module_end
Entra en tu cuenta para publicar.
