I made a rule to discover disks on my zabbix 2.2.2 version like so:
DISCOVERY:
Name: Mounted Filesystem discovery
Type: ZabbixAgent
Key: vfs.fs.discovery
Update interval (in sec): 3600
Interval (in sec): 50
Filter Macro: {#FSTYPE} Regexp: @File systems for discovery
Description: Discovery of filesystems
ITEM:
Name: Free disk space on $1 (percentage)
Type: Zabbix Agent
Key: vfs.fs.size[{#FSNAME},pfree]
Type of information: Numeric float
Units: %
Why is it not working?
DISCOVERY:
Name: Mounted Filesystem discovery
Type: ZabbixAgent
Key: vfs.fs.discovery
Update interval (in sec): 3600
Interval (in sec): 50
Filter Macro: {#FSTYPE} Regexp: @File systems for discovery
Description: Discovery of filesystems
ITEM:
Name: Free disk space on $1 (percentage)
Type: Zabbix Agent
Key: vfs.fs.size[{#FSNAME},pfree]
Type of information: Numeric float
Units: %
Why is it not working?