Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-6740

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

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 5.0.12, 5.4.1
    • Agent (G)
    • 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.

            zabbix.dev Zabbix Development Team
            Kalimulin Alex Kalimulin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: