Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-21823 vfs.fs.get does not include file systems with inodes count equal to zero
  3. ZBX-21892

vfs.fs.get returns wrong data if multiple file systems have identical mount point

    XMLWordPrintable

Details

    • Team B
    • Sprint 93 (Oct 2022), Sprint 94 (Nov 2022), Sprint 95 (Dec 2022)
    • 1

    Description

      After vfs.fs.get was fixed in ZBX-21823 another issue appeared. If multiple file systems have identical mount points then all of them will be reported with fs type of the first file system among them.

      In example, from my Ubuntu OS:

      # grep binfmt_misc /proc/mounts 
      systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=14303 0 0
      binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
      

      vfs.fs.discovery returns correct types:

      {"{#FSNAME}":"/proc/sys/fs/binfmt_misc","{#FSTYPE}":"autofs"},
      {"{#FSNAME}":"/proc/sys/fs/binfmt_misc","{#FSTYPE}":"binfmt_misc"}
      

      vfs.fs.get returns wrong types:

      {"fsname":"/proc/sys/fs/binfmt_misc","fstype":"autofs","bytes":{"total":0,"free":0,"used":0,"pfree":0.000000,"pused":0.000000},"inodes":{"total":0,"free":0,"used":0,"pfree":100.000000,"pused":0.000000}},
      {"fsname":"/proc/sys/fs/binfmt_misc","fstype":"autofs","bytes":{"total":0,"free":0,"used":0,"pfree":0.000000,"pused":0.000000},"inodes":{"total":0,"free":0,"used":0,"pfree":100.000000,"pused":0.000000}}
      

      Both agents are affected.

      Attachments

        Issue Links

          Activity

            People

              asestakovs Aleksejs Sestakovs
              asestakovs Aleksejs Sestakovs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: