diagnostics.yaml: diagnostics.enabled = false
启用后将开启后台定时检测(三个定时器,CPU 占用可忽略)。
当前仅保留手动导出功能,自动规则引擎已停止。
| 引擎 | 状态 | 版本 / 详情 |
|---|---|---|
| {{ name }} | {% if info.get('ok') or info.get('available') %} 在线 {% else %} 离线 {% endif %} | {% if info.get('version') %}版本: {{ info.version }}{% endif %} {% if info.get('signature_date') %}· 病毒库: {{ info.signature_date }}{% endif %} {% if info.get('rules_loaded') is not none %}· 规则: {{ info.rules_loaded }}{% endif %} |
| 容器 | 状态 | 健康 | Docker重启 | 历史重启 | 运行时长 |
|---|---|---|---|---|---|
| {{ c.name }} | {% if c.oom_killed %}OOM {% endif %} {{ c.status }} | {% if c.health %} {% if c.health == 'healthy' %}✓ healthy {% elif c.health == 'unhealthy' %}✗ unhealthy {% elif c.health == 'starting' %}… starting {% else %}{{ c.health }}{% endif %} {% else %}—{% endif %} | {% if c.restart_count and c.restart_count > 3 %} {{ c.restart_count }} {% else %} {{ c.restart_count if c.restart_count is not none else '-' }} {% endif %} | {% if c.historical_restart_count and c.historical_restart_count > 0 %} {{ c.historical_restart_count }} {% else %} 0 {% endif %} | {{ c.uptime or '—' }} |
volumes: /var/run/docker.sock:/var/run/docker.sock:rogroup_add: ["999"]