跳到正文
TakoAPI
返回技能列表

server-health

由 muslimalfatih 提供

Coding Agents & IDEs
2.5k下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Comprehensive server health monitoring showing system stats, top processes, OpenClaw gateway status, and running.

描述

该技能的功能

A bash script that reports system health across four output modes: standard, verbose, JSON, and alerts-only. Covers CPU, RAM, disk, top processes by resource use, OpenClaw gateway status and config, and running service states.

Combines system stats, process inspection, gateway status, and service checks into one script run instead of chaining multiple commands manually.

何时使用

  • Checking server load before deploying a new release
  • Spotting runaway processes eating CPU or RAM
  • Verifying all required services are up after a reboot
  • Piping JSON output into an external monitoring or alerting script
  • Getting a quick OpenClaw gateway status and active session count

示例工作流

输入

User asks: what is the current state of the server?

智能体
  1. 1

    Runs ./server-health.sh to collect system metrics

  2. 2

    Reads CPU, RAM, and disk usage percentages from output

  3. 3

    Checks OpenClaw gateway PID, uptime, port, and active session count

  4. 4

    Lists running services including Docker container count and PostgreSQL status

  5. 5

    Returns a formatted summary to the user

输出

CPU at 42%, RAM at 18%, disk at 45%, OpenClaw running on port 18789 with 3 active sessions, Docker and PostgreSQL healthy

安装

clawhub install muslimalfatih/server-health

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接