Health check script for pfSense on ZFS.
This job will check all ZFS pools to confirm health state of them, trigger a scrub of the pool, and check if usage of the pool has not reached configurable value (default 50%)
By default the script will produce a warning when drive space is at 80% or greater. If you want to change this modify the following line
max_capacity=80
Setup a cron job under pfSense GUI: Services -> Cron -> Settings
run cron daily at midnight
0 0 * * * root /root/pfsense_zfs_check/pfsense_zfs_check.sh
- pfSense
- Notifications setup under: System -> Advanced -> Notifications