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
= "./log/tickChecker.log"
= true
= "./log/timer.log"
# log level
= "debug"
= 30
# mb
= 50
# zero is cpu nums
= 0
[[]]
= 1
= "httpAction"
# http or ping or tcp or tcp_tls or websocket
= "http"
# http : http://www.baidu.com or https://www.baidu.com ,check use get method
# ping : 192.168.1.1
# tcp : 192.168.1.75:80
# tcp_tls : 192.168.1.75:443
# websocket : http://192.168.1.75/ws (only upgrade)
= "http://www.baidu.com"
= true
= true
= 10000
# failed count do action
= 2
# failed do action, http or command
= "http"
# http method get only
= "http://www.163.com/abc?a=1"
# recover do action, http or command
= "http"
= "http://www.163.com/abc?a=2"
# wait loop, 毫秒
= -1
# tick
= 60000
[[]]
= 2
= "pingAction"
# http or ping or tcp or tcp_tls or websocket
= "ping"
# http : http://www.baidu.com or https://www.baidu.com
# ping : 192.168.1.1
# tcp : 192.168.1.75:80
# tcp_tls : 192.168.1.75:443
# websocket : http://192.168.1.75/ws (only upgrade)
= "192.168.1.75"
= true
= true
= 2000
# failed count do action
= 2
# failed do action, http or command
= "command"
# http method get only
= 'echo "ping failed ip: {target}"'
# recover do action, http or command
= "command"
= 'echo "recover ping ip: {target}"'
# wait loop, 毫秒
= -1
# tick
= 60000
[[]]
= 3
= "tcpAction"
# http or ping or tcp or tcp_tls or websocket
= "tcp"
# http : http://www.baidu.com or https://www.baidu.com
# ping : 192.168.1.1
# tcp : 192.168.1.75:80
# tcp_tls : 192.168.1.75:443
# websocket : http://192.168.1.75/ws (only upgrade)
= "192.168.1.75:80"
= true
= true
= 3000
# failed count do action
= 2
# failed do action, http or command
= "command"
# http method get only
= 'echo "tcp failed ip: {target}"'
# recover do action, http or command
= "command"
= 'echo "tcp ping ip: {target}"'
# wait loop, 毫秒
= -1
# tick
= 60000
[[]]
= 4
= "tlsAction"
# http or ping or tcp or tcp_tls or websocket
= "tcp_tls"
# http : http://www.baidu.com or https://www.baidu.com
# ping : 192.168.1.1
# tcp : 192.168.1.75:80
# tcp_tls : 192.168.1.75:443
# websocket : http://192.168.1.75/ws (only upgrade)
= "192.168.1.75:443"
= true
= true
= 3000
# failed count do action
= 2
# failed do action, http or command
= "http"
# http method get only
= "http://www.163.com/abc?a=1"
# recover do action, http or command
= "http"
= "http://www.163.com/abc?a=2"
# wait loop, 毫秒
= -1
# tick
= 60000
[[]]
= 5
= "wsAction"
# http or ping or tcp or tcp_tls or websocket
= "websocket"
# http : http://www.baidu.com or https://www.baidu.com
# ping : 192.168.1.1
# tcp : 192.168.1.75:80
# tcp_tls : 192.168.1.75:443
# websocket : ws://192.168.1.75/ws (only upgrade)
= "ws://192.168.1.75/ws"
= true
= true
= 3000
# failed count do action
= 2
# failed do action, http or command
= "http"
# http method get only
= "http://www.163.com/abc?a=1"
# recover do action, http or command
= "http"
= "http://www.163.com/abc?a=2"
# wait loop, 毫秒
= -1
# tick
= 60000