360 Secure SkillHub
360 安全技能中心

Gateway Monitor Installer

核心功能:通过预编bash脚本,完成macOS上OpenClaw网关监控(含本地UI服务)与看门狗(网关自动自愈)的安装、更新、状态核验、干净卸载,基于LaunchAgent管理服务,安装操作安全幂等。典型场景:一键部署监控、自动恢复故障网关、检查Launchctl健康、卸载相关服务。输入为执行对应脚本命令,输出服务部署及运行状态反馈

yes999zc
yes999zc
热度 57.39
最近更新 2026-05-18 12:21:16
分类:自动化依赖:代码执行应用场景:自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gateway-monitor-installer
Metadata
name
gateway-monitor-installer
description
Install, update, run, and remove OpenClaw Gateway Monitor + Gateway Watchdog on macOS via LaunchAgent. Use when user asks to deploy one-click monitoring, recover broken gateway daemon automatically, check launchctl health, or uninstall monitor/watchdog services.

Gateway Monitor Installer

Use bundled scripts for deterministic operations.

Runbook

  1. Install or update:
bash scripts/install.sh
  1. Verify status:
bash scripts/status.sh
  1. Uninstall cleanly:
bash scripts/uninstall.sh

What install.sh does

  • Copy monitor and watchdog binaries to ~/.openclaw/tools/gateway-monitor/bin/
  • Render LaunchAgent templates into ~/Library/LaunchAgents/
  • Backup existing plist files to ~/.openclaw/config-backups/
  • Bootstrap + enable + kickstart both agents
  • Run post-install status check

Services

  • ai.openclaw.gateway-monitor → monitor UI server (http://127.0.0.1:18990)
  • ai.openclaw.gateway-watchdog → periodic gateway self-healing check

Notes

  • Re-running install.sh is safe (idempotent)
  • watchdog script expects OpenClaw CLI at /opt/homebrew/bin/openclaw
  • If node path differs, edit assets/bin/gateway-watchdog.sh before install