openclaw-watchdog by abdullah4ai/openclaw-watchdog
npx skills add https://github.com/abdullah4ai/openclaw-watchdog --skill openclaw-watchdog描述: OpenClaw 网关的自愈监控系统。监控运行状况,在故障时自动重启,并发送 Telegram 警报。诊断和日志分析在设备本地运行。警报通知会发送到用户的 Telegram 机器人。当用户想要设置网关监控、看门狗或自动恢复时使用。
向用户发送一条包含他们所需所有信息的消息:
🐕 Watch Dog — 自愈网关监控器
Watch Dog 是一个后台服务,每 15 秒 ping 一次您的 OpenClaw 网关。如果网关宕机,它会自动尝试重启并发送 Telegram 警报,让您随时掌握情况。所有诊断都在您的设备本地运行。
要设置它,我需要:
Telegram 机器人令牌 — 在 Telegram 上通过 @BotFather 创建一个机器人,然后发送令牌给我(格式类似 123456:ABC-DEF...)
您的 Telegram 聊天 ID — 向您的机器人发送 /start,然后访问 来查找您的聊天 ID
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates发送令牌和聊天 ID 给我,剩下的我来处理(包括进行测试运行以确保一切正常)!
按顺序运行以下步骤:
python3 ~/.openclaw/workspace/openclaw-watchdog/scripts/validate.py "$TELEGRAM_TOKEN"
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"
python3 ~/.openclaw/workspace/openclaw-watchdog/scripts/test-message.py "$TELEGRAM_TOKEN" "$TELEGRAM_CHAT_ID"
等待用户确认他们收到了 Telegram 消息,然后再继续。
# 检查服务状态
if [[ "$(uname)" == "Darwin" ]]; then
launchctl list | grep openclaw.watchdog
else
systemctl --user status openclaw-watchdog
fi
# 检查日志
tail -20 ~/.openclaw/watchdog/watchdog.log
告诉他们 Watch Dog 已激活,它监控什么,以及如果出现问题他们会收到 Telegram 警报。
localhost:3117/healthopenclaw gateway restarttouch ~/.openclaw/watchdog/approve-reinstallif [[ "$(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
每周安装次数
115
仓库
GitHub 星标数
3
首次出现
2026年2月11日
安全审计
已安装于
openclaw105
opencode98
gemini-cli96
codex95
github-copilot94
kimi-cli93
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.
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:
Telegram Bot Token — Create a bot via @BotFather on Telegram, then send me the token (looks like 123456:ABC-DEF...)
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)!
Run these steps in order:
python3 ~/.openclaw/workspace/openclaw-watchdog/scripts/validate.py "$TELEGRAM_TOKEN"
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"
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.
# 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
Tell them Watch Dog is active, what it monitors, and that they'll get Telegram alerts if anything goes wrong.
localhost:3117/health every 15 secondsopenclaw gateway restarttouch ~/.openclaw/watchdog/approve-reinstallif [[ "$(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
Weekly Installs
115
Repository
GitHub Stars
3
First Seen
Feb 11, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykFail
Installed on
openclaw105
opencode98
gemini-cli96
codex95
github-copilot94
kimi-cli93
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
125,100 周安装