Files
membank/auto-check/auto-check.yaml
12600k-rog-d4 b673ed62f9 docker
2026-08-24 00:35:30 +08:00

47 lines
1.8 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 配置文件
# 所有参数仅从本文件加载,按分类组织
# --- 网段扫描 ---
scan:
cidr: "10.0.3.0/24"
timeout: 3s
concurrency: 10
# --- SSH 认证 ---
ssh:
user: "admin"
password: "admin123"
key: ""
port: 22
# --- 压力测试 ---
stress:
types: "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=不判定
# --- Docker 镜像(压测统一在容器中执行,工具与脚本预装在镜像里)---
# 固定分发模式:目标机无镜像时,上传本地导出的 tar 并 docker load不依赖 registry
docker_image: "stress-test:latest" # 压测镜像名,镜像维护见 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 热敏纸行宽