Files
membank/auto-check/auto-check.yaml
张威33321 a8fa159f0f chore: 同步本地更改
- 新增 aio-mcp 项目框架
- 新增 .trae/skills/ OCR/SKU 设计工具
- 更新 auto-check 配置和 stress 包
- 删除 fnhelp 文档目录
- 更新 Docker 压力测试脚本
2026-08-27 20:38:13 +08:00

63 lines
2.9 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# auto-check 配置文件
# 所有参数仅从本文件加载,按分类组织
# --- 网段扫描 ---
# 支持两种格式:
# - CIDR: "10.0.3.0/24"
# - IP 范围: "10.0.3.1-10.0.3.100"
scan:
cidr: "10.0.3.148-10.0.3.148"
timeout: 3s
concurrency: 10
# --- SSH 认证 ---
ssh:
user: "admin"
password: "admin123"
key: ""
port: 22
# --- 压力测试 ---
stress:
# fnstablefnscript 社区稳定性脚本)放在最前作门禁:先检测硬件真实稳定性,
# 通过后自有压测再跑一遍出报告;未通过则自有压测全部跳过
types: "fnstable,cpu,memory,disk,full" # 单项在前、综合(full)最后
duration: 30s
threads: 4
mem_size_mb: 0 # 内存压测占用(MB)0=自动(可用内存60%)
disk_size_mb: 1024 # 磁盘压测文件大小(MB)
disk_dir: "" # 磁盘压测目录,空=自动临时目录
temp_interval: 10s # 温度采样间隔
temp_limit: 90 # 温度上限(°C)超过判失败0=不判定
fn_memory: true # fnstable 门禁的 memtester 内存校验可用内存97%单遍,
# 耗时 30-120 分钟按内存大小定false=仅 CPU 门禁,快速出报告)
# --- Docker 镜像(压测统一在容器中执行,工具与脚本预装在镜像里)---
# 固定分发模式:目标机无镜像时,上传本地导出的 tar 并 docker load不依赖 registry
docker_image: "stress-test:20260824-144244" # 压测镜像名,镜像维护见 docker/stress-test/
docker_tar: "docker/stress-test/stress-test.tar" # 本地镜像文件docker save -o 导出)
docker_args: "--network=host --privileged" # Docker 运行参数,--privileged 可访问完整资源
# --- 工作流 ---
workflow:
interval: 180s
# --- 报告与打印 ---
report:
path: "reports"
print:
enabled: false # 是否自动打印报告
backend: "usb" # system=系统打印机 / escpos=网络热敏 / usb=USB直连 / file=文件
device: "" # system: 打印机名(空=默认), escpos: 192.168.1.100:9100
# usb: 空=自动(Win \\.\usb001 / Linux /dev/usb/lp0), 或指定设备路径
# file: 输出路径
width: 42 # 80mm 热敏纸行宽
html:
base_url: "" # HTML 报告访问基地址(如 http://192.168.1.10:8080扫码链接会拼接到此地址
# 留空则只保存到本地(打印时仅提示本地路径)
path: "" # HTML 保存目录,留空 = 与 txt 报告同目录
filename: "report-{mac}-{ip}-{ts}.html" # 文件名模板
qr_url: "" # 二维码 URL 模板,支持 {filename} {mac} {ip} {ts} 占位
# 例: "http://192.168.1.10:8080/reports/{filename}"
# 留空时自动用 base_url + 实际文件名拼接