File: monitors.ini

package info (click to toggle)
simplemonitor 1.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,520 kB
  • sloc: python: 8,725; sh: 258; makefile: 74; javascript: 69
file content (332 lines) | stat: -rw-r--r-- 4,369 bytes parent folder | download | duplicates (2)
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
[defaults]
testvalue=1

[test2-fail]
type=fail

[command1]
type=command
command=ls -l /tmp/
result_regexp=total

[command2]
type=command
command=echo 5
result_max=6

[command3-fail]
type=command
command=echo 5
result_max=4

[command4-fail]
type=command
command=moo
result_regexp=hello
recover_command=echo 1

[http]
type=http
url=http://www.google.com

[https]
type=http
url=https://www.google.com

[https-fail]
type=http
url=https://expired.badssl.com

[https-regexp]
type=http
regexp=Google
url=https://www.google.com

[https-404]
type=http
url=https://google.com/404
allowed_codes=404

[https-404-fail]
type=http
url=https://google.com/404
allowed_codes=200,302

[https-noverify]
type=http
url=https://wrong.host.badssl.com
verify_hostname=false

[dns]
type=dns
record=a.test.jamesoff.net

[dns-mx]
type=dns
record=jamesoff.net
record_type=MX

[dns-fail]
type=dns
record=bad.jamesoff.net

# I'm sure this'll come back to bite me
[dns-value]
type=dns
record=a.test.jamesoff.net
desired_val=1.2.3.4

[dns-multivalue]
type=dns
record=a-multi.test.jamesoff.net
desired_val=1.2.3.4
  2.3.4.5

[dns-multivalue-fail]
type=dns
record=a-multi.test.jamesoff.net
desired_val=1.2.3.4
  3.4.5.6

[dns-value-fail]
type=dns
record=a.test.jamesoff.net
desired_val=127.0.0.1

[dns-server]
type=dns
record=a.test.jamesoff.net
server=8.8.8.8

[dns-nxdomain]
type=dns
record=null.test.jamesoff.net
desired_val=nxdomain

[depends]
type=command
command=ls
depend=command1

[depends-skip]
type=command
command=ls
depend=https-fail

[gap]
type=command
command=ls
gap=1

[compound]
type=compound
monitors=command1,command2

[filestat]
type=filestat
filename=simplemonitor/monitor.py

[filestat2]
type=filestat
filename=simplemonitor/monitor.py
minsize=1

[filestat3]
type=filestat
filename=simplemonitor/monitor.py
maxage=525600

[filestat-fail]
type=filestat
filename=missing.txt

[filestat2-fail]
type=filestat
filename=simplemonitor/monitor.py
minsize=10G

[filestat3-fail]
type=filestat
filename=simplemonitor/monitor.py
maxage=1

[filestat4]
type=filestat
filename=simplemonitor/monitor.py
maxsize=10G

[filestat4-fail]
type=filestat
filename=simplemonitor/monitor.py
maxsize=1

[apc]
type=apcupsd
path=./tests/mocks/apcaccess-mock

[apc-fail]
type=apcupsd
path=./tests/mocks/apcaccess-fail-mock

[rc]
type=rc
path=tests/mocks/rc
service=pass

[rc-fail]
type=rc
path=tests/mocks/rc-fail
service=fail

[exim]
type=eximqueue
path=tests/mocks
max_length=1000

[exim-fail]
type=eximqueue
path=tests/mocks
max_length=10

[null]
type=null

[tcp]
type=tcp
host=www.google.com
port=80

[tcp-fail]
type=tcp
host=www.google.com
port=81
group=a

[ping]
type=host
host=127.0.0.1

[ping-fail]
type=host
host=bad.jamesoff.net

[pkg-fail]
type=pkgaudit
path=./tests/mocks/pkg-fail

[pkg-2-fail]
type=pkgaudit
path=./tests/mocks/pkg-fail-2

[pkg]
type=pkgaudit
path=./tests/mocks/pkg

[portaudit]
type=portaudit
path=./tests/mocks/portaudit

[portaudit-fail]
type=portaudit
path=./tests/mocks/portaudit-fail

[loadavg1]
type=loadavg
which=0
max=100

[loadavg5]
type=loadavg
which=1
max=100

[loadavg15]
type=loadavg
which=2
max=100

[loadavg-fail]
type=loadavg
which=0
max=0.01

[not-this-host]
type=null
runon=some-unlikely-hostname

[compound1-fail]
type=compound
monitors=ping-fail,pkg-fail

[compound2]
type=compound
monitors=ping-fail,ping

[compoud3]
type=compound
monitors=ping,null

[memory]
type=memory
percent_free=0

[memory-fail]
type=memory
percent_free=100

[swap]
type=swap
percent_free=0

# Not testing swap-fail; think the test environment in GH Actions has no swap?

[unix-service]
type=unix_service
service=good_service

[unix-service-fail]
type=unix_service
service=bad_service
state=running

[unix-service-stopped]
type=unix_service
service=bad_service
state=stopped

[unix-service-stopped-fail]
type=unix_service
service=good_service
state=stopped

[process]
type=process
process_name=python3

[process-fail]
type=process
process_name=unlikely-process-name

[process-max-fail]
type=process
process_name=python3
max_count=0

[process-min-fail]
type=process
process_name=python3
# if the test host has more than this many python processes you probably want tests to fail
min_count=60000

[process-username-fail]
type=process
process_name=python3
username=unlikely-username

[tls-expiry]
type=tls_expiry
host=www.amazon.com

[tls-expiry-fail]
type=tls_expiry
host=expired.badssl.com