Files
membank/auto-check/auto-check.yaml
zw@118 5e650491a2 0825
2026-08-25 22:33:33 +08:00

52 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 配置文件
# 所有参数仅从本文件加载,按分类组织
# --- 网段扫描 ---
# 支持两种格式:
# - CIDR: "10.0.3.0/24"
# - IP 范围: "10.0.3.1-10.0.3.100"
scan:
cidr: "10.107.95.2-10.107.95.2"
timeout: 3s
concurrency: 10
# --- SSH 认证 ---
ssh:
user: "admin-pc"
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=不判定
auto_install: true # 缺工具时在线安装apt/dnf/yum 等),需要目标机可联网
use_mirror: false # 在线安装是否切换国内镜像源(清华TUNA)。国内网络卡顿/超时再改 true
# --- Docker 容器化压测 ---
docker:
enabled: true # 启用 Docker 模式(目标机需已安装 Docker如飞牛系统
image: "stress-tools:latest" # 镜像名,支持 registry/xxx:tag
# --- 工作流 ---
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 热敏纸行宽