360 Secure SkillHub
360 安全技能中心

System Vigil

通过 Python 脚本调用 df、free、uptime 采集 Linux 主机的磁盘、内存与 CPU 负载,按阈值输出 ok、warning 或 critical 状态的结构化 JSON,供代理在资源耗尽前预警。

numbpill3d
numbpill3d
热度 71.71
最近更新 2026-05-11 17:27:36
分类:自动化依赖:代码执行应用场景:DevOps / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add system-vigil
Metadata
name
system-vigil
description
Monitor host system health (Disk, RAM, CPU). Returns structured JSON status for predictive maintenance.
metadata
{"openclaw":{"emoji":"🛡️","requires":{"bins":["df","free","uptime"]}}}

System Vigil

A health monitor for the host machine. It checks vital signs and returns a structured report, allowing agents to detect resource exhaustion before it causes a crash.

Capabilities

  • Check Health: Get a JSON report of Disk, Memory, and CPU usage.
  • Predictive Status: Returns specific flags (warning, critical) based on thresholds.

Usage

User: "Run a system health check." Agent: python3 skills/system-vigil/check.py Output:

{
  "status": "ok",
  "disk": { "used_percent": 45, "free_gb": 120 },
  "memory": { "used_percent": 30, "free_gb": 12 },
  "cpu": { "load_15m": 0.5 }
}

Implementation

A Python script parsing standard Linux utils (df, free, uptime).