Files
Nexus/docs/changelog/2026-06-07-health-monitor-telegram-quote-strip.md
T
2026-07-08 22:31:31 +08:00

648 B
Raw Blame History

Changelog — health_monitor Telegram 引号剥离

日期: 2026-06-07

摘要

修复 health_monitor.sh 从容器 /app/.env 读取带引号的 NEXUS_TELEGRAM_* 时未剥离引号,导致 Telegram API 404、Layer 3 告警静默失败。

动机

模拟巡检演练中 docker restart 成功但用户未收到 Telegram。生产诊断:quoted token → HTTP 404strip 引号后 → HTTP 200。

涉及文件

  • deploy/health_monitor.shnormalize_env_valuesend_telegram 使用 --data-urlencode 并记录失败日志

验证

生产 curl 对比 quoted vs stripped;部署后 send_telegram 测试消息。