Skip to content

Instantly share code, notes, and snippets.

@aortmannm
Created May 24, 2013 08:36
Show Gist options
  • Save aortmannm/5642137 to your computer and use it in GitHub Desktop.
Save aortmannm/5642137 to your computer and use it in GitHub Desktop.
request zpool status in zabbix
## Create zfs.conf in /usr/local/etc/zabbix_agentd.conf.d/
vi /usr/local/etc/zabbix_agentd.conf.d/zfs.conf
## Copy into zfs.conf
UserParameter=zpool.health[*],zpool list -H -o health $1
## in zabbix_agentd.conf include the conf.d directory
vi /usr/local/etc/zabbix_agentd.conf
Include=/usr/local/etc/zabbix_agentd.conf.d/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment