ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

gateway-watchdog

Monitor OpenClaw Gateway health by detecting abnormal error rates in logs. Use when: (1) setting up Gateway error monitoring, (2) diagnosing repeated API failures (429, quota, timeouts), (3) user asks about Gateway health or error trends, (4) integrating error detection into heartbeat checks. Detects rate-limiting, server errors, auth failures, network errors, and message delivery failures across all channels.

Why use this skill?

Monitor OpenClaw Gateway health with the gateway-watchdog. Automatically detect rate limits, server errors, and network failures before they interrupt your services.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/guoqunabc/gateway-watchdog
Or

What This Skill Does

The gateway-watchdog is an essential diagnostic utility for the OpenClaw ecosystem, designed to monitor the health and performance of the OpenClaw Gateway. By scanning system logs for specific patterns of failure, it provides proactive alerting against service disruptions before they escalate into full-scale outages. It excels at detecting rate-limiting triggers (such as 429 errors), network connectivity issues (ETIMEDOUT, ECONNRESET), server-side instability (5xx codes), and authentication failures across all integrated messaging channels including Telegram, WhatsApp, Discord, Slack, and Signal.

Unlike standard monitoring tools, the watchdog uses smart analysis to track errors per minute rather than just raw counts, allowing it to distinguish between trivial noise and genuine system spikes. It employs a spike detection algorithm that alerts when errors jump beyond a configurable ratio compared to the previous monitoring window, and it identifies error concentration, flagging scenarios where a single fault source accounts for the majority of issues. This ensures you are notified immediately when a silent failure, like an unhandled exception or a drained API quota, begins to impact your operations.

Installation

To install the gateway-watchdog, use the clawhub command-line interface provided in the OpenClaw environment:

clawhub install openclaw/skills/skills/guoqunabc/gateway-watchdog

Once installed, you can configure the watchdog by setting environment variables such as WATCHDOG_THRESHOLD to determine when an alert triggers. For persistent monitoring, we recommend adding the gateway-watchdog.sh check command to your HEARTBEAT.md file, or scheduling it as a recurring task using the OpenClaw cron manager. This ensures your gateway state is audited every 30 minutes, keeping your communication channels running smoothly without requiring manual oversight.

Use Cases

  • Proactive Health Monitoring: Automatically detecting when an API quota is nearing exhaustion to prevent service suspension.
  • Rapid Debugging: Identifying the root cause of connectivity issues by parsing logs for specific network-level errors or protocol timeouts.
  • Integration Stability: Verifying that new channel integrations (e.g., adding a new Feishu bot) are not immediately encountering auth or permission errors.
  • Trend Analysis: Reviewing historical error logs to identify recurring patterns that may coincide with specific times of day or high-traffic spikes.

Example Prompts

  1. "OpenClaw, is the Gateway currently healthy? Run a diagnostic check for any recent error spikes."
  2. "I'm seeing frequent timeouts with my Discord channel. Can you use the gateway-watchdog to check the logs for common network errors?"
  3. "Show me the last 24-hour error trend report for the Gateway to see if we've been hitting any rate limits lately."

Tips & Limitations

  • Threshold Tuning: If you receive too many false positives, increase the WATCHDOG_THRESHOLD variable in your environment configuration.
  • Custom Patterns: Utilize the WATCHDOG_EXTRA_PATTERNS variable to track specific application-level error codes unique to your custom integrations or complex bot logic.
  • State Management: The watchdog relies on local state files. Ensure the OpenClaw user has write permissions to ~/.local/state/gateway-watchdog/ to ensure logs and history remain accurate. Note that this skill does not automatically restart the Gateway; it is strictly an analysis and reporting tool designed to inform the user of necessary manual or automated interventions.

Metadata

Author@guoqunabc
Stars2387
Views0
Updated2026-03-09
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-guoqunabc-gateway-watchdog": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#monitoring#diagnostics#gateway#stability#debugging
Safety Score: 4/5

Flags: file-write, file-read

Related Skills

Feishu Doc Writing

Skill by guoqunabc

guoqunabc 2387

chat-with-l

和小提(L)聊天。小提是朋友 Kid(孙榕)的 OpenClaw AI 助手,运行在 49.232.185.232:18789。使用场景:(1) 主人让雷姆去找小提聊天/传话/打招呼,(2) 提到"小提"、"L"、"Kid"、"孙榕"相关的对话请求。

guoqunabc 2387

feishu-doc-editing

Performance-optimized strategies for editing Feishu (Lark) documents via OpenClaw's feishu_doc tool. Use when: (1) modifying existing Feishu documents, (2) inserting images at specific positions, (3) writing tables or structured content, (4) any multi-block document editing task, (5) writing long documents that may hit API size limits. Provides concrete patterns to minimize API calls and maximize editing speed while preserving existing formatting. Covers: parallel operations, positioned image insertion, large document chunking, rate-limit handling, rich-text preservation, and conflict avoidance. Complements the built-in feishu-doc skill (API reference) with operational best practices.

guoqunabc 2387

browser-zombie-cleaner

Detect and clean up zombie browser processes left by OpenClaw's browser tool. When the OpenClaw Gateway restarts, Playwright-launched browser processes get orphaned and accumulate memory. This skill identifies them safely and optionally terminates them. Use when: memory is high, browser processes are piling up, or as part of periodic health checks.

guoqunabc 2387

飞书文档可读性优化

飞书文档格式优化与安全修改规范。**必须在通过MCP修改任何mi.feishu.cn文档之前加载此skill**。包括最小修改原则、富文本保护、段落间距、加粗规范。触发条件:用户要求修改飞书文档内容或格式,涉及mi.feishu.cn域名,或调用小米飞书MCP的update-doc工具。

guoqunabc 2387