Token导航 LogoToken导航TokenDH.com
开发执行命令clawhub未标认证来源可访问clear审计通过

system-load-monitor系统负载监视器

Agent Skill

system-load-monitor 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

10,056

周安装

419

GitHub Stars

公开资料未说明

下载量

3,352
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:system-load-monitor(系统负载监视器)
来源仓库:https://github.com/hifengzy/system-load-monitor
安装命令:
openclaw skills install system-load-monitor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install system-load-monitor

简介

system-load-monitor 实时监控 CPU 和内存使用率,并在负载过高时暂停任务以保护系统稳定性。

  • 适用于长时间运行的数据处理、模型训练等高资源消耗任务的智能节流控制。
  • 当检测到阈值突破时自动挂起进程,待资源释放后恢复执行,防止系统崩溃。
  • 使用前应合理设置阈值参数,避免过于敏感导致频繁中断影响任务连续性。
  • 建议配合告警机制使用,以便及时通知用户干预或调整任务调度策略。

SKILL.md

name
system-load-monitor
description
System load monitoring and task control skill. Monitors CPU and memory usage rates, automatically pauses tasks when the load exceeds the threshold, and resumes execution after the load recovers. Suitable for low-configured servers to prevent downtime.

System Load Monitor

Core Functions

Monitors the CPU and memory load of the server, automatically controls the execution of system tasks, and prevents the server from downtime due to excessive load.

When to Use This Skill

Use this skill when the user mentions the following situations:

  • The server has low configuration (e.g., 2 cores 2GB) and is prone to downtime
  • Need to execute resource-intensive tasks
  • Previous downtime caused by excessive load
  • Need to intelligently control the rhythm of task execution
  • Need to monitor server status in real time

Configuration Parameters

ParameterDefault ValueDescription
cpu_threshold90CPU load threshold (percentage)
memory_threshold90Memory usage threshold (percentage)
check_interval30Check interval (seconds)
cool_down60Cool-down time after excessive load (seconds)

Usage Methods

1. Check Current System Status

# Quick check
python3 ~/.openclaw/workspace/skills/system-load-monitor/scripts/check_load.py

# View detailed JSON output
python3 ~/.openclaw/workspace/skills/system-load-monitor/scripts/check_load.py --json

# Custom thresholds
python3 ~/.openclaw/workspace/skills/system-load-monitor/scripts/check_load.py --cpu-threshold 80 --memory-threshold 85

2. Load Check Process Before Task Execution

Before executing any resource-consuming tasks:

  1. Run load check
   python3 ~/.openclaw/workspace/skills/system-load-monitor/scripts/check_load.py --json
  1. Parse return results

- status: "ok" / "warning" / "critical" - recommendation: "CONTINUE" / "PAUSE" - cpu.load_percent: CPU load percentage - memory.used_percent: Memory usage percentage

  1. Make decisions based on status

- ok: Continue executing the task - warning: Execute cautiously and consider batch processing - critical: Pause the task and retry after cooling down

3. Monitoring Loop for Long-Running Tasks

For long-running tasks, use the following pattern:

import subprocess
import time
import json

def check_load():
    result = subprocess.run(
        ['python3', '~/.openclaw/workspace/skills/system-load-monitor/scripts/check_load.py', '--json'],
        capture_output=True, text=True
    )
    return json.loads(result.stdout)

def run_with_load_monitor(task_func, cpu_threshold=90, memory_threshold=90):
    """Continuously monitor load while executing tasks"""
    while True:
        status = check_load()
        
        if status['status'] == 'critical':
            print(f"⚠️ Excessive load, pausing task...")
            print(f"CPU: {status['cpu']['load_percent']}%, Memory: {status['memory']['used_percent']}%")
            time.sleep(60)  # Wait for 60 seconds
            continue
        
        # Load is normal, execute the task
        task_func()
        break

Status Code Explanation

Exit CodeStatusMeaning
0okLoad is normal, can continue
1warningLoad is relatively high, recommended to proceed with caution
2criticalLoad is excessively high, must pause

Recommendations for Low-Configured Servers (2 Cores 2GB)

For your 2-core 2GB server:

  1. Lower the threshold: It is recommended to use 70-80% as the warning line
   python3 ~/.openclaw/workspace/skills/system-load-monitor/scripts/check_load.py --cpu-threshold 75 --memory-threshold 80
  1. Execute in batches: Split large tasks into small batches
  1. Avoid concurrency: Only perform one task at a time
  1. Regular checks: Check the load every 30 seconds for long-running tasks

Alert Notifications

When a critical status is detected, you should:

  1. Immediately pause the current task
  2. Notify the user (via Feishu message)
  3. Retry after the cool-down period

Script Output Example

{
  "status": "critical",
  "cpu": {
    "load_avg_1m": 3.8,
    "cpu_count": 2,
    "load_percent": 190.0
  },
  "memory": {
    "total_mb": 2048,
    "used_mb": 1843,
    "available_mb": 205,
    "used_percent": 90.0
  },
  "top_processes": [
    {"user": "node", "cpu_percent": 45.2, "mem_percent": 32.1, "command": "node /usr/bin/openclaw"}
  ],
  "thresholds": {"cpu": 90, "memory": 90},
  "recommendation": "PAUSE"
}

Notes

  1. This skill is an independent monitoring tool and does not rely on Fairy's built-in judgment
  2. The check should be invoked before executing any important tasks
  3. For long-running tasks, a cyclic monitoring mechanism should be established
  4. Threshold parameters can be adjusted according to actual conditions

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

87.36%
按下载量换算2,928

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install system-load-monitor 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills