update doc

This commit is contained in:
2026-07-13 11:00:05 -04:00
parent 81f704f248
commit 9ff28a8f78
2 changed files with 12 additions and 14 deletions
+11 -13
View File
@@ -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)