Created
July 27, 2016 10:33
-
-
Save FreekPaans/8174b6d8646f3188c42250dce931e5ff to your computer and use it in GitHub Desktop.
zabbix agent configuration file for monitoring zpool health and errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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