360 Secure SkillHub
360 安全技能中心

Server Health

该 Skill 通过 shell 脚本一次性汇总本机 CPU、内存、磁盘、运行时间、占资源最高的进程、OpenClaw 网关状态与配置、Docker/数据库等服务运行情况,支持标准、详细、JSON 与仅告警四种视图,便于命令行或消息渠道快速巡检。

muslimalfatih
muslimalfatih
热度 98.07
最近更新 2026-05-11 15:54:52
分类:自动化依赖:代码执行应用场景:DevOps / 自动化脚本 / 报告撰写

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add server-health
Metadata
name
server-health
description
Comprehensive server health monitoring showing system stats, top processes, OpenClaw gateway status, and running services. Perfect for quick health checks via Telegram or CLI.

Server Health Skill

Quick server monitoring with system stats, processes, OpenClaw gateway info, and services.

Usage

Standard view:

./server-health.sh

Verbose (includes temp, network, swap, I/O):

./server-health.sh --verbose

JSON output (for automation):

./server-health.sh --json

Alerts only (warnings/errors):

./server-health.sh --alerts

What It Shows

🔴 Always

  • System stats (CPU, RAM, Disk, Uptime)
  • Top 3-5 processes by CPU/RAM
  • OpenClaw Gateway status & config
  • Running services (Docker, PostgreSQL, etc.)

🟡 Conditional

  • Alerts (disk >90%, RAM >80%, CPU >90%)
  • Swap usage (if in use)

🟢 Verbose only

  • Temperature (if sensors available)
  • Network traffic
  • Disk I/O
  • Detailed service info

Example Output

🖥️ SERVER HEALTH
━━━━━━━━━━━━━━━━━━━━

💻 SYSTEM
CPU: ████░░░░░░ 42% (Load: 1.2, 0.8, 0.5)
RAM: ██████░░░░ 1.4GB/8GB (18%)
DISK: ████░░░░░░ 45GB/100GB (45%)
UP: ⏱️ 5d 3h

🔄 TOP PROCESSES
node         35%    450MB
postgres     12%    280MB
openclaw      8%    180MB

⚡ OPENCLAW GATEWAY
Status: ✅ Running (PID: 1639125)
Uptime: 2d 5h | Port: 18789 | v2026.2.6-3

🤖 MODEL CONFIG
Primary: claude-sonnet-4-5
Context: 43k/128k (33%) | 574↓ 182↑ tokens
Fallbacks: glm-4.7 → copilot-sonnet → opus-4-5

📊 SESSIONS
Active: 3 | Heartbeat: 30m | Last: 1m ago

🐳 SERVICES
Docker: ✅ 3 containers
PostgreSQL: ✅ Running