Install
openclaw skills install dhawala-mission-controlCLI-first system health aggregator for autonomous AI agents. Query all agent processes, resources, cron jobs, and services in one shot. Use when a user asks...
openclaw skills install dhawala-mission-controlSingle-command health aggregator for autonomous AI infrastructure. Replaces checking 5+ separate tools by collecting agent status, resource health, cron jobs, and service state into one report.
Designed for operators running autonomous agents (OpenClaw daemons, AOMS, VPS workers) who need a fast answer to "is everything OK?"
restart mutates state and requires confirmation.--json output when piping to other tools or storing results.mctl status for the full picture.bash scripts/mctl.sh status
Returns: agents, resources (CPU/RAM/disk/GPU), cron jobs, services, OpenClaw status.
bash scripts/mctl.sh agents
Detects running processes matching: openclaw daemon, openclaw gateway, and any process with "agent", "daemon", "worker", or "aoms" in its name. Shows PID and uptime.
bash scripts/mctl.sh health
CPU count, load average, RAM usage, disk usage, NVIDIA GPU (if present). Color-coded thresholds:
bash scripts/mctl.sh cron
Lists OpenClaw cron jobs via openclaw cron list.
bash scripts/mctl.sh services
Checks systemd status for openclaw-gateway and openclaw-daemon. Also shows listening ports.
bash scripts/mctl.sh logs [service-name]
Shows last 50 lines from the past hour for a systemd service. Defaults to openclaw-daemon.
bash scripts/mctl.sh restart <service-name>
Restarts a systemd service. Requires sudo. Always confirm with the user before running.
Add --json to any command for machine-readable output:
bash scripts/mctl.sh --json status
User: "How's the system?"
Agent: runs `mctl status` and summarizes findings
User: "Why is my daemon slow?"
Agent: runs `mctl health` to check resources, then `mctl logs openclaw-daemon`
User: "Is everything healthy before I deploy?"
Agent: runs `mctl --json status`, checks for red flags, gives go/no-go
# Add to openclaw cron for daily checks
openclaw cron add --name "mission-control:daily" \
--schedule "0 8 * * *" \
--command "bash ~/.openclaw/skills/mission-control/scripts/mctl.sh --json status > /tmp/mctl-status.json"
| Check | Source | Threshold |
|---|---|---|
| Agent processes | pgrep | Any running = green |
| CPU load | /proc/loadavg | >CPUs = yellow |
| RAM | free -m | >80% = red |
| Disk | df -h / | >85% = red |
| GPU/VRAM | nvidia-smi | Optional |
| Cron | openclaw cron list | Shows schedule |
| Services | systemctl | active/failed |
| Ports | ss -ltnp | Informational |
No external dependencies. Requires:
nvidia-smi for GPU, openclaw CLI for cron/status# Install via ClawHub
clawhub install mission-control
# Or manually
cp -r . ~/.openclaw/skills/mission-control/
chmod +x ~/.openclaw/skills/mission-control/scripts/mctl.sh
Works with the existing OpenClaw ecosystem:
| Feature | mission-control (this) | mission-control-dashboard |
|---|---|---|
| Interface | CLI / agent skill | Web UI (browser) |
| Use case | Quick status queries | Visual monitoring |
| Dependencies | Bash only | Python 3.8+ |
| Real-time | On-demand | Polling dashboard |
| Best for | AI agent queries | Human visual monitoring |
Use both together: this skill for agent-driven checks, the dashboard for visual monitoring.
Built for autonomous infrastructure operations.
Free on ClawHub
#monitoring #agents #health #cli #devops #automation #infrastructure #status
MIT