Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

server-health-agent

bởi sanjay-gthb

DevOps & Cloud
629Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Monitor VPS and server health metrics including real-time CPU usage, RAM utilization, disk usage, and Docker.

Mô tả

Kỹ năng này làm gì

Runs read-only system commands to collect CPU usage, RAM utilization, disk capacity, and Docker container status from a VPS or server. Returns structured JSON for use in monitoring workflows or further automation. Gracefully handles environments where Docker access is restricted.

Returns structured JSON directly usable in automation pipelines, avoiding the need to parse unstructured shell output manually.

Khi nào nên dùng

  • Checking server load before a production deploy
  • Diagnosing a slow server during an incident
  • Auditing running Docker containers on a remote VPS
  • Alerting when disk usage approaches capacity limits
  • Running scheduled infrastructure health checks in a CI pipeline

Quy trình ví dụ

ĐẦU VÀO

User asks: What is the current health of my server?

AGENT
  1. 1

    Runs top to capture live CPU utilization

  2. 2

    Reads RAM usage via system-level memory commands

  3. 3

    Checks root filesystem disk usage with df

  4. 4

    Queries the Docker socket for running container status

  5. 5

    Assembles all metrics into a structured JSON response

ĐẦU RA

{"cpu_percent":"12.44","ram_percent":"21.33","disk_usage":"51%","docker_status":"openclaw-openclaw-gateway-1: Up 2 hours"}

Cài đặt

clawhub install sanjay-gthb/server-health-agent

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết