homelab-health-monitor
Lightweight system health monitoring for homelab servers with Discord webhook notifications.
Features
- Hourly stats collection (CPU, RAM, load, disk)
- Daily Discord reports with min/avg/max values
- SSD SMART health checks
- Journal error summaries
- Color-coded status (OK/WARNING/CRITICAL)
- Zero dependencies beyond bash, cron, and curl
Installation
- Copy scripts to
~/.local/bin/ - Create data directory:
mkdir -p ~/.local/share/health-monitor - Edit
health-report.shand set yourWEBHOOK_URL - Make executable:
chmod +x ~/.local/bin/health-*.sh - Add to crontab:
0 * * * * ~/.local/bin/health-collector.sh
0 9 * * * ~/.local/bin/health-report.sh
Usage
# Send report now
./health-report.sh
# Only report if warnings/errors
./health-report.sh --errors-only
License
MIT
Description
A small monitoring in two parts - collecting data and sending aggregate to discord webhook.
Languages
Shell
100%