Ad Widget

Collapse

monitor storage size for NFS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ytao
    Junior Member
    • Aug 2019
    • 5

    #1

    monitor storage size for NFS

    Hi,
    I am using Zabbix 4.2 and applied "Template OS Linux" to a host. The "Mounted filesystem discovery" does find all local mounted filesystem, but does not discover the NFS ones, e.g. /ILdata/arc_data05. If "vfs.fs.discovery" doesn't find the NFS, what other key or template could be used for NFS?
    Thanks.


    $ df

    Filesystem 1K-blocks Used Available Use% Mounted on

    /dev/mapper/rhel-root 47158788 3387144 43771644 8% /

    devtmpfs 3992860 0 3992860 0% /dev

    tmpfs 4004776 0 4004776 0% /dev/shm

    tmpfs 4004776 410500 3594276 11% /run

    tmpfs 4004776 0 4004776 0% /sys/fs/cgroup

    /dev/sda1 520876 216484 304392 42% /boot

    /dev/mapper/rhel-home 31441920 33456 31408464 1% /home

    /dev/mapper/rhel-var 20961280 3332136 17629144 16% /var

    /dev/mapper/rhel-tmp 4708352 76396 4631956 2% /tmp

    10.34.128.90:/dev2_ildata05 199229440 47504256 151725184 24% /ILdata/arc_data05

    10.34.128.130:/DRMDT 199229440 32640 199196800 1% /ILdata/doctrackr

    10.34.128.90:/dev2_master 19922944 5106304 14816640 26% /ILdata/master

    10.34.128.90:/dev2_ildata04 99614720 74266240 25348480 75% /ILdata/arc_data04

    10.34.128.91:/dev2_ildata01 209715200 124861632 84853568 60% /ILdata/arc_data01

    10.34.128.91:/dev2_ildata06 199229440 55779072 143450368 28% /ILdata/arc_data06

    10.34.128.91:/dev2_cgl 24903680 3086464 21817216 13% /ILdata/cgl_share

    10.34.128.90:/dev2_ildata01_emea 49807360 3768448 46038912 8% /ILdata/arc_EMEA_data01

    10.34.128.91:/dev2_ildata02 209715200 129802560 79912640 62% /ILdata/arc_data02

    10.34.128.90:/dev2_ildata03 209715200 190262272 19452928 91% /ILdata/arc_data03

    tmpfs 800956 0 800956 0% /run/user/1463817875
  • 1berto
    Senior Member
    • Sep 2018
    • 182

    #2
    If you can create a script you can use an UserParameter, not?
    Those volumes appear on df command? If they do you can also try the system.run key (on the server).

    Comment

    • Hamardaban
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • May 2019
      • 2713

      #3

      pay attention to “Filters tab”

      Comment

      • ytao
        Junior Member
        • Aug 2019
        • 5

        #4
        yeah, I ended up with script and UserParameter. Not sure how to use "Filters" tab since "@File systems for discovery" doesn't discover the "NFS" mount points. I am not sure if I misunderstood something.

        Comment

        • kloczek
          Senior Member
          • Jun 2006
          • 1771

          #5
          Originally posted by ytao
          yeah, I ended up with script and UserParameter. Not sure how to use "Filters" tab since "@File systems for discovery" doesn't discover the "NFS" mount points. I am not sure if I misunderstood something.
          No you don't need UserParameter.
          Standard zabbix "Template OS Linux" template uses "@File systems for discovery" filter. By default that filter contains "^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs 2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$ [Result is TRUE]"
          You must have removed that filter in you template or you template is using different filter of that regexp (Adminisstration->General->Regular expressions-> File systems for discovery) has different definition than above.
          http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
          https://kloczek.wordpress.com/
          zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
          My zabbix templates https://github.com/kloczek/zabbix-templates

          Comment


          • ytao
            ytao commented
            Editing a comment
            Thanks. However, the discovered filesystems don't seem to include nfs.
        Working...