From 1d76c00f66b70ae5015888dd0bd297f744d5e71c Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Thu, 18 Jun 2026 07:17:22 +0800 Subject: [PATCH] =?UTF-8?q?chore(bootstrap):=20=E7=9B=91=E6=8E=A7=E9=98=88?= =?UTF-8?q?=E5=80=BC=E9=99=8D=E8=87=B3=2080%=20+=20=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E5=BF=83=E8=B7=B3(=E4=BB=85=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E5=91=8A=E8=AD=A6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CPU/MEM/DISK 阈值 90/90/85 → 统一 80;MONITOR_SEND_OK_PULSE true → false (默认只在异常时推送,正常不打扰)。同步 init.sh 默认值与 bootstrap.env.example。 Co-Authored-By: Claude Opus 4.8 --- deploy/bootstrap/bootstrap.env.example | 8 ++++---- deploy/bootstrap/init.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deploy/bootstrap/bootstrap.env.example b/deploy/bootstrap/bootstrap.env.example index 5259db3..4b196f6 100644 --- a/deploy/bootstrap/bootstrap.env.example +++ b/deploy/bootstrap/bootstrap.env.example @@ -26,12 +26,12 @@ NODE_NAME="racknerd-la" # 上报间隔(分钟) MONITOR_INTERVAL_MIN=5 # 阈值(百分比);超过即告警 -CPU_ALERT_PCT=90 -MEM_ALERT_PCT=90 -DISK_ALERT_PCT=85 +CPU_ALERT_PCT=80 +MEM_ALERT_PCT=80 +DISK_ALERT_PCT=80 # 要监控存活的 systemd 单元(空格分隔;不存在的会被忽略) MONITOR_UNITS="sing-box pangolin-agent" # 出网连通探测目标 MONITOR_NET_PROBE="https://www.cloudflare.com/cdn-cgi/trace" # 周期性"健康"心跳是否也推送(true=每次都报,false=仅异常时报) -MONITOR_SEND_OK_PULSE=true +MONITOR_SEND_OK_PULSE=false diff --git a/deploy/bootstrap/init.sh b/deploy/bootstrap/init.sh index 1e0b290..fe2e389 100755 --- a/deploy/bootstrap/init.sh +++ b/deploy/bootstrap/init.sh @@ -35,12 +35,12 @@ TELEGRAM_BOT_TOKEN="" TELEGRAM_CHAT_ID="" NODE_NAME="$(hostname)" MONITOR_INTERVAL_MIN=5 -CPU_ALERT_PCT=90 -MEM_ALERT_PCT=90 -DISK_ALERT_PCT=85 +CPU_ALERT_PCT=80 +MEM_ALERT_PCT=80 +DISK_ALERT_PCT=80 MONITOR_UNITS="sing-box pangolin-agent" MONITOR_NET_PROBE="https://www.cloudflare.com/cdn-cgi/trace" -MONITOR_SEND_OK_PULSE=true +MONITOR_SEND_OK_PULSE=false if [ -f "$SCRIPT_DIR/bootstrap.env" ]; then log "读取配置 $SCRIPT_DIR/bootstrap.env"