mounted filesystem discovery exclude zabbix

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

2 thoughts on “mounted filesystem discovery exclude zabbix

  1. Mor

    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”}

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *