macOS zabbix_agentd vfs.fs.discovery must know about mounted images

XMLWordPrintable

    • Type: Change Request
    • Resolution: Duplicate
    • Priority: Trivial
    • None
    • Affects Version/s: 5.0.12, 5.4.1
    • Component/s: Agent (G)
    • Environment:
      macOS
    • 1

      Currently, macOS zabbix_agentd items vfs.fs.discovery and vfs.fs.get return very limited info about file systems, e.g.:

      [
        {
          "{#FSNAME}": "/",
          "{#FSTYPE}": "apfs"
        },
        {
          "{#FSNAME}": "/dev",
          "{#FSTYPE}": "devfs"
        },
        {
          "{#FSNAME}": "/System/Volumes/Data",
          "{#FSTYPE}": "apfs"
        }
      ]
      

      This is fine as long as you don't mount .dmg disk images. It's a standard way to install software on macOS.

      Then the list looks like this:

      [
        {
          "{#FSNAME}": "/",
          "{#FSTYPE}": "apfs"
        },
        {
          "{#FSNAME}": "/dev",
          "{#FSTYPE}": "devfs"
        },
        {
          "{#FSNAME}": "/System/Volumes/Data",
          "{#FSTYPE}": "apfs"
        },
        {
          "{#FSNAME}": "/Volumes/BurpSuiteCommunity",
          "{#FSTYPE}": "hfs"
        }
      ]
      

      If you're installing software and not unmounting the image right away, Zabbix filesystem discovery adds and monitors the mounted image as a normal file system and also generates problems about free disk space (since disk space is zero in such images).

      This annoying behaviour can be addressed by adding a flag to the returned JSON. The flag can indicate whether the file system is a mounted disk image or a normal file system. Then the template can filter out such filesystems.

            Assignee:
            Zabbix Development Team
            Reporter:
            Alex Kalimulin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: