-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhuawei_templates.yaml
1761 lines (1761 loc) · 68.4 KB
/
huawei_templates.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: '6.0'
date: '2024-12-20T09:13:15Z'
groups:
-
uuid: 36bff6c29af64692839d077febfc7079
name: 'Templates/Network devices'
templates:
-
uuid: 6c6edbf3fc5c407dbb05675910c9d97e
template: 'LW_Template SNMP Huawei Switch Network_S with Optical General'
name: '华为S系列带光口设备模板[2011]'
groups:
-
name: 'Templates/Network devices'
items:
-
uuid: 86689e46cdeb46d394ca8aad1394858b
name: 'ICMP 丢包率'
type: SIMPLE
key: 'icmppingloss[,2,,,]'
delay: '60'
history: 7d
value_type: FLOAT
units: '%'
description: 'ICMP pingloss'
tags:
-
tag: Application
value: ICMP
-
uuid: fbd975a71a1e4bd88988153ab1c8312c
name: 'ICMP 延时'
type: SIMPLE
key: 'icmppingsec[,2,,,]'
delay: '60'
history: 7d
value_type: FLOAT
units: ms
description: 'ICMP pingsec'
tags:
-
tag: Application
value: ICMP
-
uuid: 4a4dc0882eaa45c0aa427f0323ca5bad
name: 'ICMP ping状态'
type: SIMPLE
key: 'icmpping[,2,,,]'
delay: '60'
history: 7d
description: 'ICMP ping'
request_method: POST
tags:
-
tag: Application
value: ICMP
-
uuid: dcb778727fdf45e5af524f16ed76d989
name: 端口数量
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifNumber.0'
key: ifNumber
delay: '3600'
history: 7d
description: 'The number of network interfaces (regardless of their current state) present on this system.'
tags:
-
tag: Application
value: 端口信息
-
uuid: bd2fc1882a034ca68a7473023799eb1f
name: 'LW:LW_NETWORKDEVICES_HUAWEI'
type: SNMP_AGENT
snmp_oid: interfaces.ifTable.ifEntry.ifInOctets.1
key: LW_NETWORKDEVICES_HUAWEI
delay: '30'
status: DISABLED
description: '{"snmp":1}'
-
uuid: e6326bb0dc6a4381bd57fe5231837447
name: 'SNMP traps (fallback)'
type: SNMP_TRAP
key: snmptrap.fallback
delay: '0'
history: 7d
trends: '0'
value_type: LOG
logtimefmt: 'hh:mm:sszyyyy/MM/dd'
request_method: POST
tags:
-
tag: Application
value: 常规
-
uuid: 7d24397b5efa4553865b1b53bf274829
name: 设备详细的联系方式
type: SNMP_AGENT
snmp_oid: 'SNMPv2-MIB::sysContact.0'
key: sysContact
delay: 1d
history: 7d
trends: '0'
value_type: CHAR
description: 'The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string.'
inventory_link: CONTACT
request_method: POST
tags:
-
tag: Application
value: 常规
-
uuid: 54faded5bd224b3c92016f821927e969
name: 设备描述
type: SNMP_AGENT
snmp_oid: 'SNMPv2-MIB::sysDescr.0'
key: sysDescr
delay: 1d
history: 7d
trends: '0'
value_type: CHAR
description: 'A textual description of the entity. This value should include the full name and version identification of the system''s hardware type, software operating-system, and networking software.'
inventory_link: HARDWARE
request_method: POST
tags:
-
tag: Application
value: 常规
-
uuid: 11755ed399be49408e2badfc91fb9168
name: 设备位置
type: SNMP_AGENT
snmp_oid: 'SNMPv2-MIB::sysLocation.0'
key: sysLocation
delay: 1d
history: 7d
trends: '0'
value_type: CHAR
description: 'The physical location of this node (e.g., `telephone closet, 3rd floor''). If the location is unknown, the value is the zero-length string.'
inventory_link: LOCATION
request_method: POST
tags:
-
tag: Application
value: 常规
-
uuid: 0fb101c8f0434723ae583f1058fd7f7f
name: 设备名称
type: SNMP_AGENT
snmp_oid: 'SNMPv2-MIB::sysName.0'
key: sysName
delay: 1d
history: 7d
trends: '0'
value_type: CHAR
description: 'An administratively-assigned name for this managed node. By convention, this is the node''s fully-qualified domain name. If the name is unknown, the value is the zero-length string.'
inventory_link: NAME
request_method: POST
tags:
-
tag: Application
value: 常规
-
uuid: d9492a7610ba44fb9a479e77355d28f0
name: 设备运行时间
type: SNMP_AGENT
snmp_oid: 'SNMPv2-MIB::sysUpTime.0'
key: sysUpTime
history: 7d
units: uptime
description: 'The time since the network management portion of the system was last re-initialized.,该值在设备连续运行未超过300多天时可以当作设备运行时间,当超过300多天根据型号不同,改计数器会自动重置为0重新计算时间'
preprocessing:
-
type: MULTIPLIER
parameters:
- '0.01'
request_method: POST
tags:
-
tag: Application
value: 常规
discovery_rules:
-
uuid: 64ad61febf1c469bb43d0d7c57b3f51c
name: 风扇2
type: SNMP_AGENT
snmp_oid: 'discovery[{#SNMPVALUE2},1.3.6.1.4.1.2011.2.23.1.9.1.1.1.1]'
key: Fan2.23.1
delay: '3600'
lifetime: 1d
item_prototypes:
-
uuid: dbb2e6da9f2a442e91e4b8d7710d8f55
name: '{#SNMPVALUE2},{#SNMPINDEX} (风扇状态)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2011.2.23.1.9.1.1.1.2.{#SNMPINDEX}'
key: 'FanState[{#SNMPVALUE2},{#SNMPINDEX}]'
delay: '180'
valuemap:
name: 华为风扇运行状态5.25.31
tags:
-
tag: Application
value: 风扇
trigger_prototypes:
-
uuid: 70af682926c14861be70148942bdc03f
expression: 'last(/LW_Template SNMP Huawei Switch Network_S with Optical General/FanState[{#SNMPVALUE2},{#SNMPINDEX}])>1'
name: '[网络设备]{HOST.NAME}设备风扇{#SNMPVALUE2} 异常'
priority: HIGH
description: |
(状态值表示当前状态)
1⇒正常
2⇒异常
manual_close: 'YES'
-
uuid: 9dddd7e8c7b2403c9fd20dd58cc5c97e
name: 风扇5
type: SNMP_AGENT
snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2011.5.25.31.1.1.10.1.2]'
key: Fan5.25.31
delay: '3600'
lifetime: 3d
description: 5.25.31
item_prototypes:
-
uuid: 5254b5d836994b66b40add91efff6362
name: '{#SNMPINDEX} (风扇在位状态)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.10.1.6.{#SNMPINDEX}'
key: 'FanPresent[{#SNMPINDEX}]'
delay: '180'
valuemap:
name: 华为风扇在位状态5.25.31
tags:
-
tag: Application
value: 风扇
trigger_prototypes:
-
uuid: 379bc9ebab7f40fbb3d5ac604fa70215
expression: 'last(/LW_Template SNMP Huawei Switch Network_S with Optical General/FanPresent[{#SNMPINDEX}])>1'
name: '[网络设备]{HOST.NAME}设备风扇{#SNMPVALUE}不在位'
status: DISABLED
priority: HIGH
description: |
状态值表示:
1⇒在位
2⇒不在位
-
uuid: daefd9a021464ad2b8b5dcc31a673fbf
name: '{#SNMPINDEX} (风扇转速)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.10.1.5.{#SNMPINDEX}'
key: 'FanRPM[{#SNMPINDEX}]'
delay: '180'
units: '(% or rpm)'
tags:
-
tag: Application
value: 风扇
-
uuid: 0a625c74b3634e94a9625f4bfc369021
name: '{#SNMPINDEX} (单板槽位号)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.10.1.1.{#SNMPINDEX}'
key: 'FanSlot[{#SNMPINDEX}]'
delay: '86400'
tags:
-
tag: Application
value: 风扇
-
uuid: 606563277a1a4bc8bb3000022eb2c41b
name: '{#SNMPINDEX} (风扇运行状态)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.10.1.7.{#SNMPINDEX}'
key: 'FanState[{#SNMPINDEX}]'
delay: '180'
valuemap:
name: 华为风扇运行状态5.25.31
tags:
-
tag: Application
value: 风扇
trigger_prototypes:
-
uuid: 171b0d552a084a32a3b03f2d1c5d4809
expression: 'last(/LW_Template SNMP Huawei Switch Network_S with Optical General/FanState[{#SNMPINDEX}])>1'
name: '[网络设备]{HOST.NAME}设备风扇{#SNMPVALUE} 异常'
priority: HIGH
description: |
状态值表示:
1⇒正常
2⇒异常
-
uuid: c948757ce85a49a5babbeb2482d2e213
name: '端口表 UP'
type: SNMP_AGENT
snmp_oid: 'discovery[{#SNMPVALUE},IF-MIB::ifName,{#SNMPOPEN},IF-MIB::ifOperStatus]'
key: ifDescr
delay: '3600'
filter:
evaltype: AND
conditions:
-
macro: '{#SNMPOPEN}'
value: (1|3)
formulaid: A
-
macro: '{#SNMPVALUE}'
value: '@Network interfaces for discovery'
formulaid: B
lifetime: 3d
description: 端口表
item_prototypes:
-
uuid: 9b683c335df541e0a7932464fa0485e1
name: '{#SNMPVALUE}(端口启用管理状态)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifAdminStatus.{#SNMPINDEX}'
key: 'ifAdminStatus[{#SNMPVALUE}]'
delay: 2m
history: 7d
tags:
-
tag: Application
value: 端口状态
-
uuid: 0ce83993c4a74386add80a35bdb7c52e
name: '{#SNMPVALUE}(端口描述)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifAlias.{#SNMPINDEX}'
key: 'ifAlias[{#SNMPVALUE}]'
delay: 1d
history: 7d
trends: '0'
value_type: CHAR
description: 端口描述
tags:
-
tag: Application
value: 端口信息
-
uuid: 8945fe05a5fb42699b0dd97da30b35eb
name: '{#SNMPVALUE}(端口每秒接收速率)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifHCInOctets.{#SNMPINDEX}'
key: 'ifHCInOctetsPersecond[{#SNMPVALUE}]'
delay: 2m
history: 7d
units: bps
description: 端口每秒接收速率
preprocessing:
-
type: CHANGE_PER_SECOND
parameters:
- ''
-
type: MULTIPLIER
parameters:
- '8'
tags:
-
tag: Application
value: 端口速率
-
uuid: e7c4f493d5f64e259545b47ab0b4b9fe
name: '{#SNMPVALUE}(端口接收总流量)(5分钟)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifHCInOctets.{#SNMPINDEX}'
key: 'ifHCInOctets[{#SNMPVALUE}]'
delay: 5m
history: 7d
status: DISABLED
discover: NO_DISCOVER
units: B
preprocessing:
-
type: SIMPLE_CHANGE
parameters:
- ''
tags:
-
tag: Application
value: 端口速率
-
uuid: 65a6db5fcc6447519c68e5202b3d04f1
name: '{#SNMPVALUE}(端口每秒发送速率)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifHCOutOctets.{#SNMPINDEX}'
key: 'ifHCOutOctetsPersecond[{#SNMPVALUE}]'
delay: 2m
history: 7d
units: bps
description: |
端口每秒发送速率
.
preprocessing:
-
type: CHANGE_PER_SECOND
parameters:
- ''
-
type: MULTIPLIER
parameters:
- '8'
tags:
-
tag: Application
value: 端口速率
-
uuid: 5b2164f6d0f542629ef03e4d94869562
name: '{#SNMPVALUE}(端口发送总流量)(5分钟)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifHCOutOctets.{#SNMPINDEX}'
key: 'ifHCOutOctets[{#SNMPVALUE}]'
delay: 5m
history: 7d
status: DISABLED
discover: NO_DISCOVER
units: B
preprocessing:
-
type: SIMPLE_CHANGE
parameters:
- ''
tags:
-
tag: Application
value: 端口速率
-
uuid: a930518b5ac242d3b04698d65dfe1796
name: '{#SNMPVALUE}(端口带宽)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifHighSpeed.{#SNMPINDEX}'
key: 'ifHighSpeed[{#SNMPVALUE}]'
delay: 5m
history: 7d
units: bps
description: 端口带宽
preprocessing:
-
type: MULTIPLIER
parameters:
- '1000000'
tags:
-
tag: Application
value: 端口带宽
-
uuid: 9619e305a301401ca48ba40b304fc8fd
name: '{#SNMPVALUE}(端口序号)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifIndex.{#SNMPINDEX}'
key: 'ifIndex[{#SNMPVALUE}]'
delay: 1d
history: 7d
description: 端口序号
tags:
-
tag: Application
value: 端口信息
-
uuid: 6b37db8acd4e419fad4a17d9c3f3b317
name: '{#SNMPVALUE}(端口每秒接收丢包数)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifInDiscards.{#SNMPINDEX}'
key: 'ifInDiscards[{#SNMPVALUE}]'
delay: 10m
history: 7d
description: 端口每秒接收丢包数
preprocessing:
-
type: CHANGE_PER_SECOND
parameters:
- ''
tags:
-
tag: Application
value: 端口错丢包
-
uuid: f39592760a954139bf497fd1b79ac2c0
name: '{#SNMPVALUE}(端口每秒接收错误包数)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifInErrors.{#SNMPINDEX}'
key: 'ifInErrors[{#SNMPVALUE}]'
delay: 10m
history: 7d
description: 端口每秒接收错误包数
preprocessing:
-
type: CHANGE_PER_SECOND
parameters:
- ''
tags:
-
tag: Application
value: 端口错丢包
-
uuid: 72c48aa7d67e447483fb9cd3e9a50b1f
name: '{#SNMPVALUE}(端口名称)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifName.{#SNMPINDEX}'
key: 'ifName[{#SNMPVALUE}]'
delay: 1d
history: 7d
trends: '0'
value_type: CHAR
description: 端口名称
tags:
-
tag: Application
value: 端口信息
-
uuid: 09cc1bbbf2e14fd5aff7fd87ae913b72
name: '{#SNMPVALUE}(端口物理连接状态)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifOperStatus.{#SNMPINDEX}'
key: 'ifOperStatus[{#SNMPVALUE}]'
delay: 2m
history: 7d
tags:
-
tag: Application
value: 端口状态
trigger_prototypes:
-
uuid: 5d0dcc1ccbf842dba0a95cac3b8c517c
expression: 'last(/LW_Template SNMP Huawei Switch Network_S with Optical General/ifOperStatus[{#SNMPVALUE}])=2'
name: '[网络设备]{HOST.NAME}设备端口{#SNMPVALUE}处于DOWN状态'
priority: AVERAGE
description: |
状态值表示:
1⇒正常
2⇒关闭
{HOST.NAME}设备端口{#SNMPVALUE}状态不正常,可能连线松动、未启用、对端设备重启、端口损坏等
manual_close: 'YES'
-
uuid: 0586104b6d584fb3ba42aa4055a701f7
name: '{#SNMPVALUE}(端口每秒发送丢包数)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifOutDiscards.{#SNMPINDEX}'
key: 'ifOutDiscards[{#SNMPVALUE}]'
delay: 10m
history: 7d
description: 端口每秒发送丢包数
preprocessing:
-
type: CHANGE_PER_SECOND
parameters:
- ''
tags:
-
tag: Application
value: 端口错丢包
-
uuid: fbfa2b77ab294c15bf8206973b5ad89a
name: '{#SNMPVALUE}(端口每秒发送错误包数)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifOutErrors.{#SNMPINDEX}'
key: 'ifOutErrors[{#SNMPVALUE}]'
delay: 10m
history: 7d
description: 端口每秒发送错误包数
preprocessing:
-
type: CHANGE_PER_SECOND
parameters:
- ''
tags:
-
tag: Application
value: 端口错丢包
-
uuid: d4261ab4a8da4d85b41185f90f8b141f
name: '{#SNMPVALUE}(端口物理地址)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifPhysAddress.{#SNMPINDEX}'
key: 'ifPhysAddress[{#SNMPVALUE}]'
delay: 1d
history: 7d
trends: '0'
value_type: CHAR
description: 端口物理地址
tags:
-
tag: Application
value: 端口信息
-
uuid: ba359522bc0141e8a3c0373c93e74c13
name: '{#SNMPVALUE}(端口带宽接收利用率)'
type: CALCULATED
key: 'ifSpeedifHCInOctetsPersecond[{#SNMPVALUE}]'
delay: 2m
history: 7d
units: '%'
params: '100*last(//ifHCInOctetsPersecond[{#SNMPVALUE}])/last(//ifHighSpeed[{#SNMPVALUE}])'
description: 端口带宽利用率
tags:
-
tag: Application
value: 端口带宽
-
uuid: 17960a3fe5b74ed8860a5c4462c28fc3
name: '{#SNMPVALUE}(端口带宽发送利用率)'
type: CALCULATED
key: 'ifSpeedifHCOutOctetsPersecond[{#SNMPVALUE}]'
delay: 2m
history: 7d
units: '%'
params: '100*last(//ifHCOutOctetsPersecond[{#SNMPVALUE}])/last(//ifHighSpeed[{#SNMPVALUE}])'
description: 端口带宽利用率
tags:
-
tag: Application
value: 端口带宽
-
uuid: fa1ea6031c994470a175107334000ca8
name: '{#SNMPVALUE}(端口类型)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifType.{#SNMPINDEX}'
key: 'ifType[{#SNMPVALUE}]'
delay: 1d
history: 7d
description: 端口类型
tags:
-
tag: Application
value: 端口信息
trigger_prototypes:
-
uuid: 4ec08d65e72a4946a369de3e267d5ab7
expression: 'last(/LW_Template SNMP Huawei Switch Network_S with Optical General/ifSpeedifHCOutOctetsPersecond[{#SNMPVALUE}])>90 and last(/LW_Template SNMP Huawei Switch Network_S with Optical General/ifHighSpeed[{#SNMPVALUE}])>0'
name: '[网络设备]{HOST.NAME}设备端口{#SNMPVALUE}带宽发送利用率大于90%'
priority: WARNING
description: |
(状态值表示当前利用率)
{HOST.NAME}设备端口{#SNMPVALUE}带宽发送利用率大于90%
manual_close: 'YES'
-
uuid: ed51e445c805470298e804781d57c8d5
expression: 'last(/LW_Template SNMP Huawei Switch Network_S with Optical General/ifSpeedifHCInOctetsPersecond[{#SNMPVALUE}])>90 and last(/LW_Template SNMP Huawei Switch Network_S with Optical General/ifHighSpeed[{#SNMPVALUE}])>0'
name: '[网络设备]{HOST.NAME}设备端口{#SNMPVALUE}带宽接收利用率大于90%'
priority: WARNING
description: |
(状态值表示当前利用率)
{HOST.NAME}设备端口{#SNMPVALUE}带宽接收利用率大于80%
manual_close: 'YES'
graph_prototypes:
-
uuid: c531949b537247b798f852c2428a888a
name: '网络端口 {#SNMPVALUE} 利用率'
graph_items:
-
color: 2774A4
item:
host: 'LW_Template SNMP Huawei Switch Network_S with Optical General'
key: 'ifSpeedifHCOutOctetsPersecond[{#SNMPVALUE}]'
-
sortorder: '1'
color: A54F10
item:
host: 'LW_Template SNMP Huawei Switch Network_S with Optical General'
key: 'ifSpeedifHCInOctetsPersecond[{#SNMPVALUE}]'
-
uuid: c7e2965de5844ee7b3bc4a5ace617b43
name: '网络端口 {#SNMPVALUE} 总流量'
graph_items:
-
drawtype: GRADIENT_LINE
color: 00AA00
item:
host: 'LW_Template SNMP Huawei Switch Network_S with Optical General'
key: 'ifHCInOctets[{#SNMPVALUE}]'
-
sortorder: '1'
drawtype: GRADIENT_LINE
color: 3333FF
item:
host: 'LW_Template SNMP Huawei Switch Network_S with Optical General'
key: 'ifHCOutOctets[{#SNMPVALUE}]'
-
uuid: 0501cb0e7d2e46519bf749be6db9ab27
name: '网络端口 {#SNMPVALUE} 速率'
graph_items:
-
color: 2774A4
item:
host: 'LW_Template SNMP Huawei Switch Network_S with Optical General'
key: 'ifHCInOctetsPersecond[{#SNMPVALUE}]'
-
sortorder: '1'
color: A54F10
item:
host: 'LW_Template SNMP Huawei Switch Network_S with Optical General'
key: 'ifHCOutOctetsPersecond[{#SNMPVALUE}]'
-
uuid: b27effba8aba442fb5ba78220bed03eb
name: '端口表 DOWN'
type: SNMP_AGENT
snmp_oid: 'discovery[{#SNMPVALUE2},IF-MIB::ifName,{#SNMPOPEN},IF-MIB::ifOperStatus]'
key: ifDescr2
delay: '3600'
filter:
evaltype: AND
conditions:
-
macro: '{#SNMPOPEN}'
value: (2)
formulaid: A
-
macro: '{#SNMPVALUE2}'
value: '@Network interfaces for discovery'
formulaid: B
lifetime: 0d
description: 端口表
item_prototypes:
-
uuid: 1bf53dc86471487796f57631fc8dbcac
name: '{#SNMPVALUE2} (端口启用管理状态)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifAdminStatus.{#SNMPINDEX}'
key: 'ifAdminStatus[{#SNMPVALUE2}]'
delay: 2m
tags:
-
tag: Application
value: 端口状态
-
uuid: 3593f50cebf343cca787caf12914a72b
name: '{#SNMPVALUE2} (端口物理连接状态)'
type: SNMP_AGENT
snmp_oid: 'IF-MIB::ifOperStatus.{#SNMPINDEX}'
key: 'ifOperStatus[{#SNMPVALUE2}]'
delay: 2m
tags:
-
tag: Application
value: 端口状态
-
uuid: 0987f7a5095d4d21b737d15adaf71e4c
name: 主板模块5
type: SNMP_AGENT
snmp_oid: 'discovery[{#SNMPVALUE5},SNMPv2-SMI::mib-2.47.1.1.1.1.7,{#SNMPCLASS5},SNMPv2-SMI::mib-2.47.1.1.1.1.5,{#TEM5},1.3.6.1.4.1.2011.5.25.31.1.1.1.1.12]'
key: Module5.25.31
delay: '3600'
filter:
conditions:
-
macro: '{#SNMPCLASS5}'
value: '9'
formulaid: A
-
macro: '{#TEM5}'
value: '^[^ ]'
formulaid: B
lifetime: 3d
description: 5.25.31
item_prototypes:
-
uuid: e9ccc40895b74cf28a48a51d8c527a5d
name: '{#SNMPVALUE5},{#SNMPINDEX} (CPU使用率最高阈值)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.6.{#SNMPINDEX}'
key: 'CPUUsageThreshold[{#SNMPVALUE5},{#SNMPINDEX}]'
delay: '86400'
history: 7d
units: '%'
description: hwEntityCpuUsageThreshold
tags:
-
tag: Application
value: CPU
-
uuid: 0e1e3b8a43314d65951c038c9466f4b2
name: '{#SNMPVALUE5},{#SNMPINDEX} (CPU使用率)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.{#SNMPINDEX}'
key: 'CPUUsage[{#SNMPVALUE5},{#SNMPINDEX}]'
delay: '180'
history: 7d
units: '%'
description: hwEntityCpuUsage
tags:
-
tag: Application
value: CPU
trigger_prototypes:
-
uuid: cd87edbf02894c7a810dddcb6f55140b
expression: 'last(/LW_Template SNMP Huawei Switch Network_S with Optical General/CPUUsage[{#SNMPVALUE5},{#SNMPINDEX}])>80'
name: '[网络设备]{HOST.NAME}板卡[{#SNMPVALUE5}]CPU使用率平均3分钟高于80%'
priority: WARNING
description: |
(状态值表示当前使用率)
设备CPU使用率平均3分钟高于80%
manual_close: 'YES'
dependencies:
-
name: '[网络设备]{HOST.NAME}板卡[{#SNMPVALUE5}]CPU使用率平均3分钟高于90%'
expression: 'last(/LW_Template SNMP Huawei Switch Network_S with Optical General/CPUUsage[{#SNMPVALUE5},{#SNMPINDEX}])>90'
-
uuid: 1f73234e88984f5b8e73c1c90d92d31e
expression: 'last(/LW_Template SNMP Huawei Switch Network_S with Optical General/CPUUsage[{#SNMPVALUE5},{#SNMPINDEX}])>90'
name: '[网络设备]{HOST.NAME}板卡[{#SNMPVALUE5}]CPU使用率平均3分钟高于90%'
priority: HIGH
description: |
(状态值表示当前使用率)
设备CPU使用率平均3分钟高于90%
manual_close: 'YES'
-
uuid: d6a0115ae6a2484fb2379e5b65bba5ca
name: '{#SNMPVALUE5},{#SNMPINDEX} (厂商)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.47.1.1.1.1.12.{#SNMPINDEX}'
key: 'Manufacturer[{#SNMPVALUE5},{#SNMPINDEX}]'
delay: '86400'
history: 7d
trends: '0'
value_type: CHAR
tags:
-
tag: Application
value: 主板信息
-
uuid: a9778bcd61e64924b6a7ad650bb9229a
name: '{#SNMPVALUE5},{#SNMPINDEX} (内存总大小)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.9.{#SNMPINDEX}'
key: 'MemoryTotal[{#SNMPVALUE5},{#SNMPINDEX}]'
delay: '86400'
history: 7d
units: B
description: hwEntityMemSize
tags:
-
tag: Application
value: 内存
-
uuid: 08a5257c02424e7ea8f7783b9a7bcefb
name: '{#SNMPVALUE5},{#SNMPINDEX} (内存使用率最高阈值)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.8.{#SNMPINDEX}'
key: 'MemoryUsageThreshold[{#SNMPVALUE5},{#SNMPINDEX}]'
delay: '86400'
history: 7d
units: '%'
description: hwEntityMemUsageThreshold
tags:
-
tag: Application
value: 内存
-
uuid: 83d6cbaba57d4fa6a94579fa3c713102
name: '{#SNMPVALUE5},{#SNMPINDEX} (内存使用率)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.7.{#SNMPINDEX}'
key: 'MemoryUsage[{#SNMPVALUE5},{#SNMPINDEX}]'
delay: '180'
history: 7d
units: '%'
description: hwEntityMemUsage
tags:
-
tag: Application
value: 内存
trigger_prototypes:
-
uuid: 661b1d541fe64b18ab93519e8ccf08d2
expression: 'last(/LW_Template SNMP Huawei Switch Network_S with Optical General/MemoryUsage[{#SNMPVALUE5},{#SNMPINDEX}])>80'
name: '[网络设备]{HOST.NAME}板卡[{#SNMPVALUE5}]内存使用率平均3分钟高于80%'
priority: WARNING
description: |
(状态值表示当前使用率)
设备内存使用率平均3分钟高于80%
manual_close: 'YES'
dependencies:
-
name: '[网络设备]{HOST.NAME}板卡[{#SNMPVALUE5}]内存使用率平均3分钟高于90%'
expression: 'last(/LW_Template SNMP Huawei Switch Network_S with Optical General/MemoryUsage[{#SNMPVALUE5},{#SNMPINDEX}])>90'
-
uuid: c526d44f27034da59113b74239f96af0
expression: 'last(/LW_Template SNMP Huawei Switch Network_S with Optical General/MemoryUsage[{#SNMPVALUE5},{#SNMPINDEX}])>90'
name: '[网络设备]{HOST.NAME}板卡[{#SNMPVALUE5}]内存使用率平均3分钟高于90%'
priority: HIGH
description: |
(状态值表示当前使用率)
设备内存使用率平均3分钟高于90%
manual_close: 'YES'
-
uuid: d060b3868a2e49a6873844ee1d89b10e
name: '{#SNMPVALUE5},{#SNMPINDEX} (型号)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.47.1.1.1.1.13.{#SNMPINDEX}'
key: 'Model[{#SNMPVALUE5},{#SNMPINDEX}]'
delay: '86400'
history: 7d
trends: '0'
value_type: CHAR
tags:
-
tag: Application
value: 主板信息
-
uuid: 8dd0ecbdac2c4d849cee479bb5de8bee
name: '{#SNMPVALUE5},{#SNMPINDEX} (序列号)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.47.1.1.1.1.11.{#SNMPINDEX}'
key: 'Serial[{#SNMPVALUE5},{#SNMPINDEX}]'
delay: '86400'
history: 7d
trends: '0'
value_type: CHAR
tags:
-
tag: Application
value: 主板信息
-
uuid: f2eac6502da041bebbce5d19528e5a73
name: '{#SNMPVALUE5},{#SNMPINDEX} (当前温度)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.11.{#SNMPINDEX}'
key: 'TemperatureBoard[{#SNMPVALUE5},{#SNMPINDEX}]'
delay: '180'
history: 7d
units: °C
description: hwEntityTemperature
tags:
-
tag: Application
value: 温度
-
uuid: 96577095ad1b4893b18a24e5c5c918c4
name: '{#SNMPVALUE5},{#SNMPINDEX} (温度最高阈值)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.12.{#SNMPINDEX}'
key: 'TemperatureHighThresholdBoard[{#SNMPVALUE5},{#SNMPINDEX}]'
delay: '86400'
history: 7d
units: °C
description: hwEntityTemperatureThreshold
tags:
-
tag: Application
value: 温度
-
uuid: 8d94316147214e60b2d4bc390ccfbaf4
name: '{#SNMPVALUE5},{#SNMPINDEX} (软件版本)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.47.1.1.1.1.10.{#SNMPINDEX}'
key: 'Version[{#SNMPVALUE5},{#SNMPINDEX}]'
delay: '86400'
history: 7d
trends: '0'
value_type: CHAR
tags:
-
tag: Application
value: 主板信息
-
uuid: 46359d06b39f4f94b607c64a252a62c8
name: '{#SNMPVALUE5},{#SNMPINDEX} (电压值)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.13.{#SNMPINDEX}'
key: 'VoltageBoard[{#SNMPVALUE5},{#SNMPINDEX}]'
delay: '180'
history: 7d
value_type: FLOAT
units: V
description: hwEntityVoltage
preprocessing:
-
type: MULTIPLIER
parameters:
- '0.001'
tags:
-
tag: Application
value: 电压
-
uuid: 8f4c3733969a4d6890b717644a46e75e
name: '{#SNMPVALUE5},{#SNMPINDEX} (电压最高阈值)'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.2011.5.25.31.1.1.1.1.15.{#SNMPINDEX}'
key: 'VoltageHighThresholdBoard[{#SNMPVALUE5},{#SNMPINDEX}]'
delay: '86400'
history: 7d
value_type: FLOAT
units: V
description: hwEntityVoltageHighThreshold
preprocessing:
-
type: MULTIPLIER
parameters:
- '0.001'
tags:
-
tag: Application
value: 电压