Abdullah AlRashoudi

OpenClaw Watch Dog

IT運用・セキュリティv1.3.0
作者:Abdullah AlRashoudi更新日 2026-05-17全 14 バージョン · 最新版の公開日 2026-02-19openclaw-watchdog@clawhub_abdullah4ai/openclaw-watchdog
監視・アラートサーバー運用障害対応#Telegram

AlphaMoatによると、2026-09時点でOpenClaw Watch Dogのダウンロード数は3,568、スター数は2で、AIスキル全体5,078件中3,065位、IT運用・セキュリティでは264件中194位です。

インストール数
129
ダウンロード数
3568
スター数
2
総合順位
#3,065
全体の上位 61% · IT運用・セキュリティの上位 74%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗11334922-
SkillHub ↗12935682—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

ゲートウェイの状態を確認し、障害時に自動再起動を試み、利用者のTelegramボットへ通知します。診断とログ分析は端末内で行われます。導入すると常駐するユーザーレベルのサービスが作成され、ゲートウェイを再起動したりTelegram認証情報を保持したりする場合があります。継続監視が必要な場合だけ有効にし、設定後にサービス状態とログを確認して、必要な認証情報だけを設定してください。

資料公開日 2026-10-29

できること

  • OpenClawゲートウェイの状態を監視する
  • 障害後に再起動しTelegram通知を送る
  • ローカル診断やログを確認する

使う場面

  • 利用者がゲートウェイ監視や自動復旧を明示的に依頼したとき
  • 常駐するユーザーレベルのサービスが必要なとき
  • Telegram認証情報を安全に管理し、サービスログを確認できるとき

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

watchdogが導入する常駐サービス、必要なTelegram認証情報、ゲートウェイを再起動する条件を説明してください。インストールは私の確認を待ってください。

月次の推移

ダウンロード数3568
2126290136752026-03 · ダウンロード数 22332026-05 · ダウンロード数 28762026-06 · ダウンロード数 30212026-07 · ダウンロード数 32742026-08 · ダウンロード数 33922026-09 · ダウンロード数 356826-0326-09
スター数2
1232026-03 · スター数 22026-05 · スター数 22026-06 · スター数 22026-07 · スター数 22026-08 · スター数 22026-09 · スター数 226-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-093568—2
2026-083392+3.6%2
2026-073274+8.4%2
2026-063021+5.0%2
2026-052876—2
2026-032233—2

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

4.1 KB・ClawHub v1.3.0
---
name: openclaw-watchdog
description: Self-healing monitoring system for OpenClaw gateway. Auto-detects failures, fixes crashes, and sends Telegram alerts.
homepage: https://github.com/Abdullah4AI/openclaw-watchdog
metadata: {"openclaw":{"emoji":"🐕","disableModelInvocation":true,"requires":{"bins":["python3","openssl"],"env":["TELEGRAM_TOKEN","TELEGRAM_CHAT_ID"]},"install":[{"id":"setup","kind":"script","script":"scripts/setup.sh","label":"Install watchdog service (LaunchAgent/systemd user)","persistence":"user-level","service":true}]}}
---

# openclaw-watchdog

**Description:** Self-healing monitoring system for OpenClaw gateway. Monitors health, auto-restarts on failure, and sends Telegram alerts. Diagnostics and log analysis run locally on-device. Alert notifications are sent to the user's Telegram bot. Use when user wants to set up gateway monitoring, watchdog, or auto-recovery.
すべて表示(全 104 行)

## Prerequisites
- **Telegram Bot Token** — Create via [@BotFather](https://t.me/BotFather)
- **Telegram Chat ID** — Your personal chat ID for receiving alerts
- **Python 3** — Required for the watchdog service
- **OpenClaw** — Installed and running

## Trigger Keywords
- watchdog, monitoring, auto-fix, gateway health, self-healing, auto-recovery, watch dog

## Setup

Send the user ONE message with everything they need:

---

🐕 **Watch Dog — Self-Healing Gateway Monitor**

Watch Dog is a background service that pings your OpenClaw gateway every 15 seconds. If the gateway goes down, it automatically attempts to restart it and sends you Telegram alerts so you're always in the loop. All diagnostics run locally on your device.

To set it up, I need:

1. **Telegram Bot Token** — Create a bot via [@BotFather](https://t.me/BotFather) on Telegram, then send me the token (looks like `123456:ABC-DEF...`)

2. **Your Telegram Chat ID** — Send `/start` to your bot, then visit `https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates` to find your chat ID

Send me the token and chat ID and I'll handle the rest (including a test run to make sure everything works)!

---

## After Receiving Credentials

Run these steps in order:

### 1. Validate credentials
```bash
python3 ~/.openclaw/workspace/openclaw-watchdog/scripts/validate.py "$TELEGRAM_TOKEN"
```

### 2. Run setup script
```bash
chmod +x ~/.openclaw/workspace/openclaw-watchdog/scripts/setup.sh
~/.openclaw/workspace/openclaw-watchdog/scripts/setup.sh \
  --telegram-token "$TELEGRAM_TOKEN" \
  --telegram-chat-id "$TELEGRAM_CHAT_ID" \
  --gateway-port "$GATEWAY_PORT"  # optional, auto-detected from openclaw.json
```

### 3. Connect via Telegram (Pairing)
```bash
python3 ~/.openclaw/workspace/openclaw-watchdog/scripts/test-message.py "$TELEGRAM_TOKEN" "$TELEGRAM_CHAT_ID"
```
Wait for user to confirm they received the Telegram message before proceeding.

### 4. Verify it's running
```bash
# Check service status
if [[ "$(uname)" == "Darwin" ]]; then
  launchctl list | grep openclaw.watchdog
else
  systemctl --user status openclaw-watchdog
fi

# Check logs
tail -20 ~/.openclaw/watchdog/watchdog.log
```

### 5. Confirm to user
Tell them Watch Dog is active, what it monitors, and that they'll get Telegram alerts if anything goes wrong.

## How It Works

- Pings gateway health endpoint every 15 seconds (auto-detects port from config, or set via `--gateway-port`)
- After 3 consecutive failures, attempts `openclaw gateway restart`
- Up to 2 restart attempts, then asks user for reinstall permission via Telegram
- User approves by running: `touch ~/.openclaw/watchdog/approve-reinstall`
- Without approval, only sends notifications — no destructive actions
- Local pattern-matching diagnostics (no logs sent externally)
- Runs as macOS LaunchAgent or Linux systemd user service
- Credentials encrypted with AES-256 using machine-specific key

## Uninstall
```bash
if [[ "$(uname)" == "Darwin" ]]; then
  launchctl unload ~/Library/LaunchAgents/com.openclaw.watchdog.plist 2>/dev/null
  rm -f ~/Library/LaunchAgents/com.openclaw.watchdog.plist
else
  systemctl --user stop openclaw-watchdog 2>/dev/null
  systemctl --user disable openclaw-watchdog 2>/dev/null
  rm -f ~/.config/systemd/user/openclaw-watchdog.service
fi
rm -rf ~/.openclaw/watchdog
```

IT運用・セキュリティの人気スキル

Abdullah AlRashoudiのその他のスキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。