update doc
This commit is contained in:
@@ -32,7 +32,7 @@ system/ System config snapshots (smb.conf, sanoid.conf, firewalld, et
|
|||||||
| `RUNBOOK.md` | Full recovery steps, top to bottom |
|
| `RUNBOOK.md` | Full recovery steps, top to bottom |
|
||||||
| `scripts/backup.sh` | Daily USB backup (DB dumps + rsync) |
|
| `scripts/backup.sh` | Daily USB backup (DB dumps + rsync) |
|
||||||
| `scripts/issue-cert.sh` | Issue SSL certs via certbot webroot |
|
| `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 |
|
| `scripts/sync-system.sh` | Auto-sync system configs to git |
|
||||||
| `system/tracked-configs` | Maps system config paths to repo paths |
|
| `system/tracked-configs` | Maps system config paths to repo paths |
|
||||||
| `docker/nginx/conf.d/_template.conf.example` | Template for new nginx app confs |
|
| `docker/nginx/conf.d/_template.conf.example` | Template for new nginx app confs |
|
||||||
|
|||||||
@@ -1,20 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# server-health-check.sh — Argento health monitoring
|
# disk-health-check.sh — argento health monitoring
|
||||||
# Checks: SMART disk health, ZFS pool status, disk space
|
# Checks SMART health (SATA and NVMe), ZFS pool state and error counters,
|
||||||
# Outputs plain text to stdout by default, or sends an HTML email with --email.
|
# ZFS dataset quotas, and non-ZFS disk space.
|
||||||
# Use --error-only to suppress output when everything is healthy.
|
#
|
||||||
|
# Output is plain text to stdout (ANSI-colored when stdout is a TTY),
|
||||||
|
# or an HTML email to $MAILTO with --email.
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# ./server-health-check.sh # full report to stdout
|
# disk-health-check.sh # full report to stdout
|
||||||
# ./server-health-check.sh --error-only # only print errors (silent if healthy)
|
# disk-health-check.sh --error-only # problems only; silent if healthy
|
||||||
# ./server-health-check.sh --email # full report to email
|
# disk-health-check.sh --email # full report by email
|
||||||
# ./server-health-check.sh --error-only --email # email errors (no email if healthy)
|
# disk-health-check.sh --error-only --email # email only if problems found
|
||||||
#
|
#
|
||||||
# Install:
|
# Cron on the server runs --error-only --email daily and --email weekly.
|
||||||
# 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
|
|
||||||
#
|
#
|
||||||
# Dependencies: smartmontools, zfs, msmtp (as sendmail)
|
# Dependencies: smartmontools, zfs, msmtp (as sendmail)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user