pi-health

TotalClaw 作者 totalclaw

树莓派健康监测器。检查 CPU 温度、节流状态、电压水平、内存/磁盘使用情况、风扇 RPM、超频检测和电源问题。在任何 Raspberry Pi(Pi 3/4/5、arm64/armhf)上监控 Pi 运行状况、诊断热节流、检查欠压或验证系统稳定性时使用。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~josunlp-pi-health
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~josunlp-pi-health/file -o josunlp-pi-health.md
## 概述(中文)

树莓派健康监测器。检查 CPU 温度、节流状态、电压水平、内存/磁盘使用情况、风扇 RPM、超频检测和电源问题。在任何 Raspberry Pi(Pi 3/4/5、arm64/armhf)上监控 Pi 运行状况、诊断热节流、检查欠压或验证系统稳定性时使用。

## 原文

# Pi Health

Run the health check script:

```bash
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 with `libraspberrypi-bin`)
- `bc` (standard on Pi OS)
- No external dependencies or API keys