Install
openclaw skills install li-patrol-2026支持自动检测组件的运维多层级自动巡检,涵盖资源、中间件、容器、日志及业务指标并导出JSON报告。
openclaw skills install li-patrol-2026运维智能巡检系统 - 全方位自动化巡检解决方案
这是一个全面的运维智能巡检系统,支持多层级的自动化巡检,包括基础资源、中间件、容器平台、日志、业务指标等多个维度。系统会自动检测目标环境中已安装的软件和服务,仅对存在的组件进行真实巡检。
python3 intelligent_inspection.py
python3 intelligent_inspection.py --export
# 仅执行基础资源巡检
python3 intelligent_inspection.py --layers resource
# 执行基础资源和中间件巡检
python3 intelligent_inspection.py --layers resource middleware
# 执行所有层级巡检(默认)
python3 intelligent_inspection.py --layers all
================================================================================
智能运维巡检报告
巡检时间: 2026-06-04 09:49:19
主机名: your-hostname
操作系统: Linux 6.8.0-117-generic
================================================================================
执行: 基础资源巡检
健康评分: 100/100
摘要: 系统资源状态良好
✓ CPU使用率
当前值: 2.3%
阈值: P1: >95% | P2: >85%
状态: 正常 | 风险等级: 正常
✓ 内存使用率
当前值: 67.4% (2.55GB/3.78GB)
阈值: P1: >95% | P2: >85%
状态: 正常 | 风险等级: 正常
================================================================================
巡检总结
================================================================================
总体健康评分: 98/100
P1级别问题: 0个
P2级别问题: 1个
系统状态: 优秀 ✓
| 等级 | 名称 | 说明 | 分数影响 |
|---|---|---|---|
| P1 | 严重 | 核心功能不可用,需要立即处理 | -20分 |
| P2 | 警告 | 功能受损或存在风险,需要尽快处理 | -10分 |
| P3 | 提示 | 存在潜在问题,建议处理 | -5分 |
评分等级:
pip install psutil
pip install requests # 用于Elasticsearch检查
系统会自动检测以下中间件,仅对已安装的进行巡检:
使用crontab配置定时巡检:
# 每15分钟执行一次基础资源巡检
*/15 * * * * /usr/bin/python3 /path/to/intelligent_inspection.py --layers resource --export
# 每小时执行一次完整巡检
0 * * * * /usr/bin/python3 /path/to/intelligent_inspection.py --export
根据巡检结果配置告警:
| 文件 | 说明 |
|---|---|
intelligent_inspection.py | 主巡检脚本 |
README.md | 详细巡检文档 |
README_INSPECTION.md | 使用指南 |
skill.json | Skill元数据配置 |
MIT License
@43622283
详细文档请查看: