Pandora FMS Community

How to configure Disk used plugin?

j-k · 5 sept 2018, 21:23 · 2 mensajes · 56 visitas

  1. Inicio del debate

    I have this module enabled in the agent  conf file:

    # This plugin detects all disk and report used space (%)
    module_plugin pandora_df_used
    

    Problem is that it reports critical errors on /snap/ filesystem. 1) Is it possible to configure Disk used plugin to skip monitoring of certain filesystems like /snap? 2) How can I set critical and warning levels of this module? Disk free:

    df -h
    Filesystem                         Size  Used Avail Use% Mounted on
    udev                               2,0G     0  2,0G   0% /dev
    tmpfs                              396M   36M  360M  10% /run
    /dev/mapper/ubuntu--mate--vg-root   16G   12G  2,9G  81% /
    tmpfs                              2,0G   66M  1,9G   4% /dev/shm
    tmpfs                              5,0M  4,0K  5,0M   1% /run/lock
    tmpfs                              2,0G     0  2,0G   0% /sys/fs/cgroup
    /dev/loop1                         2,8M  2,8M     0 100% /snap/telegram-cli/25
    /dev/loop0                          87M   87M     0 100% /snap/core/5145
    /dev/loop2                          88M   88M     0 100% /snap/core/5328
    /dev/sda1                          472M  113M  335M  26% /boot
    tmpfs                              396M   44K  396M   1% /run/user/1000
    
  2. I have this module enabled in the agent  conf file:

    # This plugin detects all disk and report used space (%)
    module_plugin pandora_df_used
    

    Problem is that it reports critical errors on /snap/ filesystem. 1) Is it possible to configure Disk used plugin to skip monitoring of certain filesystems like /snap? 2) How can I set critical and warning levels of this module? Disk free:

    df -h
    Filesystem                         Size  Used Avail Use% Mounted on
    udev                               2,0G     0  2,0G   0% /dev
    tmpfs                              396M   36M  360M  10% /run
    /dev/mapper/ubuntu--mate--vg-root   16G   12G  2,9G  81% /
    tmpfs                              2,0G   66M  1,9G   4% /dev/shm
    tmpfs                              5,0M  4,0K  5,0M   1% /run/lock
    tmpfs                              2,0G     0  2,0G   0% /sys/fs/cgroup
    /dev/loop1                         2,8M  2,8M     0 100% /snap/telegram-cli/25
    /dev/loop0                          87M   87M     0 100% /snap/core/5145
    /dev/loop2                          88M   88M     0 100% /snap/core/5328
    /dev/sda1                          472M  113M  335M  26% /boot
    tmpfs                              396M   44K  396M   1% /run/user/1000
    

    Good morning j-k, The only way to skip monitoring of certain filesystems like /snap, is that you try to configure manually the plugin trying to delete the information caught by the plugin of snap. To set the critical and warning you have two options. You can put them after creating the module, and trying to configure the module, or changing it manually in the plugin. Hope this helps you, if you have more issues let us know. Alberto

Entra en tu cuenta para publicar.