feat: 飞牛NAS成本审核更新 - 新增SKU、更新价格表、清理归档及订单记录,同步auto-check改动

This commit is contained in:
12600k-rog-d4
2026-08-27 00:44:44 +08:00
parent bde60dbea0
commit a172a9bb5e
82 changed files with 1804 additions and 1180 deletions

View File

@@ -1,5 +1,10 @@
echo '===MONITOR:dmesg==='
DMESG_ERR=$(dmesg --level=err,crit,alert,emerg 2>/dev/null | tail -30 || true)
# -T 输出人类可读时间戳(如 [Mon Aug 24 10:23:45 2026]
# 依赖挂载宿主机 /etc/localtime 保证时区正确;老内核不支持 -T 时回退
DMESG_ERR=$(dmesg -T --level=err,crit,alert,emerg 2>/dev/null | tail -30)
if [ -z "$DMESG_ERR" ]; then
DMESG_ERR=$(dmesg --level=err,crit,alert,emerg 2>/dev/null | tail -30 || true)
fi
if [ -n "$DMESG_ERR" ]; then
echo 'status:fail'
echo "output:${DMESG_ERR}"

View File

@@ -4,6 +4,11 @@
# 系统信息 → 温度监控启动 → 各项压测(先单项、后综合)→ 温度监控收尾 → 内核日志
set -e
# 统一 UTF-8 locale否则 sensors 输出 "+51.0 C"(无 ° 符号),
# 脚本中 (?=°C) 的温度正则会全部失配,导致温度采集不到
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
# 默认值docker -e 传入时覆盖)
export AUTOCHECK_TYPES="${AUTOCHECK_TYPES:-cpu,memory}"
export AUTOCHECK_DURATION="${AUTOCHECK_DURATION:-30}"