Simple zabbix script and template to auto-discover zfs pools and filesystems. Used mostly to monitor and trigger on pool degradation. Also shows pool/dataset usage.
Works without sudo on Debian, YMMV. Tested on Zabbix 4.0.
git clone https://github.com/thorro/zabbix-zfs.git && cd zabbix-zfs
cp -a bin/zfs-discovery.sh /usr/local/bin
/usr/local/bin/zfs-discovery.sh pooldisc
cp conf/zfs.conf /etc/zabbix/zabbix_agentd.d
service zabbix-agent restart
zabbix_agentd -t "zfs.pool.discovery"
At Configuration/Templates
Profit!
Based on thread: https://www.zabbix.com/forum/zabbix-cookbook/35336-zabbix-zfs-discovery-monitoring