-
Notifications
You must be signed in to change notification settings - Fork 0
/
_disk_notify_global.example
60 lines (41 loc) · 1.68 KB
/
_disk_notify_global.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
### disk_notify config file
### vi: se ft=sh :
### --------- backends
## choose a push_backend and set related settings
push_backend='pushplus'
pushplush_token='your pushplus token here'
pushplush_topic='disk_notify'
## https://www.pushplus.plus/push1.html
push_backend='wxpusher'
wxpusher_spt='your wxpusher SPT here'
## https://wxpusher.zjiecode.com/docs/#/?id=spt
push_backend='serverchan'
serverchan_sendkey='your serverChan sendKey here'
## https://sct.ftqq.com/sendkey
push_backend='telegram'
TELEGRAM_BOT_TOKEN='your telegram bot token here'
TELEGRAM_CHAT_ID='your chat id here'
## https://core.telegram.org/bots/tutorial
push_backend='feishu'
FEISHU_BOT_TOKEN='your feishu bot token (uuid) here'
## don't turn on signature
## https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot#42b6d092
push_backend='dingtalk'
DINGTALK_BOT_TOKEN='your dingtalk bot token (uuid) here'
## don't turn on signature
## https://open.dingtalk.com/document/orgapp/obtain-the-webhook-address-of-a-custom-robot
push_backend='wework'
WEWORK_BOT_KEY='your wework bot key (uuid) here'
## note: can't send msg to wechat
## https://developer.work.weixin.qq.com/document/path/99110
## backend can set multi channels now
push_backend='wxpusher pushplus'
### --------- settings
# push_delay=30 # push interval (will adjusted dynamically)
# send_log='send_hist.log'
# disk_log='disk_hist.log'
# save_interval=$((1 * 3600)) # 1 hour (adjust as needed)
# check_interval=300 # 5 min
### ---------- template for title & content
# temp_tit='${hostname} ${mount_point} Low Disk Space Warning'
# temp_msg='Available space on ${mount_point} is ${avail_gb}GB, which is below the ${threshold_gb}GB threshold.'