Skip to content

Instantly share code, notes, and snippets.

@szenti
szenti / zfs_health_check.sh
Created January 5, 2020 22:16 — forked from Rychu-Pawel/zfs_health_check.sh
ZFS Health Check script for monit
#! /bin/sh
#
## ZFS health check script for monit.
## v0.9.0.1
#
## Should be compatible with FreeBSD and Linux. Tested on Ubuntu.
## If you want to use it on FreeBSD then go to Scrub Expired section
## and comment two Ubuntu date lines and uncomment two FreeBSD lines
#
## Assumed usage in monitrc (where 80 is max capacity in percentages