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

Details

    • Change Request
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 5.0.12, 5.4.1
    • None
    • Agent (G)
    • macOS
    • Sprint 77 (Jun 2021), Sprint 78 (Jul 2021), Sprint 79 (Aug 2021), Sprint 80 (Sep 2021), Sprint 81 (Oct 2021)
    • 1

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: