Skip to content

Commit 44656e5

Browse files
authored
更改watchdog callback说明
更改watchdog callback说明
1 parent 78c7da7 commit 44656e5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,13 @@ cd ServerStatus/server && make
5858

5959
#### 二、修改配置文件
6060
```diff
61-
! 修改config.json文件,注意username, password的值需要和客户端对应一致。
6261
! watchdog rule 可以为任何已知字段的表达式。
63-
! watchdog interval 最小通知间隔。
62+
! watchdog interval 最小通知间隔。
63+
! watchdog callback 可自定义为Get方法的URL,告警内容将拼接其后并发起回调。
64+
6465
! watchdog callback Telegram:https://api.telegram.org/bot你自己的密钥/sendMessage?parse_mode=HTML&disable_web_page_preview=true&chat_id=你自己的标识&text=
6566
! watchdog callback Server酱: https://sctapi.ftqq.com/你自己的密钥.send?title=ServerStatus&desp=
66-
! watchdog callback PushDeer: https://api2.pushdeer.com/message/push?pushkey=你自己的密钥&text=
67+
! watchdog callback PushDeer: https://api2.pushdeer.com/message/push?pushkey=你自己的密钥&text=
6768
```
6869

6970
```

0 commit comments

Comments
 (0)