Pandora FMS Community

default modules for WMI disk free and memory free, as a percentage?

gekko2725 · 12 jun 2017, 21:40 · 3 mensajes · 61 visitas

  1. Inicio del debate

    Hi folks, I am just getting my feet wet with Pandora FMS and I really like what I have seen.  As a quick question, are there modules for getting free disk and free memory information as a percentage?  WMI only natively supports total bytes used or free, I'd like to be able to set up a generic module that can be used on different agents. Could someone point me in the right direction? I haven't quite gotten the knack of bringing command-line script output into Pandora yet... Thanks and warm regards, Stewart

  2. Hi Stewart Yes, with the software agent you can add plugins to create the modules with %. The plugins are in "C:Program Filespandora_agentutil" Go to the agent configuration file and add:

    module_plugin cscript.exe //B "%ProgramFiles%Pandora_Agentutildf.vbs"
    module_plugin cscript.exe //B "%ProgramFiles%Pandora_Agentutilmem_percent_used.vbs"
    

    Restart the agent service. You can also use the WMI modules with the software agent or a remote WMI from the pandora server. Best regards, vic.

  3. Hello gekko2725, You can use this modules:

    module_begin
    module_name FreeDiskC
    module_type generic_data
    module_freepercentdisk C:
    module_description Free space on drive C: (%)
    module_min_warning 31
    module_max_warning 40
    module_min_critical 0
    module_max_critical 30
    module_end
    
    module_begin
    module_name FreeMemory
    module_type generic_data
    module_freepercentmemory
    module_description Free memory (%).
    module_min_warning 21
    module_max_warning 30
    module_min_critical 0
    module_max_critical 20
    module_end
    

    Kind regards, Luis.

Entra en tu cuenta para publicar.