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.
- duplicates
-
ZBXNEXT-1616 Agent supported vfs mount status on discovered mounts.
-
- Closed
-