Pandora FMS Community

disk space in gb insteas of in %

guillaume · 29 mar 2010, 21:02 · 3 mensajes · 53 visitas

  1. Inicio del debate

    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.

  2. 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.