Skip to Content
العودة إلى السوق

server-agent

Universal production server monitoring, healing, و تقرير skill لcmdop

1تثبيت
v0.1.1
demonick85DevOps & CI/CDcmdop, devops, docker, monitoring, security, self-healing, server3/14/2026

server-agent

CMDOP Skill — install و use via CMDOP agent:

Loading code...

Universal production server monitoring, self-healing, و تقرير skill لcmdop.

Watches over Docker containers, detects anomalies, heals what is safe to heal, scans for vulnerabilities, و writes structured Markdown reports — all driven by the cmdop agent.

Quick Start

Loading code...

Commands

CommandDescription
checkFull health check: containers, disk, Redis. Auto-heals safe issues.
scanSecurity scan: trivy CVEs, open ports, auth logs.
healTargeted remediation for a specific container.
reportWrite structured MD reports (daily, security).
statusQuick server snapshot — no files written.

All commands support --json for structured output و --dry-run to preview actions without executing them.

Environment Variables

VariableRequiredDescription
REPORTS_DIRyesAbsolute path to reports directory
TELEGRAM_BOT_TOKENnoBot token for Telegram notifications
TELEGRAM_CHAT_IDnoTarget chat/channel ID

Autonomy Model

  • SAFE (executes immediately): docker restart, docker system prune
  • ESCALATE (sends Telegram alert): image rebuild, config changes, containers with >2 restarts, OOM
  • NEVER: database commands, rm -rf outside /tmp, firewall changes

Protected containers (never auto-restarted): shared-db-redis, traefik

Setup on Production Server

Loading code...

Two Modes of Operation

Scheduled monitoring (Python CLI)

Triggers call server-agent binary directly. No LLM in the check loop — fast, deterministic, cheap.

Loading code...

Interactive investigation (cmdop skill)

Use when you need the agent to reason about an incident:

Loading code...

The agent reads skill/readme.md as its system prompt و uses server-agent CLI as a tool to gather data و take action.

Reports Structure


$REPORTS_DIR/
index.md
baseline/ports.json
2026-03-14/
10-23-incident-reforms-django.md
14-05-security-scan.md
daily-summary.md

No content available

المراجعات

لا توجد مراجعات بعد.