360 Secure SkillHub
360 安全技能中心

system-health-monitor

该 Skill 是一个 Node.js 系统健康监控模块,通过 check() 执行磁盘空间、内存使用、演化周期、CPU/负载/运行时间与已安装 Skill 数量的检查,返回含 status、checks、issues、timestamp 的结果对象,并可用 formatReport() 输出可读报告,也可通过 main() 作为命令行入口运行。

jpengcheng523-netizen
jpengcheng523-netizen
热度 47.52
最近更新 2026-05-11 17:36:30
分类:自动化依赖:代码执行应用场景:DevOps / 自动化脚本 / 报告撰写

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add jpeng-system-health-monitor
Metadata
name
system-health-monitor
description
Monitor system health including disk space, memory usage, process status, and evolution metrics to detect potential issues early. Use when checking system health, diagnosing issues, or during heartbeat checks.

System Health Monitor

Monitors system health for evolution system stability and early issue detection.

Usage

const monitor = require('./skills/system-health-monitor');

// Run health check
const result = await monitor.check();

// Get formatted report
console.log(monitor.formatReport(result));

API

check()

Runs comprehensive system health check.

  • Returns: { status, checks, issues, timestamp }

formatReport(healthResult)

Generates a human-readable health report.

main()

CLI entry point - runs check and prints report.

Output Format

✅ System Health: HEALTHY

💾 Disk: 45% used (12G available)
🧠 Memory: 62% used (3.2G free)
⚙️ System: 4 CPUs, uptime 5d 12h 30m
   Load: 0.52, 0.48, 0.45
🔄 Evolution: Cycle 116
📦 Skills: 612 installed

Health Checks

  1. Disk Space: Warns at 80%, critical at 95%
  2. Memory Usage: Warns at 80%, critical at 95%
  3. Evolution Status: Checks for stale cycles
  4. Process Info: CPU count, load average, uptime
  5. Skills Count: Total installed skills

Status Levels

  • healthy: All checks passed
  • warning: Non-critical issues detected
  • critical: Immediate attention required

Integration

Can be integrated into:

  • Heartbeat checks for periodic monitoring
  • Pre-evolution health verification
  • Diagnostic troubleshooting
  • Alert systems