360 Secure SkillHub
360 安全技能中心

Server Health Agent

该 Skill 面向 OpenClaw,通过 Node 执行只读系统命令采集 VPS/服务器的 CPU、内存、根磁盘使用率和 Docker 容器状态,并以结构化 JSON 返回,适用于 DevOps 巡检和性能排查。

sanjay-gthb
sanjay-gthb
热度 84.50
最近更新 2026-05-17 12:24:32
分类:自动化依赖:代码执行应用场景:DevOps / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add server-health-agent
Metadata
name
server-health-agent
description
Monitor VPS and server health metrics including real-time CPU usage, RAM utilization, disk usage, and Docker container status. Useful for DevOps monitoring, troubleshooting performance issues, and infrastructure health checks.
runtime
node
entry
skill.js
permissions
["shell"]

Server Health Agent

Server Health Agent is a production-ready OpenClaw skill designed to provide real-time monitoring of key server health metrics. It helps developers, DevOps engineers, and system administrators quickly assess the operational health of their VPS or server.

This skill executes safe system-level read-only commands to collect accurate health metrics without modifying the system.


Key Features

Real-Time CPU Monitoring

Uses live system commands (top) to capture current CPU utilization, with fallback mechanisms to ensure reliability even in restricted environments.

Memory (RAM) Monitoring

Reports accurate RAM usage percentage using system-level commands and Node.js fallback logic.

Disk Usage Monitoring

Provides root filesystem disk utilization, allowing detection of storage pressure or capacity issues.

Docker Container Detection

Detects and reports running Docker containers and their status when Docker socket access is available.

Gracefully handles environments where Docker access is restricted.

Structured Output

Returns structured JSON output optimized for OpenClaw automation workflows and downstream processing.


Use Cases

This skill is useful for:

  • VPS health monitoring
  • DevOps automation workflows
  • Infrastructure monitoring
  • Troubleshooting performance issues
  • Detecting resource bottlenecks
  • Monitoring containerized environments
  • Automated system health checks

Example Output

{
  "success": true,
  "skill": "server-health-agent",
  "timestamp": "2026-02-20T12:00:00Z",
  "server_health": {
    "cpu_percent": "12.44",
    "ram_percent": "21.33",
    "disk_usage": "51%",
    "docker_status": "openclaw-openclaw-gateway-1: Up 2 hours"
  }
}