Skip to content

Instantly share code, notes, and snippets.

@FreekPaans
Created July 27, 2016 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FreekPaans/8174b6d8646f3188c42250dce931e5ff to your computer and use it in GitHub Desktop.
Save FreekPaans/8174b6d8646f3188c42250dce931e5ff to your computer and use it in GitHub Desktop.
zabbix agent configuration file for monitoring zpool health and errors
# Adapted from https://calomel.org/zfs_health_check_script.html
UserParameter=zpool.health[*],zpool list $1 | grep ONLINE | wc -l
UserParameter=zpool.error-free[*],zpool status $1 | grep ONLINE | grep -v " state" | awk '$$3==0 && $$4==0 && $$5==0 {print}' | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment