-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzbx_LenovoDE_json.yaml
1344 lines (1344 loc) · 43.8 KB
/
zbx_LenovoDE_json.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
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
zabbix_export:
version: '5.4'
date: '2022-08-08T07:53:53Z'
groups:
-
uuid: 7df96b18c230490a9a0a9e2307226338
name: Templates
templates:
-
uuid: 3bbaceaaf4f44308972535d5a56d5c24
template: 'Template Lenovo DE JSON'
name: 'Template Lenovo DE JSON'
groups:
-
name: Templates
items:
-
uuid: ed2c53b05be8462ea996047afcb2801e
name: 'Hardware controllers JSON'
type: HTTP_AGENT
key: controllers_json
delay: 5m
history: 1h
trends: '0'
value_type: TEXT
authtype: BASIC
username: '{$LENOVO_USER}'
password: '{$LENOVO_PASS}'
timeout: 5s
url: 'https://{HOST.IP}:8443/devmgr/v2/storage-systems/{$LENOVO_WWN}/controllers'
output_format: JSON
-
uuid: 76a5aa75731b4a6d9fc86dfd57f4e2bb
name: 'Hardware drives JSON'
type: HTTP_AGENT
key: drives_json
delay: 5m
history: 1h
trends: '0'
value_type: TEXT
authtype: BASIC
username: '{$LENOVO_USER}'
password: '{$LENOVO_PASS}'
timeout: 5s
url: 'https://{HOST.IP}:8443/devmgr/v2/storage-systems/{$LENOVO_WWN}/drives'
output_format: JSON
-
uuid: 09c9f79b0efd4a33ac2e333431ae3e6c
name: 'Statistics Controller JSON'
type: HTTP_AGENT
key: statistics.controller.json
delay: 5m
history: 1h
trends: '0'
value_type: TEXT
authtype: BASIC
username: '{$LENOVO_USER}'
password: '{$LENOVO_PASS}'
timeout: 5s
url: 'https://{HOST.IP}:8443/devmgr/v2/storage-systems/{$LENOVO_WWN}/controller-statistics'
output_format: JSON
-
uuid: d8ac3a82c7c54c548bd5d18fbbe9f26e
name: 'Statistics Volume JSON'
type: HTTP_AGENT
key: statistics.volume.json
delay: 5m
history: 1h
trends: '0'
value_type: TEXT
authtype: BASIC
username: '{$LENOVO_USER}'
password: '{$LENOVO_PASS}'
timeout: 5s
url: 'https://{HOST.IP}:8443/devmgr/v2/storage-systems/{$LENOVO_WWN}/volume-statistics'
output_format: JSON
-
uuid: f85c2b1c75a44e4bbd52e3384d99bbe5
name: 'Storage Status'
type: DEPENDENT
key: storage_status
delay: '0'
history: 1d
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- $..status
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
master_item:
key: system_json
triggers:
-
uuid: dc653413ba61454f8596a734e5032161
expression: 'last(/Template Lenovo DE JSON/storage_status)<>"optimal"'
name: 'Storage {HOST.NAME} warning - {ITEM.LASTVALUE}'
priority: AVERAGE
-
uuid: 41910d015f6749f2b86df236a653fdf4
name: 'Hardware system JSON'
type: HTTP_AGENT
key: system_json
delay: 5m
history: 1h
trends: '0'
value_type: TEXT
authtype: BASIC
username: '{$LENOVO_USER}'
password: '{$LENOVO_PASS}'
timeout: 5s
url: 'https://{HOST.IP}:8443/devmgr/v2/storage-systems/'
output_format: JSON
-
uuid: a7fdcc0356494a2d8e6aa1bf8cbf7ffe
name: 'Hardware thin-volumes JSON'
type: HTTP_AGENT
key: thin-volumes_json
history: 1h
trends: '0'
value_type: TEXT
authtype: BASIC
username: '{$LENOVO_USER}'
password: '{$LENOVO_PASS}'
timeout: 5s
url: 'https://{HOST.IP}:8443/devmgr/v2/storage-systems/{$LENOVO_WWN}/thin-volumes'
output_format: JSON
-
uuid: 5b7bb728a7ab437588231e7303bf9420
name: 'Hardware volumes JSON'
type: HTTP_AGENT
key: volumes_json
history: 1h
trends: '0'
value_type: TEXT
authtype: BASIC
username: '{$LENOVO_USER}'
password: '{$LENOVO_PASS}'
timeout: 5s
url: 'https://{HOST.IP}:8443/devmgr/v2/storage-systems/{$LENOVO_WWN}/volumes'
output_format: JSON
-
uuid: 0e50bfcae1c345f884949332f0c4d8d2
name: WWN
type: DEPENDENT
key: wwn
delay: '0'
history: 1d
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$..[0].wwn'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
master_item:
key: system_json
discovery_rules:
-
uuid: e944fcd129b94a8f966bebe6bf92861a
name: 'Statistics controller'
type: DEPENDENT
key: controller.statistics
delay: '0'
item_prototypes:
-
uuid: 8e3a145662e84bb69b69429777acab0b
name: 'Statistic controller [{#CONTROLLER}] cacheHitsBytesTotal'
type: DEPENDENT
key: 'cacheHitsBytesTotal.controller.[{#CONTROLLER}]'
delay: '0'
units: B
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.controllerId == "{#CONTROLLER}")].[''cacheHitsBytesTotal''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
-
type: MULTIPLIER
parameters:
- '1'
-
type: SIMPLE_CHANGE
parameters:
- ''
master_item:
key: statistics.controller.json
-
uuid: 5398b05b69184ee2882fe3f04789a9b3
name: 'Statistic controller [{#CONTROLLER}] cacheHitsIopsTotal'
type: DEPENDENT
key: 'cacheHitsIopsTotal.controller.[{#CONTROLLER}]'
delay: '0'
units: IOPs
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.controllerId == "{#CONTROLLER}")].[''cacheHitsIopsTotal''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
-
type: MULTIPLIER
parameters:
- '1'
-
type: SIMPLE_CHANGE
parameters:
- ''
master_item:
key: statistics.controller.json
-
uuid: 3e7b06ae55424dad87a563e107a62240
name: 'Statistic controller [{#CONTROLLER}] maxCpuUtilization'
type: DEPENDENT
key: 'maxCpuUtilization.controller.[{#CONTROLLER}]'
delay: '0'
units: '%'
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.controllerId == "{#CONTROLLER}")].[''cpuUtilizationStats''].[0].[''maxCpuUtilization''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
master_item:
key: statistics.controller.json
-
uuid: 33b270c0dde94be3b8868d9f3610f77d
name: 'Statistic controller [{#CONTROLLER}] mirrorBytesTotal'
type: DEPENDENT
key: 'mirrorBytesTotal.controller.[{#CONTROLLER}]'
delay: '0'
units: B
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.controllerId == "{#CONTROLLER}")].[''mirrorBytesTotal''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
-
type: MULTIPLIER
parameters:
- '1'
-
type: SIMPLE_CHANGE
parameters:
- ''
master_item:
key: statistics.controller.json
-
uuid: f80af3378ef343c7971b40a96482bc78
name: 'Statistic controller [{#CONTROLLER}] mirrorIopsTotal'
type: DEPENDENT
key: 'mirrorIopsTotal.controller.[{#CONTROLLER}]'
delay: '0'
units: IOPs
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.controllerId == "{#CONTROLLER}")].[''mirrorIopsTotal''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
-
type: MULTIPLIER
parameters:
- '1'
-
type: SIMPLE_CHANGE
parameters:
- ''
master_item:
key: statistics.controller.json
-
uuid: 894ff448daa742dc844ae6a512f6ca40
name: 'Statistic controller [{#CONTROLLER}] readBytesTotal'
type: DEPENDENT
key: 'readBytesTotal.controller.[{#CONTROLLER}]'
delay: '0'
units: B
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.controllerId == "{#CONTROLLER}")].[''readBytesTotal''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
-
type: MULTIPLIER
parameters:
- '1'
-
type: SIMPLE_CHANGE
parameters:
- ''
master_item:
key: statistics.controller.json
-
uuid: 28d77168df0d41a4a65225a392b50552
name: 'Statistic controller [{#CONTROLLER}] readIopsTotal'
type: DEPENDENT
key: 'readIopsTotal.controller.[{#CONTROLLER}]'
delay: '0'
units: IOPs
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.controllerId == "{#CONTROLLER}")].[''readIopsTotal''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
-
type: MULTIPLIER
parameters:
- '1'
-
type: SIMPLE_CHANGE
parameters:
- ''
master_item:
key: statistics.controller.json
-
uuid: ce78bf12ac0740d0b08d20e52d757028
name: 'Statistic controller [{#CONTROLLER}] totalBytesServiced'
type: DEPENDENT
key: 'totalBytesServiced.controller.[{#CONTROLLER}]'
delay: '0'
units: B
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.controllerId == "{#CONTROLLER}")].[''totalBytesServiced''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
-
type: MULTIPLIER
parameters:
- '1'
-
type: SIMPLE_CHANGE
parameters:
- ''
master_item:
key: statistics.controller.json
-
uuid: 77a83aa6cb164a7ab5cb136c2d47a09d
name: 'Statistic controller [{#CONTROLLER}] totalIopsServiced'
type: DEPENDENT
key: 'totalIopsServiced.controller.[{#CONTROLLER}]'
delay: '0'
units: IOPs
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.controllerId == "{#CONTROLLER}")].[''totalIopsServiced''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
-
type: MULTIPLIER
parameters:
- '1'
-
type: SIMPLE_CHANGE
parameters:
- ''
master_item:
key: statistics.controller.json
-
uuid: 6c998ffe89a24ac2b745b3b405d8b1c8
name: 'Statistic controller [{#CONTROLLER}] writeBytesTotal'
type: DEPENDENT
key: 'writeBytesTotal.controller.[{#CONTROLLER}]'
delay: '0'
units: B
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.controllerId == "{#CONTROLLER}")].[''writeBytesTotal''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
-
type: MULTIPLIER
parameters:
- '1'
-
type: SIMPLE_CHANGE
parameters:
- ''
master_item:
key: statistics.controller.json
-
uuid: e53530779e7b4bc291d8da2e27825655
name: 'Statistic controller [{#CONTROLLER}] writeIopsTotal'
type: DEPENDENT
key: 'writeIopsTotal.controller.[{#CONTROLLER}]'
delay: '0'
units: IOPs
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.controllerId == "{#CONTROLLER}")].[''writeIopsTotal''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
-
type: MULTIPLIER
parameters:
- '1'
-
type: SIMPLE_CHANGE
parameters:
- ''
master_item:
key: statistics.controller.json
graph_prototypes:
-
uuid: 5c1c749958134279b48673cb3a366617
name: 'Bytes Utilization controller [{#CONTROLLER}]'
graph_items:
-
sortorder: '1'
color: FFB74D
item:
host: 'Template Lenovo DE JSON'
key: 'cacheHitsBytesTotal.controller.[{#CONTROLLER}]'
-
sortorder: '2'
color: 4000FF
item:
host: 'Template Lenovo DE JSON'
key: 'readBytesTotal.controller.[{#CONTROLLER}]'
-
sortorder: '3'
color: 00FF00
item:
host: 'Template Lenovo DE JSON'
key: 'totalBytesServiced.controller.[{#CONTROLLER}]'
-
sortorder: '4'
color: FF0000
item:
host: 'Template Lenovo DE JSON'
key: 'writeBytesTotal.controller.[{#CONTROLLER}]'
-
sortorder: '5'
color: BF00FF
item:
host: 'Template Lenovo DE JSON'
key: 'mirrorBytesTotal.controller.[{#CONTROLLER}]'
-
uuid: f3aaf1bfeee443b89cf11b2d82dc03de
name: 'CPU Utilization controller [{#CONTROLLER}]'
ymax_type_1: FIXED
graph_items:
-
sortorder: '1'
color: 199C0D
item:
host: 'Template Lenovo DE JSON'
key: 'maxCpuUtilization.controller.[{#CONTROLLER}]'
-
uuid: 981d58a82c2f47e09fae2c1edb3d42bc
name: 'IOPs Utilization controller [{#CONTROLLER}]'
graph_items:
-
sortorder: '1'
color: FFB74D
item:
host: 'Template Lenovo DE JSON'
key: 'cacheHitsIopsTotal.controller.[{#CONTROLLER}]'
-
sortorder: '2'
color: 4000FF
item:
host: 'Template Lenovo DE JSON'
key: 'readIopsTotal.controller.[{#CONTROLLER}]'
-
sortorder: '3'
color: 00FF00
item:
host: 'Template Lenovo DE JSON'
key: 'totalIopsServiced.controller.[{#CONTROLLER}]'
-
sortorder: '4'
color: FF0000
item:
host: 'Template Lenovo DE JSON'
key: 'writeIopsTotal.controller.[{#CONTROLLER}]'
-
sortorder: '5'
color: BF00FF
item:
host: 'Template Lenovo DE JSON'
key: 'mirrorIopsTotal.controller.[{#CONTROLLER}]'
master_item:
key: statistics.controller.json
lld_macro_paths:
-
lld_macro: '{#CONTROLLER}'
path: '$..[''controllerId''].first()'
preprocessing:
-
type: JSONPATH
parameters:
- '$.body.*'
-
uuid: ad37667ab60c416eb30214be15517527
name: 'Controllers discover'
type: DEPENDENT
key: controllers.discover
delay: '0'
item_prototypes:
-
uuid: c8d0e78046cd4d50a5522c4b4b2afbc4
name: 'Status controller {#LABEL}'
type: DEPENDENT
key: 'status.controller.[{#LABEL}]'
delay: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.controllerRef == "{#CONTROLLER}")].status.first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
master_item:
key: controllers_json
trigger_prototypes:
-
uuid: 71774e2cce19432eb056bd55a015a65c
expression: 'last(/Template Lenovo DE JSON/status.controller.[{#LABEL}])<>"optimal"'
name: 'Storage {HOST.NAME} controller {#LABEL} warning - {ITEM.LASTVALUE}'
priority: HIGH
master_item:
key: controllers_json
lld_macro_paths:
-
lld_macro: '{#CONTROLLER}'
path: '$..[''controllerRef''].first()'
-
lld_macro: '{#LABEL}'
path: '$..[''physicalLocation''].[''label''].first()'
preprocessing:
-
type: JSONPATH
parameters:
- '$.body.*'
-
uuid: c6eebd7afe2e4f458524add11e3b88c3
name: 'Disk discover'
type: DEPENDENT
key: disk.discover
delay: '0'
lifetime: 1d
item_prototypes:
-
uuid: 0f4fc2cf43604e92a7f1872ccc6fa550
name: 'Drive status [{#LABEL}]'
type: DEPENDENT
key: 'status.drive.[{#DRIVE}]'
delay: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.driveRef == "{#DRIVE}")].status.first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
master_item:
key: drives_json
trigger_prototypes:
-
uuid: a9cadfca2f464526948515a41127ef20
expression: 'last(/Template Lenovo DE JSON/status.drive.[{#DRIVE}])<>"optimal"'
name: 'Storage {HOST.NAME} drive [{#LABEL}] warning - {ITEM.LASTVALUE}'
url: 'https://{HOST.IP}:8443/'
priority: AVERAGE
-
uuid: bcb61043024a4c4dbf96cd489047530e
name: 'Drive temperature [{#LABEL}]'
type: DEPENDENT
key: 'temperature.drive.[{#DRIVE}]'
delay: '0'
units: C
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.driveRef == "{#DRIVE}")].driveTemperature.currentTemp.first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
master_item:
key: drives_json
-
uuid: 1c8522c783f940e5bfb27dae1f57d533
name: 'Drive temperature warn [{#LABEL}]'
type: DEPENDENT
key: 'temperature.max.drive.[{#DRIVE}]'
delay: '0'
units: C
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.driveRef == "{#DRIVE}")].driveTemperature.refTemp.first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
master_item:
key: drives_json
trigger_prototypes:
-
uuid: b34a0bc0d1ff4df8860f50aae68bd2d5
expression: 'last(/Template Lenovo DE JSON/temperature.drive.[{#DRIVE}])>=last(/Template Lenovo DE JSON/temperature.max.drive.[{#DRIVE}])'
name: 'Storage {HOST.NAME} temperature drive [{#LABEL}] warning - {ITEM.LASTVALUE}'
priority: HIGH
graph_prototypes:
-
uuid: 90657606674f4314ad1668e5843b405d
name: 'Temperature drive [{#LABEL}]'
graph_items:
-
sortorder: '1'
color: 199C0D
item:
host: 'Template Lenovo DE JSON'
key: 'temperature.drive.[{#DRIVE}]'
-
sortorder: '2'
color: F63100
item:
host: 'Template Lenovo DE JSON'
key: 'temperature.max.drive.[{#DRIVE}]'
master_item:
key: drives_json
lld_macro_paths:
-
lld_macro: '{#DRIVE}'
path: '$..[''driveRef''].first()'
-
lld_macro: '{#LABEL}'
path: '$..[''physicalLocation''].[''label''].first()'
-
lld_macro: '{#SN}'
path: '$..[''serialNumber''].first()'
preprocessing:
-
type: JSONPATH
parameters:
- '$.body.*'
-
uuid: c1a961573c1845b9bdad9724f8830583
name: 'Thin Volumes discover'
type: DEPENDENT
key: tvolumes.discover
delay: '0'
item_prototypes:
-
uuid: dba70322468e444087572f4d373a36bb
name: 'Capacity [{#LABEL}]'
type: DEPENDENT
key: 'capacity.tvolume.[{#TVOLUME}]'
delay: '0'
units: B
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.volumeRef == "{#TVOLUME}")].[''capacity''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
master_item:
key: thin-volumes_json
-
uuid: 9447043fefe24d42836ac6066a29d8cb
name: 'Current provisioned capacity [{#LABEL}]'
type: DEPENDENT
key: 'currentProvisionedCapacity.tvolume.[{#TVOLUME}]'
delay: '0'
units: B
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.volumeRef == "{#TVOLUME}")].[''currentProvisionedCapacity''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
master_item:
key: thin-volumes_json
-
uuid: f822e343070148eeb2d1cc8bcea24ccb
name: 'Alert Threshold growth [{#LABEL}]'
type: DEPENDENT
key: 'growth.tvolume.[{#TVOLUME}]'
delay: '0'
units: '%'
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.volumeRef == "{#TVOLUME}")].[''growthAlertThreshold''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
master_item:
key: thin-volumes_json
-
uuid: 0020e4eb532a499e9f05f9e3527908bf
name: 'Initial provisioned capacity [{#LABEL}]'
type: DEPENDENT
key: 'initialProvisionedCapacity.tvolume.[{#TVOLUME}]'
delay: '0'
units: B
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.volumeRef == "{#TVOLUME}")].[''initialProvisionedCapacity''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
master_item:
key: thin-volumes_json
-
uuid: 89131273960a4de58afdddcf5f67ec2a
name: 'Label thin volume [{#LABEL}]'
type: DEPENDENT
key: 'label.tvolume.[{#TVOLUME}]'
delay: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.volumeRef == "{#TVOLUME}")].label.first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
master_item:
key: thin-volumes_json
-
uuid: 2586035e173b4aacab66b201b96878b2
name: 'Max virtual capacity [{#LABEL}]'
type: DEPENDENT
key: 'maxVirtualCapacity.tvolume.[{#TVOLUME}]'
delay: '0'
units: B
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.volumeRef == "{#TVOLUME}")].[''maxVirtualCapacity''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
master_item:
key: thin-volumes_json
-
uuid: 19f3da11b7e742408e2b0052b83cd281
name: 'Provisioned capacity quota [{#LABEL}]'
type: DEPENDENT
key: 'provisionedCapacityQuota.tvolume.[{#TVOLUME}]'
delay: '0'
units: B
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.volumeRef == "{#TVOLUME}")].[''provisionedCapacityQuota''].first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
master_item:
key: thin-volumes_json
-
uuid: 1c30e12132e64edf9881933875b0e849
name: 'Status thin volume [{#LABEL}]'
type: DEPENDENT
key: 'status.tvolume.[{#TVOLUME}]'
delay: '0'
trends: '0'
value_type: TEXT
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.volumeRef == "{#TVOLUME}")].status.first()'
-
type: LTRIM
parameters:
- '["'
-
type: RTRIM
parameters:
- '"]'
master_item:
key: thin-volumes_json
trigger_prototypes:
-
uuid: 6a249fda4ab74d2a9e8b99b62041adf8
expression: 'last(/Template Lenovo DE JSON/status.tvolume.[{#TVOLUME}])<>"optimal"'
name: 'Storage {HOST.NAME} warning Thin volume [{#LABEL}] - {ITEM.LASTVALUE}'
priority: AVERAGE
trigger_prototypes:
-
uuid: 7f12d7daab4943c19a639ee29e1df9e7
expression: |
last(/Template Lenovo DE JSON/currentProvisionedCapacity.tvolume.[{#TVOLUME}])/
last(/Template Lenovo DE JSON/provisionedCapacityQuota.tvolume.[{#TVOLUME}]) <= last(/Template Lenovo DE JSON/growth.tvolume.[{#TVOLUME}])/100
name: 'Storage {HOST.NAME} Thin Volume [{#LABEL}] - Allocated Capacity Limit Threshold Exceeded > {ITEM.LASTVALUE3}'
status: DISABLED
priority: AVERAGE
master_item:
key: thin-volumes_json
lld_macro_paths:
-
lld_macro: '{#LABEL}'
path: '$..[''label''].first()'
-
lld_macro: '{#TVOLUME}'
path: '$..[''volumeRef''].first()'
preprocessing:
-
type: JSONPATH
parameters:
- '$.body.*'
-
uuid: 61caf5b1ad354b028e64fb8263fd2ad8
name: 'Statistics volume'
type: DEPENDENT
key: volume.statistics
delay: '0'
item_prototypes:
-
uuid: bf9761de6b8a48cc90af340c71f3c884
name: 'Statistic volume [{#VOLUME}] readBytes'
type: DEPENDENT
key: 'readBytes.volume.[{#VOLUME}]'
delay: '0'
units: B
preprocessing:
-
type: JSONPATH
parameters:
- '$..[?(@.volumeName == "{#VOLUME}")].[''readBytes''].first()'
-