If you want to exclude all cagefs-skeleton or some other virtfs, bind mounts and etc
zabbix_get -s xx.xx.xx.xx -k vfs.fs.discovery
“{#FSNAME}”:”\/usr\/share\/cagefs-skeleton\/dev\/pts”,
“{#FSTYPE}”:”devpts”},
“{#FSNAME}”:”\/usr\/share\/cagefs-skeleton\/dev\/shm”,
“{#FSTYPE}”:”tmpfs”},
“{#FSNAME}”:”\/usr\/share\/cagefs-skeleton\/lib”,
“{#FSTYPE}”:”ext4″},
Administration -> General -> Regular expressions -> New regular expression
Name: File systems for discovery – exclude cagefs
Expressions
Expression type: [Result is FALSE]
Expression: /cagefs-skeleton
Configuration -> Templates -> Template OS Linux -> Discovery rules -> Mounted filesystem discovery -> Filters -> Add
Type of calculation: A and B
A: {#FSNAME} matches @File systems for discovery – exclude cagefs
b: {#FSTYPE} matches @File systems for discovery
Also you need readd host to rediscover all mounted filesystems
Thx! It’s worked for me dude. I had the same promblem with some (many) of virtfs
Hello, i do it same as you but when i use get value and test i have all cagefs-skeleton in the result.
how can i find my problem this is a one line of test output
“{#FSNAME}”:”/home/cagefs-skeleton/usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli”,”{#FSTYPE}”:”xfs”},{“{#FSNAME}”:”/home/cagefs-skeleton/usr/local/cpanel/Cpanel”,”{#FSTYPE}”:”xfs”}