AIGC标识 宝塔面板 + pushplus:系统告警推到微信

宝塔面板 + pushplus:系统告警推到微信

效果:宝塔的面板登录、异常登录、磁盘、证书到期等告警推到微信。

前置条件

配置步骤

  1. 打开宝塔 → 面板设置 → 消息推送 / 告警(部分版本在「软件商店」相关插件里)。
  2. 新增 Webhook 或自定义接口:
    • 请求地址:https://www.pushplus.plus/send
    • 请求方式:POST
    • Content-Type:application/json
  3. 若宝塔允许自定义报文:
{
  "token": "你的token",
  "title": "宝塔面板告警",
  "content": "{{msg}}",
  "template": "txt"
}

把 {{msg}} 换成宝塔提供的告警变量。

  1. 只能填 URL 时:
https://www.pushplus.plus/send?token=你的token&title=宝塔告警&content=请登录宝塔查看
  1. 勾选需要的告警类型(登录、SSH、磁盘、证书等),发送测试。

验证

curl -X POST "https://www.pushplus.plus/send" \
  -H "Content-Type: application/json" \
  -d '{"token":"你的token","title":"宝塔配置测试","content":"token 可用","template":"markdown"}'

常见问题

设置页找不到推送? 不同版本入口不同,在面板设置里搜「告警」「通知」「Webhook」。部分场景可用「计划任务」脚本直接 curl。

登录告警太吵? 只开异常登录、磁盘、证书到期,日常成功登录不必推。

posted @ 2026-09-23 13:07  $("#idea").show();  阅读(27)  评论(0)    收藏  举报