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 50% or greater. If you want to change this modify the following line
max_capacity=50
Setup a cron job under pfSense GUI: Services -> Cron -> Settings
Here is an example for a weekly job run
0 0 * * 0 root /root/pfsense_zfs_check.sh
- pfSense
- Notifications setup under: System -> Advanced -> Notifications
If you find this useful and you would like to support please the use option below.