Echobell

UptimeRobot 集成 - 云端网站监控警报

将 UptimeRobot 与 Echobell 集成以获取网站监控即时通知的完整指南。通过 Webhook 集成接收宕机警报、SSL 证书过期和服务器响应时间问题的移动推送通知或电话提醒。

UptimeRobot 是一个流行的正常运行时间监控服务。您可以使用 Webhook 将其与 Echobell 集成。

创建频道

在 Echobell 中创建一个新频道并复制 Webhook URL

添加警报联系人

  1. 登录 UptimeRobot。
  2. 转到 My Settings
  3. 滚动到 Alert Contacts 并点击 Add Alert Contact
  4. 选择 Web-Hook 作为 Alert Contact Type。
  5. Friendly Name 设置为 "Echobell"。
  6. 将您的 Echobell Webhook URL 粘贴到 URL to Notify 中。
  7. 启用 Send as JSON

配置 Payload

将以下 JSON 粘贴到 Post Value (JSON Format) 字段中:

{
  "monitorName": "*monitorFriendlyName*",
  "alertType": "*alertType*",
  "details": "*alertDetails*",
  "url": "*monitorURL*"
}
  • *alertType*: 1 表示宕机,2 表示恢复。

配置 Echobell 模板

在您的 Echobell 频道设置中,您可以使用表达式来处理警报类型:

标题模板:

Monitor {{monitorName}} is {{alertType == "1" ? "DOWN" : "UP"}}

正文模板:

{{details}}
URL: {{url}}