面向OpenClaw Agent用户的运维管理工具。与OpenClaw生态深度绑定。
功能等级脚本说明Agent健康检查免费scripts/health_check.py检查Agent运行状态、会话健康、配置有效性日志分析免费scripts/log_analyzer.py分析OpenClaw日志,提取错误/警告/异常性能监控免费scripts/perf_monitor.py系统资源、Agent响应时间、会话统计配置优化付费scripts/config_optimizer.py分析配置并提供优化建议自动化告警付费scripts/alert_manager.py设置阈值告警规则多Agent协调付费scripts/multi_agent_coordinator.py多Agent间依赖与协调分析故障诊断付费scripts/diagnostic.py根因分析与故障定位性能报告付费scripts/perf_report.py生成综合性能报告
bash
# 检查OpenClaw服务状态
python3 scripts/health_check.py --check service
# 检查Agent会话状态
python3 scripts/health_check.py --check session
# 检查配置有效性
python3 scripts/health_check.py --check config
# 全面检查
python3 scripts/health_check.py --check all
# JSON输出
python3 scripts/health_check.py --check all --json
bash
# 分析默认位置的OpenClaw日志
python3 scripts/log_analyzer.py
# 分析指定日志文件
python3 scripts/log_analyzer.py --log-file /path/to/logfile
# 按级别过滤
python3 scripts/log_analyzer.py --level error
# 输出JSON
python3 scripts/log_analyzer.py --json
# 按时间段分析
python3 scripts/log_analyzer.py --since "2024-01-01" --until "2024-01-31"
bash
# 当前性能快照
python3 scripts/perf_monitor.py
# 持续监控(每30秒采样)
python3 scripts/perf_monitor.py --watch 30
# JSON输出
python3 scripts/perf_monitor.py --json
bash
python3 scripts/config_optimizer.py
# 分析指定配置文件
python3 scripts/config_optimizer.py --config-file ~/.openclaw/openclaw.json
# 输出优化建议为Markdown
python3 scripts/config_optimizer.py --format markdown
bash
# 列出当前告警规则
python3 scripts/alert_manager.py --action list
# 添加CPU使用率告警
python3 scripts/alert_manager.py --action add --metric cpu --threshold 90 --operator gt
# 添加内存告警
python3 scripts/alert_manager.py --action add --metric memory --threshold 80 --operator gt
# 检查当前是否触发告警
python3 scripts/alert_manager.py --action check
bash
# 分析Agent依赖关系
python3 scripts/multi_agent_coordinator.py --action dependencies
# 查看Agent拓扑
python3 scripts/multi_agent_coordinator.py --action topology
# 检查冲突
python3 scripts/multi_agent_coordinator.py --action conflicts
bash
python3 scripts/diagnostic.py
# 诊断特定问题
python3 scripts/diagnostic.py --issue "session_timeout"
python3 scripts/diagnostic.py --issue "high_memory"
bash
python3 scripts/perf_report.py
# 生成指定时间范围报告
python3 scripts/perf_report.py --period 7d
# 输出到文件
python3 scripts/perf_report.py --output report.md
references/openclaw_config_reference.mdreferences/metrics_reference.mdreferences/troubleshooting.md