/pfsense_zfs_check

pfsense_zfs_check is a health check script for pfSense on ZFS

Primary LanguageShell

pfsense_zfs_check

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%)

Config file

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

Usage

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

Requirements

  • pfSense
  • Notifications setup under: System -> Advanced -> Notifications