Pi Health
Run the health check script:
bash scripts/health.sh
What It Checks
| Check | Source | Warning | Critical |
|---|---|---|---|
| CPU Temperature | thermal_zone0 | >70°C | >80°C |
| Throttling | vcgencmd get_throttled | any flag set | under-voltage |
| Voltages | vcgencmd measure_volts | — | — |
| Memory | free -m | >75% | >90% |
| Disk | df / | >75% | >90% |
| CPU Frequency | cpufreq sysfs | — | — |
| Load Average | /proc/loadavg | >nCPU | >2×nCPU |
| Fan | hwmon sysfs | — | — |
| Overclock | config.txt | detected | — |
| Power | dmesg | — | under-voltage |
Exit Codes
0— Healthy (all checks passed)1— Warnings (non-critical issues)2— Critical (needs immediate attention)
Requirements
- Raspberry Pi OS (Bookworm or later)
vcgencmd(optional but recommended — comes withlibraspberrypi-bin)bc(standard on Pi OS)- No external dependencies or API keys