360 Secure SkillHub
360 安全技能中心

Pi Health

运行 scripts/health.sh 在树莓派上依次检查 CPU 温度、降频标志、电压、内存、磁盘、CPU 频率、负载、风扇转速、超频配置与 dmesg 欠压记录,并按健康/警告/严重返回 0/1/2 退出码,完全本地执行,无外部依赖或 API 密钥。

josunlp
josunlp
热度 96.55
最近更新 2026-05-11 15:57:11
分类:自动化依赖:代码执行 / 读写文件应用场景:DevOps / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add pi-health
Metadata
name
pi-health
description
Raspberry Pi health monitor. Check CPU temperature, throttling status, voltage levels, memory/disk usage, fan RPM, overclock detection, and power issues. Use when monitoring Pi health, diagnosing thermal throttling, checking for under-voltage, or verifying system stability on any Raspberry Pi (Pi 3/4/5, arm64/armhf).

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