We have a server with a filesystem that's not being discovered as expected. The filesystem doesn't show up on the Zabbix server's "Latest data" page for the client, and we can't figure out why.
The Zabbix server has a discovery rule with:
Type: Zabbix agent (active) -- note that the client is behind NAT and cannot be directly accessed from the server
Key: vfs.fs.discovery
Filters: {#FSTYPE} matches ext
Here's the filesystem on the Zabbix client:
/dev/mapper/u01--vg-u01--lv on /u01 type ext4 (rw,relatime)
The Zabbix client (version 5.0.17) can see the filesystem as follows:
root@myserver:~# /usr/sbin/zabbix_agentd -t vfs.fs.discovery
vfs.fs.discovery [s|[{"{#FSNAME}":"/sys","{#FSTYPE}":"sysfs"},{"{#FSNAME}":"/proc","{#FSTYPE}":"proc"},{"{#FSNAME}":"/dev","{#FSTYPE}":"devtmpfs"},{"{#FSNAME}":"/dev/pts","{#FSTYPE}":"devpts"},{"{#FSNAME}":"/run","{#FSTYPE}":"tmpfs"},{"{#FSNAME}":"/","{#FSTYPE}":"ext4"},{"{#FSNAME}":"/sys/kernel/security","{#FSTYPE}":"securityfs"},{"{#FSNAME}":"/dev/shm","{#FSTYPE}":"tmpfs"},{"{#FSNAME}":"/run/lock","{#FSTYPE}":"tmpfs"},{"{#FSNAME}":"/sys/fs/cgroup","{#FSTYPE}":"cgroup2"},{"{#FSNAME}":"/sys/fs/pstore","{#FSTYPE}":"pstore"},{"{#FSNAME}":"/sys/fs/bpf","{#FSTYPE}":"bpf"},{"{#FSNAME}":"/proc/sys/fs/binfmt_misc","{#FSTYPE}":"autofs"},{"{#FSNAME}":"/dev/hugepages","{#FSTYPE}":"hugetlbfs"},{"{#FSNAME}":"/dev/mqueue","{#FSTYPE}":"mqueue"},{"{#FSNAME}":"/sys/kernel/debug","{#FSTYPE}":"debugfs"},{"{#FSNAME}":"/sys/kernel/tracing","{#FSTYPE}":"tracefs"},{"{#FSNAME}":"/sys/fs/fuse/connections","{#FSTYPE}":"fusectl"},{"{#FSNAME}":"/sys/kernel/config","{#FSTYPE}":"configfs"},{"{#FSNAME}":"/run/credentials/systemd-sysusers.service","{#FSTYPE}":"ramfs"},{"{#FSNAME} ":"/snap/lxd/24322","{#FSTYPE}":"squashfs"},{"{#FSNAME}":"/boot","{#FSTYPE}":"ext4"},{"{#FSNAME}":"/u02","{#FSTYPE}":"ext4"},{"{#FSNAME}":"/u01","{#FSTYPE}":"ext4"},{"{#FSNAME}":"/proc/sys/fs/binfmt_misc","{#FSTYPE}":"binfmt_misc"},{"{#FSNAME }":"/run/snapd/ns","{#FSTYPE}":"tmpfs"},{"{#FSNAME}":"/run/snapd/ns/lxd.mnt","{#FSTYPE}":"nsfs"},{"{#FSNAME}":"/snap/core20/1852","{#FSTYPE}":"squashfs"},{"{#FSNAME}":"/snap/snapd/18933","{#FSTYPE}":"squashfs"},{"{#FSNAME}":"/snap/snapd/19122","{#FSTYPE}":"squashfs"},{"{#FSNAME}":"/snap/core20/1879","{#FSTYPE}":"squashfs"},{"{#FSNAME}":"/run/user/1001","{#FSTYPE}":"tmpfs"}]]
And the filesystem also appears in /var/log/zabbix-agent/zabbix_agentd.log when the log level is set to debug. So why it the filesystem not appearing on the Zabbix server?
Thanks in advance for any help.
The Zabbix server has a discovery rule with:
Type: Zabbix agent (active) -- note that the client is behind NAT and cannot be directly accessed from the server
Key: vfs.fs.discovery
Filters: {#FSTYPE} matches ext
Here's the filesystem on the Zabbix client:
/dev/mapper/u01--vg-u01--lv on /u01 type ext4 (rw,relatime)
The Zabbix client (version 5.0.17) can see the filesystem as follows:
root@myserver:~# /usr/sbin/zabbix_agentd -t vfs.fs.discovery
vfs.fs.discovery [s|[{"{#FSNAME}":"/sys","{#FSTYPE}":"sysfs"},{"{#FSNAME}":"/proc","{#FSTYPE}":"proc"},{"{#FSNAME}":"/dev","{#FSTYPE}":"devtmpfs"},{"{#FSNAME}":"/dev/pts","{#FSTYPE}":"devpts"},{"{#FSNAME}":"/run","{#FSTYPE}":"tmpfs"},{"{#FSNAME}":"/","{#FSTYPE}":"ext4"},{"{#FSNAME}":"/sys/kernel/security","{#FSTYPE}":"securityfs"},{"{#FSNAME}":"/dev/shm","{#FSTYPE}":"tmpfs"},{"{#FSNAME}":"/run/lock","{#FSTYPE}":"tmpfs"},{"{#FSNAME}":"/sys/fs/cgroup","{#FSTYPE}":"cgroup2"},{"{#FSNAME}":"/sys/fs/pstore","{#FSTYPE}":"pstore"},{"{#FSNAME}":"/sys/fs/bpf","{#FSTYPE}":"bpf"},{"{#FSNAME}":"/proc/sys/fs/binfmt_misc","{#FSTYPE}":"autofs"},{"{#FSNAME}":"/dev/hugepages","{#FSTYPE}":"hugetlbfs"},{"{#FSNAME}":"/dev/mqueue","{#FSTYPE}":"mqueue"},{"{#FSNAME}":"/sys/kernel/debug","{#FSTYPE}":"debugfs"},{"{#FSNAME}":"/sys/kernel/tracing","{#FSTYPE}":"tracefs"},{"{#FSNAME}":"/sys/fs/fuse/connections","{#FSTYPE}":"fusectl"},{"{#FSNAME}":"/sys/kernel/config","{#FSTYPE}":"configfs"},{"{#FSNAME}":"/run/credentials/systemd-sysusers.service","{#FSTYPE}":"ramfs"},{"{#FSNAME} ":"/snap/lxd/24322","{#FSTYPE}":"squashfs"},{"{#FSNAME}":"/boot","{#FSTYPE}":"ext4"},{"{#FSNAME}":"/u02","{#FSTYPE}":"ext4"},{"{#FSNAME}":"/u01","{#FSTYPE}":"ext4"},{"{#FSNAME}":"/proc/sys/fs/binfmt_misc","{#FSTYPE}":"binfmt_misc"},{"{#FSNAME }":"/run/snapd/ns","{#FSTYPE}":"tmpfs"},{"{#FSNAME}":"/run/snapd/ns/lxd.mnt","{#FSTYPE}":"nsfs"},{"{#FSNAME}":"/snap/core20/1852","{#FSTYPE}":"squashfs"},{"{#FSNAME}":"/snap/snapd/18933","{#FSTYPE}":"squashfs"},{"{#FSNAME}":"/snap/snapd/19122","{#FSTYPE}":"squashfs"},{"{#FSNAME}":"/snap/core20/1879","{#FSTYPE}":"squashfs"},{"{#FSNAME}":"/run/user/1001","{#FSTYPE}":"tmpfs"}]]
And the filesystem also appears in /var/log/zabbix-agent/zabbix_agentd.log when the log level is set to debug. So why it the filesystem not appearing on the Zabbix server?
Thanks in advance for any help.
Comment