-
Notifications
You must be signed in to change notification settings - Fork 5
/
conf.ini.sample
90 lines (77 loc) · 1.95 KB
/
conf.ini.sample
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[cmdb]
api = http://cmdb.xxx/api/public.php
ruleapi = http://cmdb.xxx/api/alert.php
iptype = default,disk,cpuload,zabbix自动注册
url = http://cmdb.xxx
[mailserver]
server = localhost
user = monitor
postfix = localhost
passwd = paxxxxxx
[http_mail]
mail_api = http://monitor.com/api/mail
mail_attach = http://monitor.com/api/attachmail
from = [email protected]
; graphviz绘图方向阈值,大于阈值LR,小于阈值TB(或相反)
dir_threshold = 2
build_direction = LEFT_TO_RIGHT
; ini文件中%需要转义, 即 %%
table_attributes = {"style": "width:100%%;border-collapse:collapse;empty-cells:hide", "border": "1"}
linkimg = True
; 是否发送图片
attachimg = False
[send]
; 支持按组织发送 组织=联系人(逗号分隔)不同组织间 | 分隔
mail_suffix = @qq.com
weixin_list = 1=abc,cba|2=ce
sms_list = 1=13000000000,13000000001|2=140000000
; 没有配置组织时发送到下面的邮箱
mailcc_default = abc
[sms]
addr = http://sms.com/message
user_name = username
pass_md5 = password
[weixin]
corpid = coprid
secret = secret
token = token
[folder]
folder_queue = queue
folder_newalert = new
folder_oldalert = old
folder_logs = logs
folder_failed = failed
[dashboard]
url = http://monitor.xxxxxx.cn/dashboard/db/url
app = http://monitor.xxxxxx.cn/dashboard/db/app
server = http://monitor.xxxxxx.cn/dashboard/db/server
dashhome = http://monitor.xxxxxx.cn/
home = http://monitor.xxxxxx.cn:81/
team = 运维组
[ack]
sk = skkjkjidoisjijidjsakofjdksajfkd
acklink = http://127.0.0.1/index.php
acktype = 0
ackinfo = 已收到报警请勿再发
[influxdb]
server = localhost
port = 8086
user =
passwd =
database = alertlog
; misc config
[misc]
name_replace = .xxx.com
debug = True
; 报警自定义阈值
[threshold]
http_499/req_total = http_499_ratio
http_500 = http_500_qps
http_502 = http_502_qps
http_504 = http_504_qps
system.cpu.load = server_cpuload_value
; reduce api接口
[api]
host = 0.0.0.0
port = 8081