Self-Monitoring Health Daemon for OpenClaw

Proactive health monitoring system that checks OpenClaw gateway status, memory, CPU, subagents, and auto-restarts on critical failure with daily restart limits.

Proactive health monitoring system that checks OpenClaw gateway status, memory, CPU, subagents, and auto-restarts on critical failure with daily restart limits. Monitors itself, creating an ironic but effective self-healing system. By checking health every 60 seconds and auto-restarting the gateway on critical failures with restart throttling, it prevents cascading failures.

Where it applies: OpenClaw gateway monitoring, self-healing infrastructure, daemon reliability patterns

Why it works: The daemon monitors itself, creating an ironic but effective self-healing system. By checking health every 60 seconds and auto-restarting the gateway on critical failures with restart throttling, it prevents cascading failures. The system is its own guardian angel.

Risks: Restart throttling must be carefully tuned - too aggressive and it masks real issues, too conservative and it does not prevent crash loops. Also requires the openclaw command to be available in PATH.

{category>transferable}