-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfig
174 lines (123 loc) · 2.74 KB
/
config
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
*** General ***
owner = X
contact = some@address.nowhere
mailhost = my.mail.host
imgcache = /usr/local/smokeping/htdocs/cache
imgurl = cache
datadir = /usr/local/smokeping/htdocs/data
piddir = /usr/local/smokeping/htdocs/var
cgiurl = http://some.url/smokeping.cgi
smokemail = /usr/local/smokeping/etc/smokemail.dist
tmail = /usr/local/smokeping/etc/tmail.dist
syslogfacility = local0
*** Alerts ***
to = alertee@address.somewhere
from = smokealert@company.xy
+someloss
type = loss
pattern = >0%,*12*,>0%,*12*,>0%
comment = loss 3 times in a row
*** Database ***
step = 10
pings = 5
AVERAGE 0.5 1 1008
AVERAGE 0.5 12 4320
MIN 0.5 12 4320
MAX 0.5 12 4320
AVERAGE 0.5 144 720
MAX 0.5 144 720
MIN 0.5 144 720
*** Presentation ***
template = /usr/local/smokeping/etc/basepage.html.dist
charset = utf-8
+ overview
width = 600
height = 200
range = 24h
+ detail
width = 600
height = 200
unison_tolerance = 2
"Last 5 Minutes" 5m
"Last 10 Minutes" 10m
"Last 30 Minutes" 30m
"Last 1 Hour" 1h
"Last 3 Hours" 3h
"Last 24 Hours" 24h
"Last 3 Days" 3d
"Last 7 Days" 7d
"Last 30 Days" 30d
"Last 1 Year" 1y
*** Probes ***
+ TCPPing
binary = /usr/bin/tcpping-sp
forks = 5
offset = 50%
step = 10
timeout = 5
*** Slaves ***
secrets=/usr/local/smokeping/etc/smokeping_secrets.dist
+ SLAVE_CODE
display_name = SLAVE_NAME
location = SLAVE_NAME
color = 0000ff
*** Targets ***
probe = TCPPing
menu = Top
title = Network Latency Grapher
remark = Welcome to this SmokePing website. <br />
+ mainland
menu = 大陆方向
title = 大陆方向
nomasterpoll = yes
host = /mainland/ct-gz~SLAVE_CODE /mainland/ct-sh~SLAVE_CODE /mainland/cu-gz~SLAVE_CODE /mainland/cu-sh~SLAVE_CODE /mainland/cm-gz~SLAVE_CODE /mainland/cm-sh~SLAVE_CODE
++ ct-gz
menu = 广州电信
title = 广州电信
slaves = SLAVE_CODE
host = 14.215.116.1
++ ct-sh
menu = 上海电信
title = 上海电信
slaves = SLAVE_CODE
host = 180.153.28.5
++ cu-gz
menu = 广州联通
title = 广州联通
slaves = SLAVE_CODE
host = 157.255.70.5
++ cu-sh
menu = 上海联通
title = 上海联通
slaves = SLAVE_CODE
host = 211.95.52.116
++ cm-gz
menu = 广州移动
title = 广州移动
slaves = SLAVE_CODE
host = 120.232.176.254
++ cm-sh
menu = 上海移动
title = 上海移动
slaves = SLAVE_CODE
host = 221.183.55.22
+ global
menu = 国际方向
title = 国际方向
nomasterpoll = yes
host = /global/cf~SLAVE_CODE /global/hk-pccw~SLAVE_CODE /global/sg-vu~SLAVE_CODE
++ cf
menu = Cloudflare
title = Cloudflare
slaves = SLAVE_CODE
host = www.cloudflare.com
++ hk-pccw
menu = 香港 PCCW
title = 香港 PCCW
slaves = SLAVE_CODE
host = 63.216.151.43
++ sg-vu
menu = 新加坡 Vultr
title = 新加坡 Vultr
slaves = SLAVE_CODE
host = 45.32.100.168