← 返回
未分类 中文

Bud Health Monitor

Monitor system health (RAM, disk, CPU, services). Auto-detect issues and attempt fixes. Essential for keeping Raspberry Pi running stable.
监控系统健康(内存、磁盘、CPU、服务),自动检测并尝试修复问题,确保树莓派稳定运行。
stigg86 stigg86 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 97
下载
💾 0
安装
1
版本
#latest

概述

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

ResourceWarningCritical
-----------------------------
RAM80%90%
Disk85%95%
CPU85%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)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-06-06 07:17

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

life-service

Premier League Scores

stigg86
通过ESPN API获取英超联赛实时比分、进球球员、犯规和直播频道信息。当用户询问英超比赛比分时使用。
★ 0 📥 479
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,556
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,872