تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

server-health

بواسطة muslimalfatih

Coding Agents & IDEs
2.5kالتنزيلات وفق ما يذكره clawskills.sh
1النجوم
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

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط