Initial commit: health monitoring scripts for Discord webhooks
This commit is contained in:
39
README.md
Normal file
39
README.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# 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
|
||||
|
||||
1. Copy scripts to `~/.local/bin/`
|
||||
2. Create data directory: `mkdir -p ~/.local/share/health-monitor`
|
||||
3. Edit `health-report.sh` and set your `WEBHOOK_URL`
|
||||
4. Make executable: `chmod +x ~/.local/bin/health-*.sh`
|
||||
5. Add to crontab:
|
||||
|
||||
```cron
|
||||
0 * * * * ~/.local/bin/health-collector.sh
|
||||
0 9 * * * ~/.local/bin/health-report.sh
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
# Send report now
|
||||
./health-report.sh
|
||||
|
||||
# Only report if warnings/errors
|
||||
./health-report.sh --errors-only
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
Reference in New Issue
Block a user