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

Views All Time
Views All Time
100
Views Today
Views Today
1

Leave a Reply

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