-
Notifications
You must be signed in to change notification settings - Fork 2
/
TeamRedMiner.yaml
382 lines (382 loc) · 11 KB
/
TeamRedMiner.yaml
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
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
zabbix_export:
version: '5.4'
date: '2024-02-23T18:05:12Z'
groups:
-
uuid: 5a3b4210defe473da9627b2ca03e360c
name: Templates/Mining
templates:
-
uuid: ad02cc793b7e47c3b360ac0e81f20265
template: TeamRedMiner
name: TeamRedMiner
groups:
-
name: Templates/Mining
items:
-
uuid: cc593c7a23a5460285ecd42d7dc7f466
name: 'Miner gpucount'
type: EXTERNAL
key: 'cgminer-setkeh.py[{HOST.CONN},{$CGM_PORT},"gpucount"]'
delay: 15m
history: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: STR_REPLACE
parameters:
- '"'''
- '"'
-
type: STR_REPLACE
parameters:
- '''"'
- '"'
-
type: STR_REPLACE
parameters:
- ''''
- '"'
-
type: STR_REPLACE
parameters:
- 'False'
- 'false'
-
type: STR_REPLACE
parameters:
- 'True'
- 'true'
-
uuid: 62323cbd931d4766a1ccf1619646efad
name: 'Miner stats'
type: EXTERNAL
key: 'cgminer-setkeh.py[{HOST.CONN},{$CGM_PORT},"stats"]'
delay: 5m
history: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: STR_REPLACE
parameters:
- '"'''
- '"'
-
type: STR_REPLACE
parameters:
- '''"'
- '"'
-
type: STR_REPLACE
parameters:
- ''''
- '"'
-
type: STR_REPLACE
parameters:
- 'False'
- 'false'
-
type: STR_REPLACE
parameters:
- 'True'
- 'true'
-
uuid: 29f0ed284d4a4a1699d6cf9f718640c0
name: 'Miner summary'
type: EXTERNAL
key: 'cgminer-setkeh.py[{HOST.CONN},{$CGM_PORT},"summary"]'
delay: 5m
history: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: STR_REPLACE
parameters:
- '"'''
- '"'
-
type: STR_REPLACE
parameters:
- '''"'
- '"'
-
type: STR_REPLACE
parameters:
- ''''
- '"'
-
type: STR_REPLACE
parameters:
- 'False'
- 'false'
-
type: STR_REPLACE
parameters:
- 'True'
- 'true'
-
uuid: c4958160ae5d40f8825359de2862dcfe
name: 'Miner version'
type: EXTERNAL
key: 'cgminer-setkeh.py[{HOST.CONN},{$CGM_PORT},"version"]'
delay: 1h
history: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: STR_REPLACE
parameters:
- '"'''
- '"'
-
type: STR_REPLACE
parameters:
- '''"'
- '"'
-
type: STR_REPLACE
parameters:
- ''''
- '"'
-
type: STR_REPLACE
parameters:
- 'False'
- 'false'
-
type: STR_REPLACE
parameters:
- 'True'
- 'true'
-
uuid: c266ec8cd9714bd09d94a4b1f661b4a3
name: 'ICMP ping'
type: SIMPLE
key: icmpping
history: 1w
valuemap:
name: 'Service state'
tags:
-
tag: Application
value: Status
triggers:
-
uuid: 3515756f90604b74a3e69f0d3570985e
expression: 'max(/TeamRedMiner/icmpping,#3)=0'
name: 'Unavailable by ICMP ping'
priority: HIGH
description: 'Last three attempts returned timeout. Please check device connectivity.'
-
uuid: 594d7342ce36481f9eaa44d645878884
name: 'ICMP loss'
type: SIMPLE
key: icmppingloss
history: 1w
value_type: FLOAT
units: '%'
tags:
-
tag: Application
value: Status
triggers:
-
uuid: c58d7044c22c44828caf87125df5226c
expression: 'min(/TeamRedMiner/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/TeamRedMiner/icmppingloss,5m)<100'
name: 'High ICMP ping loss'
opdata: 'Loss: {ITEM.LASTVALUE1}'
priority: WARNING
dependencies:
-
name: 'Unavailable by ICMP ping'
expression: 'max(/TeamRedMiner/icmpping,#3)=0'
-
uuid: 8cdc7b4096e4401b8042ca9c9df6e198
name: 'ICMP response time'
type: SIMPLE
key: icmppingsec
history: 1w
value_type: FLOAT
units: s
tags:
-
tag: Application
value: Status
triggers:
-
uuid: b0e451013d9c414c94680a13708bb5d4
expression: 'avg(/TeamRedMiner/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}'
name: 'High ICMP ping response time'
opdata: 'Value: {ITEM.LASTVALUE1}'
priority: WARNING
dependencies:
-
name: 'High ICMP ping loss'
expression: 'min(/TeamRedMiner/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/TeamRedMiner/icmppingloss,5m)<100'
-
name: 'Unavailable by ICMP ping'
expression: 'max(/TeamRedMiner/icmpping,#3)=0'
-
uuid: 45f3f0884d0f4f74a603d3d351b0f4c4
name: 'TeamRedMiner GPU count'
type: DEPENDENT
key: miner.gpucount.count
delay: '0'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''GPUS''][0][''Count'']'
master_item:
key: 'cgminer-setkeh.py[{HOST.CONN},{$CGM_PORT},"gpucount"]'
triggers:
-
uuid: 8454ae59f6c9462fbf320ab92657ac75
expression: 'last(/TeamRedMiner/miner.gpucount.count)<{$GPUNUM}'
name: 'GPU lost'
priority: AVERAGE
description: 'Мы потеряли видюху (или несколько)'
-
uuid: 575ef27f6ad24d8888f929188ef08156
name: 'TeamRedMiner elapsed'
type: DEPENDENT
key: miner.summary.elapsed
delay: '0'
units: s
preprocessing:
-
type: JSONPATH
parameters:
- '$[''SUMMARY''][0][''Elapsed'']'
master_item:
key: 'cgminer-setkeh.py[{HOST.CONN},{$CGM_PORT},"summary"]'
-
uuid: 2caac47719bf4b63a9b00743012376a9
name: 'TeamRedMiner MHS 30s'
type: DEPENDENT
key: miner.summary.mh30s
delay: '0'
value_type: FLOAT
units: Mh
preprocessing:
-
type: JSONPATH
parameters:
- '$[''SUMMARY''][0][''MHS 30s'']'
master_item:
key: 'cgminer-setkeh.py[{HOST.CONN},{$CGM_PORT},"summary"]'
triggers:
-
uuid: 3d54ab11bd684773bcf2a6b5ca15573a
expression: 'avg(/TeamRedMiner/miner.summary.mh30s,1h)<{$HASHRATE}'
name: 'Hashrate too low (exp. {$HASHRATE})'
priority: AVERAGE
-
uuid: db233a547b6f419f9762d1a82b905a01
name: 'TeamRedMiner MHS av'
type: DEPENDENT
key: miner.summary.mhsav
delay: '0'
value_type: FLOAT
units: Mh
preprocessing:
-
type: JSONPATH
parameters:
- '$[''SUMMARY''][0][''MHS av'']'
master_item:
key: 'cgminer-setkeh.py[{HOST.CONN},{$CGM_PORT},"summary"]'
-
uuid: 1271bb980649440b9630b6cd3872adfa
name: 'TeamRedMiner version'
type: DEPENDENT
key: miner.version.version
delay: '0'
trends: '0'
value_type: CHAR
inventory_link: SOFTWARE
preprocessing:
-
type: JSONPATH
parameters:
- '$[''VERSION''][0][''Miner'']'
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 24h
master_item:
key: 'cgminer-setkeh.py[{HOST.CONN},{$CGM_PORT},"version"]'
triggers:
-
uuid: a6e74891e5884470b0fcc81985fe300d
expression: 'last(/TeamRedMiner/miner.version.version,#1)<>last(/TeamRedMiner/miner.version.version,#2)'
name: 'TeamRedMiner version changed'
priority: INFO
manual_close: 'YES'
-
uuid: 8c50b2f9880c40639943d4107a9bdb0f
name: 'TeamRedMiner process'
type: ZABBIX_ACTIVE
key: 'proc.num[teamredminer]'
triggers:
-
uuid: f7c5071ad4c24711bec6547300c0688f
expression: 'last(/TeamRedMiner/proc.num[teamredminer])=0'
name: 'TeamRedMiner lost'
priority: AVERAGE
description: 'Майнер не запущен (либо еще не стартовал, либо уже упал совсем)'
macros:
-
macro: '{$CGM_PORT}'
value: '4028'
-
macro: '{$GPUNUM}'
value: '6'
-
macro: '{$HASHRATE}'
value: '300'
-
macro: '{$ICMP_LOSS_WARN}'
value: '20'
-
macro: '{$ICMP_RESPONSE_TIME_WARN}'
value: '0.15'
valuemaps:
-
uuid: fdafd249bc2b4c7bb46956ce4ad27eea
name: 'Service state'
mappings:
-
value: '0'
newvalue: Down
-
value: '1'
newvalue: Up
graphs:
-
uuid: e02b51cfdfc4417a8d40bdeb205aa023
name: 'ICMP ping'
graph_items:
-
sortorder: '1'
drawtype: BOLD_LINE
color: 1A7C11
item:
host: TeamRedMiner
key: icmppingsec
-
uuid: 90f2325961124955a2e8fab09f324a69
name: 'Total hashrate'
graph_items:
-
sortorder: '1'
color: 1A7C11
item:
host: TeamRedMiner
key: miner.summary.mhsav