health-check
System health check dispatched by the activity monitor via Control queue. Checks PM2 services, disk space, and memory usage. Use when receiving a control message containing "health-check".
适合你,如果需要定期检查服务器运行状态
/ 通过 npx 安装 校验哈希
npx oh-my-skill add zylos-ai/zylos-core/health-check/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- zylos-ai/zylos-core/health-check/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify zylos-ai/zylos-core/health-check安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
1155GitHub stars
~392最小装载
~392含声明引用
~414文本包总量
索引托管
怎么用
技能原文 SKILL.md
System Health Check
Periodic system health check delivered via the C4 Control queue.
When to Use
- Receiving a control message with "health-check" in the content
- The activity monitor enqueues this automatically at regular intervals
Steps
1. Check PM2 Services
pm2 jlist
Parse the JSON output. Every service should have status: "online". Record which services are stopped or errored.
2. Check Disk Space
df -h / /home 2>/dev/null || df -h /
Thresholds:
- OK: < 80% used
- Warning: 80-90% used
- Critical: > 90% used
3. Check Memory
free -m
Thresholds:
- OK: < 80% used
- Warning: 80-90% used
- Critical: > 90% used (or swap > 50% used)
4. Report Results
If all checks pass, log to ~/zylos/logs/health.log:
[YYYY-MM-DD HH:MM:SS] Health Check: PM2 X/X online, Disk XX%, Memory XX% - ALL OK
If any issues found, notify whoever is most likely to help:
- Check your memory files for a designated owner or ops person
- If none designated, notify the person you normally work with most
- Use
c4-send.jswith the appropriate channel and endpoint to send the alert
Issue Resolution
| Issue | Action | |-------|--------| | PM2 service stopped | pm2 restart <service> and report | | High disk usage | Check logs directories, report findings | | High memory / swap | Report findings, check for runaway processes |
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…