Gateway Monitor Auto Restart
/install gateway-monitor-auto-restart
Gateway Monitor Auto-Restart Skill
Automatically monitors the OpenClaw gateway status and restarts it if it becomes unresponsive. Features 3-hour checks, smart restart logic, issue diagnosis, and 7-day log rotation.
Description
This skill provides comprehensive monitoring for the OpenClaw gateway with automatic restart capabilities. It includes:
- Health checks every 3 hours
- Smart restart mechanism when gateway is down
- Issue diagnosis when startup fails
- 7-day log rotation system
- Fast recovery system that prioritizes quick gateway restart
Features
- Automatic Monitoring: Checks gateway status every 3 hours
- Smart Restart: Restarts gateway when it becomes unresponsive
- Issue Diagnosis: Identifies and reports startup issues
- Fast Recovery: Prioritizes quick gateway restart
- Log Management: Maintains logs with 7-day rotation
- Error Handling: Gracefully handles "already running" errors
Usage
The skill automatically sets up a cron job that runs the monitoring script every 3 hours. The monitoring system will:
- Check if the gateway is responsive
- If unresponsive, attempt to restart it
- If restart fails, diagnose the issue
- Log all activities with timestamp
- Rotate logs older than 7 days
Requirements
- OpenClaw gateway installed and configured
- Proper permissions to manage gateway service
- Cron access for scheduling checks
Configuration
No additional configuration required. The skill automatically installs the monitoring system with optimal settings.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install gateway-monitor-auto-restart - After installation, invoke the skill by name or use
/gateway-monitor-auto-restart - Provide required inputs per the skill's parameter spec and get structured output
What is Gateway Monitor Auto Restart?
Monitors OpenClaw gateway every 3 hours, auto-restarts if unresponsive, diagnoses startup issues, and rotates logs with 7-day retention. It is an AI Agent Skill for Claude Code / OpenClaw, with 1798 downloads so far.
How do I install Gateway Monitor Auto Restart?
Run "/install gateway-monitor-auto-restart" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Gateway Monitor Auto Restart free?
Yes, Gateway Monitor Auto Restart is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Gateway Monitor Auto Restart support?
Gateway Monitor Auto Restart is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Gateway Monitor Auto Restart?
It is built and maintained by shirley6692026 (@shirley6692026); the current version is v1.0.1.