Use when the user asks to check system health, run a health report, diagnose system status, or check if the machine is healthy.
Run ~/health-report.sh --full --no-color and produce a structured summary.
~/health-report.sh --full --no-colorThe script prints section headers as uppercase text between ═══ borders.
Key sections to extract:
| Script Section Header | Maps To |
|---|---|
SYSTEM INFORMATION | System |
DISK USAGE | Disk |
MEMORY & CPU | Memory (includes swap and load average) |
NETWORK | Network |
SERVICES | Services |
TOP PROCESSES | Processes (high CPU/memory consumers, load average) |
Subsections start with ▶ followed by a label.
Note: --full does not print zombie counts. Run ps aux | awk '$8~/Z/' | wc -l separately to get the zombie count for the Processes row.
| Metric | OK | WARN | CRITICAL |
|---|---|---|---|
| Disk usage | < 80% | 80-95% | > 95% |
| Memory usage | < 85% | 85-95% | > 95% |
| Swap usage | < 50% | 50-80% | > 80% |
| Load avg (1m) | < nproc | 1-2x nproc | > 2x nproc |
| Failed services | 0 | 1-2 | 3+ or key service down |
| Zombie processes | 0 | 1-5 | > 5 |
Key services (CRITICAL if down): redis-server, cron.
Produce ONLY these two parts — nothing else:
## System Health Check — YYYY-MM-DD
| Category | Status | Details |
|----------|--------|---------|
| System | OK | Ubuntu 24.04, up 3 days, kernel 6.6.x |
| Disk | OK | root 45% used, home 12G |
| Memory | OK | 8G/32G used (25%), swap 0B/8G |
| Network | OK | internet reachable, DNS resolving |
| Services | OK | no failed services, redis-server and cron active |
| Processes | OK | 0 zombies, load avg 1.2 (nproc=32) |
No issues found. All systems healthy.~/health-report.sh is not found or not executable: report the error and suggest checking the file path.## System Health Check — YYYY-MM-DD (em dash, real date).No issues found. All systems healthy.**bold**, no *italic*, no backticks.