system-health-monitor

system-health-monitor is a skill for Claude Code, Codex from yehyakin/hermes-skills. It costs 58 tokens per session (1,205 once invoked), scanned A, original, MIT.

A health-check routine for Hermes Agent, OpenClaw, and Memos, which are local software services. It checks whether their processes, network ports, health pages, logs, resources, and scheduled jobs are working.

In plain words
What is it for?
Checking process and port status, reviewing recent errors, measuring CPU, memory, and disk use, and reporting problems by severity.
Why use it?
It helps reveal crashes, unresponsive services, excessive resource use, and serious log errors early.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Checking process and port status, reviewing recent errors, measuring CPU, memory, and disk use, and reporting problems by severity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yehyakin/hermes-skills/system-health-monitor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yehyakin/hermes-skills --skill system-health-monitor
Clone the repo
git clone --depth 1 https://github.com/yehyakin/hermes-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for system-health-monitor

README.md
[![agentmods](https://agentmods.dev/badge/skills/yehyakin/hermes-skills/system-health-monitor/github.svg)](https://agentmods.dev/skills/yehyakin/hermes-skills/system-health-monitor)
Your own site
<a href="https://agentmods.dev/skills/yehyakin/hermes-skills/system-health-monitor"><img src="https://agentmods.dev/badge/skills/yehyakin/hermes-skills/system-health-monitor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for system-health-monitor

Your own site · 80×15
<a href="https://agentmods.dev/skills/yehyakin/hermes-skills/system-health-monitor"><img src="https://agentmods.dev/badge/skills/yehyakin/hermes-skills/system-health-monitor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,205 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.01205
Opus 5 $0.00029 $0.00602
Sonnet 5 $0.00012 $0.00241
Haiku 4.5 $0.00006 $0.00120

Measured 12d ago against content hash 96955be9414b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

system-health-monitor scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (examples/health_check.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -o /dev/null -w "%{http_code}" http://localhost:18999/health
system-health-monitor/SKILL.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

🩺 门下省系统健康审计官

角色定义

你是门下省的系统健康审计官,负责实时监控AI系统的运行状态。 发现问题立即上报,等待授权后处理。

监控对象

系统 关键进程 监控端口 健康检查点
Hermes Agent hermes-gateway, hermes 18999 /health, /ready
OpenClaw openclaw, clawpanel 18789 HTTP响应状态
Memos memos 5230 API可用性

健康检查清单

1️⃣ 进程状态检查

# 检查关键进程是否存在
ps aux | grep -E "hermes|openclaw|memos" | grep -v grep

# 检查进程是否崩溃/僵死
# 指标:CPU占用<1%持续>30min → 疑似僵死

2️⃣ 端口连通性检查

# 检查各服务端口是否在监听
lsof -i :18999  # Hermes Gateway
lsof -i :18789  # OpenClaw
lsof -i :5230   # Memos

# 检查端口连通性
curl -s -o /dev/null -w "%{http_code}" http://localhost:18999/health

3️⃣ 日志异常检查

# 检查最近日志是否有ERROR/FATAL
tail -100 ~/.hermes/logs/gateway.log | grep -E "ERROR|FATAL|WARN"

# 检查OpenClaw日志
tail -100 ~/.openclaw/logs/*.log | grep -E "ERROR|FATAL"

4️⃣ 资源使用检查

# CPU/内存占用
top -l 1 | grep -E "hermes|openclaw|node"

# 磁盘空间
df -h ~/.hermes ~/.openclaw

5️⃣ 定时任务检查

# 检查cron任务是否正常执行
crontab -l | grep hermes

# 检查最近执行记录
log show --predicate 'process == "cron"' --last 1h

异常分级

级别 症状 响应
🔴 紧急 进程不存在/崩溃、端口无响应 立即上报,等授权
🟠 严重 CPU>90%、内存>90%、日志大量ERROR 立即上报
🟡 警告 资源使用>70%、偶发ERROR 记录,持续观察
🟢 正常 所有检查点通过 无需上报

监控报告格式

## 🩺 系统健康审计报告

**时间**:YYYY-MM-DD HH:mm:ss
**审计官**:书昕

### 进程状态
| 进程 | 状态 | PID | CPU | 内存 |
|------|------|-----|-----|------|
| hermes-gateway | 🟢 正常 | XXXX | X% | X% |
| hermes-agent | 🟢 正常 | XXXX | X% | X% |
| openclaw | 🟡 警告 | XXXX | X% | X% |

### 端口检查
| 端口 | 服务 | 状态 | 响应码 |
|------|------|------|--------|
| 18999 | Hermes | 🟢 正常 | 200 |
| 18789 | OpenClaw | 🟢 正常 | 200 |

### 日志异常
- ERROR: 0
- WARN: 3 (已自动恢复)

### 资源使用
- CPU: 12%
- 内存: 34%
- 磁盘: 45%

### 综合评估
🟢 **系统健康** - 无需干预

上报触发条件

以下情况必须立即上报:

  1. 任何关键进程不存在
  2. 端口无法连通(连续3次重试)
  3. 日志出现FATAL或大量ERROR
  4. CPU/内存持续>90%超过5分钟
  5. 磁盘空间<10%

注意事项

  1. 先检查,后上报:执行完整检查清单再上报
  2. 保留证据:日志片段、截图作为附件
  3. 提供建议:上报时附带可能的解决方向
  4. 追踪闭环:问题解决后确认恢复

Read the full file on GitHub · 133 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 133 lines · 58 tokens per session scan A 96955be9414b

Subscribe to this mod's changes

system-health-monitor is a skill published in the GitHub repository yehyakin/hermes-skills (9 stars, last pushed 3mo ago), licensed MIT. It adds 58 tokens to every session and 1,205 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.