← 返回 Skills 市场
stigg86

Bud Health Monitor

作者 stigg86 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
48
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bud-health-monitor
功能描述
Monitor system health (RAM, disk, CPU, services). Auto-detect issues and attempt fixes. Essential for keeping Raspberry Pi running stable.
使用说明 (SKILL.md)

Health Monitor 🩺

System health monitoring with auto-fix capabilities. Monitors RAM, disk, CPU, and services. Detects problems before they crash your Pi.

Designed for Raspberry Pi and home server setups where resources are limited.


Quick Start

# Check system health
python3 ~/.openclaw/health-monitor/health_monitor.py status

# Watch continuously (refreshes every 30s)
python3 ~/.openclaw/health-monitor/health_monitor.py watch

# Auto-fix low RAM issues
python3 ~/.openclaw/health-monitor/health_monitor.py fix

What It Monitors

Resource Warning Critical
RAM 80% 90%
Disk 85% 95%
CPU 85% 95%

Commands

status — Show health report

Shows current usage for RAM, disk, CPU, load average, uptime, and top processes by RAM usage.

watch — Continuous monitoring

Refreshes every 30 seconds. Use Ctrl+C to stop.

fix — Auto-fix low RAM

Terminates processes using >5% RAM (except critical system services). Also drops caches to free memory.

json — Machine-readable output

Outputs full status as JSON for integration with other tools.


Auto-Fix Capabilities

When RAM gets critical, the skill can:

  1. Terminate processes using too much RAM (SIGTERM → SIGKILL)
  2. Drop system caches (sync && echo 3 > /proc/sys/vm/drop_caches)
  3. Log events to ~/.openclaw/health-monitor/health.log

Requires sudo-tool to be installed for full functionality.


Alert Thresholds

Alerts are shown when thresholds are exceeded:

  • 🟡 WARNING — resource above warning threshold
  • 🔴 CRITICAL — resource above critical threshold

Integration

Add to cron for automated health checks:

# Check every 5 minutes, log if issues found
*/5 * * * * python3 ~/.openclaw/health-monitor/health_monitor.py status | grep -q "ALERTS" && echo "Health issue detected" | mail -s "Pi Alert"

Or trigger a fix automatically when RAM gets critical:

# At RAM critical, run fix
0 * * * * python3 ~/.openclaw/health-monitor/health_monitor.py json | python3 -c "import sys,json; exit(1 if json.load(sys.stdin)['ram']['percent'] > 90 else 0)" && python3 ~/.openclaw/health-monitor/health_monitor.py fix

Files

~/.openclaw/health-monitor/
├── health_monitor.py   # Main script
├── health.log           # Event log
├── state.json          # Last known state (optional)
└── config.json          # Configuration (optional)

Required By

  • vpn-mesh — keeps node running stable
  • OANDA bot — prevents crashes from RAM exhaustion
  • Any heavy workload — automated health management

Known Issues

  • Disk at 91% on this system — needs cleanup
  • Some processes cannot be killed without root (but sudo-tool handles this)
安全使用建议
Install only if you intentionally want a Raspberry Pi/home-server tool that can take active remediation actions. Use status/json/watch freely for reporting, but treat fix as disruptive: it may kill legitimate applications or services and may attempt privileged kernel cache changes. Avoid unattended cron-based fix runs unless you have reviewed and narrowed the process-kill rules.
能力评估
Purpose & Capability
Monitoring RAM, disk, CPU, load, uptime, and top processes fits the stated purpose, and auto-fix behavior is disclosed. The concern is that fix mode terminates any high-memory process above a low threshold except a small substring denylist, which can disrupt unrelated user or service workloads.
Instruction Scope
The status, watch, json, and fix commands are documented, but fix has no dry-run, preview, or confirmation step before process termination and cache dropping. The description also mentions services and temperature, but the implementation does not actually monitor them.
Install Mechanism
There is no install script or package installation behavior. The metadata declares ps, df, top and a sudo-tool dependency, but the script also writes logs and attempts privileged /proc cache changes, so the declared capability scope is incomplete.
Credentials
Raspberry Pi and home-server monitoring is a coherent use case, but automatic remediation through SIGTERM/SIGKILL and kernel cache dropping is high-impact for a general health skill, especially when the documentation suggests unattended cron use.
Persistence & Privilege
The skill creates ~/.openclaw/health-monitor and appends health.log, which is proportionate. The higher concern is privileged or disruptive runtime behavior: killing processes and writing /proc/sys/vm/drop_caches when run with sufficient permissions.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bud-health-monitor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bud-health-monitor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
health-monitor 1.0.0 - Initial release for Raspberry Pi and home servers. - Monitors system RAM, disk, CPU, load, uptime, and process usage. - Provides commands for status reporting, continuous monitoring, automatic fixing, and JSON output. - Auto-fix function terminates high-RAM processes and drops system caches when RAM usage is critical. - Logs major health events and supports cron integration for automated checks.
元数据
Slug bud-health-monitor
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Bud Health Monitor 是什么?

Monitor system health (RAM, disk, CPU, services). Auto-detect issues and attempt fixes. Essential for keeping Raspberry Pi running stable. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 48 次。

如何安装 Bud Health Monitor?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bud-health-monitor」即可一键安装,无需额外配置。

Bud Health Monitor 是免费的吗?

是的,Bud Health Monitor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Bud Health Monitor 支持哪些平台?

Bud Health Monitor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Bud Health Monitor?

由 stigg86(@stigg86)开发并维护,当前版本 v1.0.0。

💬 留言讨论