forked from tulnovdl/ZabbixIostatMonitoring
-
Notifications
You must be signed in to change notification settings - Fork 1
/
zabbix_iostat_monitoring_template.yaml
501 lines (501 loc) · 18.9 KB
/
zabbix_iostat_monitoring_template.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
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
zabbix_export:
version: '6.2'
date: '2022-07-13T03:18:02Z'
template_groups:
-
uuid: dc579cd7a1a34222933f24f52a68bcd8
name: 'Linux servers'
templates:
-
uuid: a70e9642064144bba79b93c7bf3e65df
template: 'Linux IOstat by Zabbix agent active'
name: 'Linux IOstat by Zabbix agent active'
groups:
-
name: 'Linux servers'
discovery_rules:
-
uuid: 32a8f68aa9c14e7bb455cad4db96f6f1
name: 'Disk Discovery'
type: ZABBIX_ACTIVE
key: disk.iostat.discovery
delay: 5m
filter:
conditions:
-
macro: '{#HARDDISK}'
value: '^((xvd|sd|hd|vd)[a-z]|md[0-9]+|(nvme[0-9]+n[0-9]+))'
formulaid: A
item_prototypes:
-
uuid: 3a8cd940d9b143fb83255d6c258abea4
name: 'Disk {#HARDDISK} iostat summary'
type: ZABBIX_ACTIVE
key: 'disk.iostat.getstats[{#HARDDISK}]'
history: '0'
trends: '0'
value_type: TEXT
tags:
-
tag: Application
value: iostat
-
uuid: d9a5f7e6a86842dcb12d977a8ff48b01
name: 'Disk {#HARDDISK} average queue length of the requests'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},aqu-sz]'
delay: '0'
value_type: FLOAT
units: KBs
description: 'The average queue length of the requests that were issued to the device. Note: In previous versions, this field was known as avgqu-sz.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''aqu-sz'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: 4b3ef6bbc13b464784d596dd5d9b9496
name: 'Disk {#HARDDISK} discard requests per second'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},d/s]'
delay: '0'
value_type: FLOAT
units: ops
description: 'The number (after merges) of discard requests completed per second for the device.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''d/s'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: 99bdcedb1a7f4df597c45711e1f08de4
name: 'Disk {#HARDDISK} average size of the discard requests'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},dareq-sz]'
delay: '0'
value_type: FLOAT
units: KBs
description: 'The average size (in kilobytes) of the discard requests that were issued to the device.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''dareq-sz'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: 32ab9f89c258427e99cfa646357696c8
name: 'Disk {#HARDDISK} discard data per second'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},dMB/s]'
delay: '0'
value_type: FLOAT
units: MBs
description: 'The number of sectors (megabytes) discarded for the device per second.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''dMB/s'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: 6ea6a53ea50b4bf2b5272ab5e7014a56
name: 'Disk {#HARDDISK} discard requests (merged) per second'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},drqm/s]'
delay: '0'
value_type: FLOAT
units: ops
description: 'The number of discard requests merged per second that were queued to the device.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''drqm/s'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: d8be9b2b779f4f7f938102f28d730ed7
name: 'Disk {#HARDDISK} % discard requests (merged) per second'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},drqm]'
delay: '0'
value_type: FLOAT
units: '%'
description: 'The percentage of discard requests merged together before being sent to the device'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''drqm'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: ca3c81019489473a99bd8393827b607e
name: 'Disk {#HARDDISK} time spent by the discard requests in queue'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},d_await]'
delay: '0'
value_type: FLOAT
units: ms
description: 'The average time (in milliseconds) for discard requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''d_await'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: 61ca684c07c9444581adc215cc53d8c0
name: 'Disk {#HARDDISK} flush requests per second'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},f/s]'
delay: '0'
value_type: FLOAT
units: ops
description: 'The number (after merges) of flush requests completed per second for the device. This counts flush requests executed by disks. Flush requests are not tracked for partitions. Before being merged, flush operations are counted as writes.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''f/s'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: f7a6c4cf688e45ac8aefe685bf506101
name: 'Disk {#HARDDISK} time spent by the flush requests in queue'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},f_await]'
delay: '0'
value_type: FLOAT
units: ms
description: 'The average time (in milliseconds) for flush requests issued to the device to be served. The block layer combines flush requests and executes at most one at a time. Thus flush operations could be twice as long: Wait for current flush request, then execute it, then wait for the next one.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''f_await'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: 971c4043e1484843859cbef0406c673a
name: 'Disk {#HARDDISK} read requests per second'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},r/s]'
delay: '0'
value_type: FLOAT
units: ops
description: 'The number (after merges) of read requests completed per second for the device.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''r/s'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: 8eaed7c742504850a69f3839b28cc5ad
name: 'Disk {#HARDDISK} average size of the read requests'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},rareq-sz]'
delay: '0'
value_type: FLOAT
units: KBs
description: 'The average size (in kilobytes) of the read requests that were issued to the device.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''rareq-sz'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: a04b9b90b46042fb958c55f5dd891b56
name: 'Disk {#HARDDISK} read data per second'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},rMB/s]'
delay: '0'
value_type: FLOAT
units: MBs
description: 'The number of sectors (megabytes) read from the device per second.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''rMB/s'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: 95e14095a9894685b4850568ea3632ea
name: 'Disk {#HARDDISK} read requests (merged) per second'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},rrqm/s]'
delay: '0'
value_type: FLOAT
units: '%'
description: 'The number of read requests merged per second that were queued to the device.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''rrqm/s'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: 570ba78253734446824d203072b19fc2
name: 'Disk {#HARDDISK} % read requests (merged) per second'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},rrqm]'
delay: '0'
value_type: FLOAT
units: '%'
description: 'The percentage of read requests merged together before being sent to the device'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''rrqm'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: b3fdadfc40174029b9a28393e8783299
name: 'Disk {#HARDDISK} time spent by the read requests in queue'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},r_await]'
delay: '0'
value_type: FLOAT
units: ms
description: 'The average time (in milliseconds) for read requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''r_await'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: 074bc5f01b474a958f299327fdef3d3d
name: 'Disk {#HARDDISK} utilization'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},util]'
delay: '0'
value_type: FLOAT
units: '%'
description: 'Device utilization in %'
preprocessing:
-
type: JSONPATH
parameters:
- $.util
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
trigger_prototypes:
-
uuid: 64d503d56bb64d2e86eac0b3b6482ffa
expression: 'min(/Linux IOstat by Zabbix agent active/iostat.summary[{#HARDDISK},util],10m)>{$IOSTAT.UTIL.HIGH:"{#HARDDISK}"}'
name: 'Disk {#HARDDISK} high utilization'
priority: WARNING
-
uuid: 65ee7632895b46c5abd43189c1ad1d4b
expression: 'min(/Linux IOstat by Zabbix agent active/iostat.summary[{#HARDDISK},util],10m)>{$IOSTAT.UTIL.HIGH:"{#HARDDISK}"}'
name: 'Disk {#HARDDISK} very high utilization'
priority: AVERAGE
-
uuid: c6ed6861259e44e790063d24013c6e25
name: 'Disk {#HARDDISK} write requests per second'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},w/s]'
delay: '0'
value_type: FLOAT
units: ops
description: 'The number (after merges) of write requests completed per second for the device.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''w/s'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: 3177da4ff3ab401789b0fd5ef4885b52
name: 'Disk {#HARDDISK} average size of the write requests'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},wareq-sz]'
delay: '0'
value_type: FLOAT
units: KBs
description: 'The average size (in kilobytes) of the write requests that were issued to the device.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''wareq-sz'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: 40dd11ac040a4683b23898250f328ca3
name: 'Disk {#HARDDISK} write data per second'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},wMB/s]'
delay: '0'
value_type: FLOAT
units: MBs
description: 'The number of sectors (kilobytes, megabytes) written to the device per second.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''wMB/s'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: cab8fc074ef24dd98e1d468eeaa4fda4
name: 'Disk {#HARDDISK} write requests (merged) per second'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},wrqm/s]'
delay: '0'
value_type: FLOAT
units: ops
description: 'The number of write requests merged per second that were queued to the device.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''wrqm/s'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: b06f9fe8be294e1a8c2b6ba4ba309bb7
name: 'Disk {#HARDDISK} % write requests (merged) per second'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},wrqm]'
delay: '0'
value_type: FLOAT
units: '%'
description: 'The percentage of write requests merged together before being sent to the device.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''wrqm'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
-
uuid: 32f09023cc7d4e6c815d65adf5182956
name: 'Disk {#HARDDISK} time spent by the write requests in queue'
type: DEPENDENT
key: 'iostat.summary[{#HARDDISK},w_await]'
delay: '0'
value_type: FLOAT
units: ms
description: 'The average time (in milliseconds) for write requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them.'
preprocessing:
-
type: JSONPATH
parameters:
- '$[''w_await'']'
master_item:
key: 'disk.iostat.getstats[{#HARDDISK}]'
tags:
-
tag: Application
value: iostat
macros:
-
macro: '{$IOSTAT.TIME.READ.HIGH}'
value: '20'
description: 'High disk utilization'
-
macro: '{$IOSTAT.TIME.WRITE.HIGH}'
value: '95'
description: 'Very high disk utilization'