diff --git a/README.md b/README.md index 12306fb..44c8b7a 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ system/ System config snapshots (smb.conf, sanoid.conf, firewalld, et | `RUNBOOK.md` | Full recovery steps, top to bottom | | `scripts/backup.sh` | Daily USB backup (DB dumps + rsync) | | `scripts/issue-cert.sh` | Issue SSL certs via certbot webroot | -| `scripts/disk-health-check.sh` | SMART, ZFS, disk space monitoring (daily alerts + weekly reports via cron) | +| `scripts/disk-health-check.sh` | SMART, ZFS, quota, disk space monitoring (daily alerts + weekly reports via cron) | | `scripts/sync-system.sh` | Auto-sync system configs to git | | `system/tracked-configs` | Maps system config paths to repo paths | | `docker/nginx/conf.d/_template.conf.example` | Template for new nginx app confs | diff --git a/scripts/disk-health-check.sh b/scripts/disk-health-check.sh index 89ae85f..2700845 100755 --- a/scripts/disk-health-check.sh +++ b/scripts/disk-health-check.sh @@ -1,20 +1,18 @@ #!/bin/bash -# server-health-check.sh — Argento health monitoring -# Checks: SMART disk health, ZFS pool status, disk space -# Outputs plain text to stdout by default, or sends an HTML email with --email. -# Use --error-only to suppress output when everything is healthy. +# disk-health-check.sh — argento health monitoring +# Checks SMART health (SATA and NVMe), ZFS pool state and error counters, +# ZFS dataset quotas, and non-ZFS disk space. +# +# Output is plain text to stdout (ANSI-colored when stdout is a TTY), +# or an HTML email to $MAILTO with --email. # # Usage: -# ./server-health-check.sh # full report to stdout -# ./server-health-check.sh --error-only # only print errors (silent if healthy) -# ./server-health-check.sh --email # full report to email -# ./server-health-check.sh --error-only --email # email errors (no email if healthy) +# disk-health-check.sh # full report to stdout +# disk-health-check.sh --error-only # problems only; silent if healthy +# disk-health-check.sh --email # full report by email +# disk-health-check.sh --error-only --email # email only if problems found # -# Install: -# chmod +x /opt/server-health-check.sh -# crontab -e: -# 0 6 * * * /opt/server-health-check.sh --error-only --email # daily alert -# 0 8 * * 1 /opt/server-health-check.sh --email # weekly report +# Cron on the server runs --error-only --email daily and --email weekly. # # Dependencies: smartmontools, zfs, msmtp (as sendmail)