-
Notifications
You must be signed in to change notification settings - Fork 0
/
d-link-des-1228-me-b2.yaml
2077 lines (2074 loc) · 86.1 KB
/
d-link-des-1228-me-b2.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.4'
template_groups:
- uuid: 36bff6c29af64692839d077febfc7079
name: 'Templates/Network devices'
templates:
- uuid: c418bb9a3b2c4cb8b9cdc161ebec20e8
template: 'D-Link DES-1228-ME B2'
name: 'D-Link DES-1228-ME B2'
description: |
Основано на "D-Link DES_DGS Switch v6.4"
- Добавлено закрытие триггера LinkDown, если интерфейс выключен вручную (по AdminStatus).
- Отключено EtherLike-MIB Discovery - кому сейчас нужна проверка дуплекса? Достаточно детекта снижения скорости на интерфейсе.
- Firmware Version заносим в inventory - Software
- из всех имён интерфейсных триггеров убрано ({#IFALIAS})
groups:
- name: 'Templates/Network devices'
items:
- uuid: 29d8715f911e4e81a5dcf7e9cdee4cd0
name: 'ICMP ping'
type: SIMPLE
key: icmpping
history: 1w
valuemap:
name: 'Service state'
tags:
- tag: component
value: health
- tag: component
value: network
triggers:
- uuid: bbb49f2bac6540c09863105003c67bc2
expression: 'max(/D-Link DES-1228-ME B2/icmpping,#3)=0'
name: 'Unavailable by ICMP ping'
priority: HIGH
description: 'Last three attempts returned timeout. Please check device connectivity.'
tags:
- tag: scope
value: availability
- uuid: 498d14fd0da64cd394bbe3ec124fadab
name: 'ICMP loss'
type: SIMPLE
key: icmppingloss
history: 1w
value_type: FLOAT
units: '%'
tags:
- tag: component
value: health
- tag: component
value: network
triggers:
- uuid: 2ce1680918304be3bf9b134bf8b7fadf
expression: 'min(/D-Link DES-1228-ME B2/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/D-Link DES-1228-ME B2/icmppingloss,5m)<100'
name: 'High ICMP ping loss'
opdata: 'Loss: {ITEM.LASTVALUE1}'
priority: WARNING
dependencies:
- name: 'Unavailable by ICMP ping'
expression: 'max(/D-Link DES-1228-ME B2/icmpping,#3)=0'
tags:
- tag: scope
value: availability
- tag: scope
value: performance
- uuid: 2daffeeb8bcd479f9c8abdf04845845d
name: 'ICMP response time'
type: SIMPLE
key: icmppingsec
history: 1w
value_type: FLOAT
units: s
tags:
- tag: component
value: health
- tag: component
value: network
triggers:
- uuid: 26c5c8ee690e4e3ca6d603c596c4752e
expression: 'avg(/D-Link DES-1228-ME B2/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(/D-Link DES-1228-ME B2/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/D-Link DES-1228-ME B2/icmppingloss,5m)<100'
- name: 'Unavailable by ICMP ping'
expression: 'max(/D-Link DES-1228-ME B2/icmpping,#3)=0'
tags:
- tag: scope
value: availability
- tag: scope
value: performance
- uuid: a69766c6ec1e4b339def15a1d35fc5e1
name: 'SNMP traps (fallback)'
type: SNMP_TRAP
key: snmptrap.fallback
delay: '0'
history: 2w
trends: '0'
value_type: LOG
description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items'
logtimefmt: 'hh:mm:sszyyyy/MM/dd'
tags:
- tag: component
value: network
- uuid: 42b1920d74c14e17ab71002dfd9c6cb5
name: 'System contact details'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.4.0
key: 'system.contact[sysContact.0]'
delay: 15m
history: 2w
trends: '0'
value_type: CHAR
description: |
MIB: SNMPv2-MIB
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
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
tags:
- tag: component
value: system
- uuid: 9ed7070b4a3248e68b94fbd607dde47e
name: 'CPU utilization'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.171.12.1.1.6.2.0
key: 'system.cpu.util[agentCPUutilizationIn1min.0]'
history: 7d
value_type: FLOAT
units: '%'
description: |
MIB: DLINK-AGENT-MIB
The unit of time is 1 minute. The value will be between 0% (idle) and 100%(very busy).
tags:
- tag: component
value: cpu
triggers:
- uuid: 88a175b488c04ece9c44d45e1befba9d
expression: 'min(/D-Link DES-1228-ME B2/system.cpu.util[agentCPUutilizationIn1min.0],5m)>{$CPU.UTIL.CRIT}'
name: 'High CPU utilization'
event_name: 'High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)'
opdata: 'Current utilization: {ITEM.LASTVALUE1}'
priority: AVERAGE
description: 'The CPU utilization is too high. The system might be slow to respond.'
tags:
- tag: scope
value: performance
- uuid: cc7165eff602436c97c8ddd3e31f43f3
name: 'System description'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.1.0
key: 'system.descr[sysDescr.0]'
delay: 15m
history: 2w
trends: '0'
value_type: CHAR
description: |
MIB: SNMPv2-MIB
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: MODEL
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
tags:
- tag: component
value: system
triggers:
- uuid: f1f79d2340ef4838aa5c6133cb5146e1
expression: 'last(/D-Link DES-1228-ME B2/system.descr[sysDescr.0])<>{$SYS.DESCR} and length(last(/D-Link DES-1228-ME B2/system.descr[sysDescr.0]))>0'
name: 'Wrong template attached to switch'
priority: INFO
- uuid: 969e379ab12742f49a6c1684cf6c8e67
name: 'Firmware version'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.16.19.2.0
key: system.hw.firmware
delay: 1h
history: 2w
trends: '0'
value_type: CHAR
description: 'RMON2-MIB::probeSoftwareRev.0'
inventory_link: SOFTWARE
preprocessing:
- type: STR_REPLACE
parameters:
- 'Build '
- ''
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: system
triggers:
- uuid: c18a6976073f408395a08a18bbf9c1b9
expression: 'last(/D-Link DES-1228-ME B2/system.hw.firmware,#1)<>last(/D-Link DES-1228-ME B2/system.hw.firmware,#2) and length(last(/D-Link DES-1228-ME B2/system.hw.firmware))>0'
name: 'Firmware has changed'
opdata: 'Current value: {ITEM.LASTVALUE1}'
priority: INFO
description: 'Firmware version has changed. Acknowledge to close the problem manually.'
manual_close: 'YES'
tags:
- tag: scope
value: notice
- uuid: be06b800cdff4625b7b8cd5ea7a77851
name: 'Hardware serial number'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.171.12.1.1.12.0
key: system.hw.serialnumber
delay: 1h
history: 2w
trends: '0'
value_type: CHAR
description: |
MIB: DLINK-AGENT-MIB
A text string containing the serial number of this device.
inventory_link: SERIALNO_A
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: system
triggers:
- uuid: 933ba5ec5bd545068217f6949103490e
expression: 'last(/D-Link DES-1228-ME B2/system.hw.serialnumber,#1)<>last(/D-Link DES-1228-ME B2/system.hw.serialnumber,#2) and length(last(/D-Link DES-1228-ME B2/system.hw.serialnumber))>0'
name: 'Device has been replaced'
event_name: 'Device has been replaced (new serial number received)'
priority: INFO
description: 'Device serial number has changed. Acknowledge to close the problem manually.'
manual_close: 'YES'
tags:
- tag: scope
value: notice
- uuid: 567a603ace484d808440d17cd7507b3b
name: 'Uptime (hardware)'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.25.1.1.0
key: 'system.hw.uptime[hrSystemUptime.0]'
history: 2w
trends: '0'
units: uptime
description: |
MIB: HOST-RESOURCES-MIB
The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.
preprocessing:
- type: CHECK_NOT_SUPPORTED
parameters:
- ''
error_handler: CUSTOM_VALUE
error_handler_params: '0'
- type: MULTIPLIER
parameters:
- '0.01'
tags:
- tag: component
value: system
- uuid: 31d21f6c45924ef19e1ee79b3f63e99d
name: 'Hardware version(revision)'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.16.19.3.0
key: system.hw.version
delay: 1h
history: 2w
trends: '0'
value_type: CHAR
description: 'RMON2-MIB::probeHardwareRev.0'
inventory_link: HARDWARE
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: system
- uuid: 79acb2aecf874d3a8409e69e23591c1a
name: 'System location'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.6.0
key: 'system.location[sysLocation.0]'
delay: 15m
history: 2w
trends: '0'
value_type: CHAR
description: |
MIB: SNMPv2-MIB
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
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
tags:
- tag: component
value: system
- uuid: 553eaec5fa904524894b70122c7cb28e
name: 'MAC address'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.17.1.1.0
key: system.mac.address
delay: 6h
trends: '0'
value_type: CHAR
description: 'BRIDGE-MIB::dot1dBaseBridgeAddress.0'
inventory_link: MACADDRESS_A
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: network
- uuid: 9d21fb22cc154adc86e136d29ac1ede2
name: 'System name'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.5.0
key: system.name
delay: 15m
history: 2w
trends: '0'
value_type: CHAR
description: |
MIB: SNMPv2-MIB
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
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
tags:
- tag: component
value: system
triggers:
- uuid: 9560a57d8b044317a56bf34e1a3723e0
expression: 'last(/D-Link DES-1228-ME B2/system.name,#1)<>last(/D-Link DES-1228-ME B2/system.name,#2) and length(last(/D-Link DES-1228-ME B2/system.name))>0'
name: 'System name has changed'
event_name: 'System name has changed (new name: {ITEM.VALUE})'
priority: INFO
description: 'The name of the system has changed. Acknowledge to close the problem manually.'
manual_close: 'YES'
tags:
- tag: scope
value: notice
- tag: scope
value: security
- uuid: 4ad37e4b964a4cd397fd3ec3e75851b2
name: 'Uptime (network)'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.3.0
key: 'system.net.uptime[sysUpTime.0]'
history: 2w
trends: '0'
units: uptime
description: |
MIB: SNMPv2-MIB
The time (in hundredths of a second) since the network management portion of the system was last re-initialized.
preprocessing:
- type: MULTIPLIER
parameters:
- '0.01'
tags:
- tag: component
value: system
- uuid: 18cfce2dc7604a3a988cc2823a566c67
name: 'System object ID'
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.2.0
key: 'system.objectid[sysObjectID.0]'
delay: 15m
history: 2w
trends: '0'
value_type: CHAR
description: |
MIB: SNMPv2-MIB
The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'.
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
tags:
- tag: component
value: system
- uuid: d40ceb229d3e4009af25684511ae4297
name: 'SNMP agent availability'
type: INTERNAL
key: 'zabbix[host,snmp,available]'
history: 7d
description: |
Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list.
Possible value:
0 - not available
1 - available
2 - unknown
valuemap:
name: zabbix.host.available
tags:
- tag: component
value: health
- tag: component
value: network
triggers:
- uuid: 9016f33400d44cbb8f55ed5db281f886
expression: 'max(/D-Link DES-1228-ME B2/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0'
name: 'No SNMP data collection'
opdata: 'Current state: {ITEM.LASTVALUE1}'
priority: WARNING
description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.'
dependencies:
- name: 'Unavailable by ICMP ping'
expression: 'max(/D-Link DES-1228-ME B2/icmpping,#3)=0'
tags:
- tag: scope
value: availability
discovery_rules:
- uuid: 1b43c3d19dc043c39992db76eed6be18
name: 'SFP DDM discovery'
type: SNMP_AGENT
snmp_oid: 'discovery[{#SFPPORT},1.3.6.1.4.1.171.12.72.2.1.1.1.1,{#SFPCHK},1.3.6.1.2.1.31.1.1.1.18]'
key: dlink.sfp.ddm.discovery
delay: 12h
status: DISABLED
filter:
conditions:
- macro: '{#SFPCHK}'
value: '{$SFPCHK.MATCHES}'
formulaid: A
lifetime: 3d
description: 'Для включения этой проверки надо вписать в дескрипшен порта слово "spy". Подразумевается, что индекс ifAlias''а порта с этим словом и индекс порта с SFP совпадают. Если нет - нужно пересчитывать snmpindex.'
item_prototypes:
- uuid: 056478eefeb941789111d16a5a58b104
name: 'SFP {#SFPPORT}: DDM bias current'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.171.12.72.2.1.1.1.4.{#SNMPINDEX}'
key: 'DDM-MGMT-MIB[swDdmBiasCurrent.{#SNMPINDEX}]'
delay: 10m
value_type: FLOAT
units: mA
preprocessing:
- type: MATCHES_REGEX
parameters:
- '[-]?[0-9.]+'
error_handler: CUSTOM_VALUE
error_handler_params: '0'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
- uuid: 4dda02548a0a4399b594a6887a7c1484
name: 'SFP {#SFPPORT}: DDM RX power low warning threshold'
type: SNMP_AGENT
snmp_oid: '.1.3.6.1.4.1.171.12.72.3.1.1.1.5.{#SNMPINDEX}.5'
key: 'DDM-MGMT-MIB[swDdmLowWarnRX.{#SNMPINDEX}]'
delay: 2h
value_type: FLOAT
units: dBm
preprocessing:
- type: MATCHES_REGEX
parameters:
- '[-]?[0-9.]+'
error_handler: CUSTOM_VALUE
error_handler_params: '-40'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
- uuid: 95889e2b7eae4a03b3651625859c4ea0
name: 'SFP {#SFPPORT}: DDM TX power low warning threshold'
type: SNMP_AGENT
snmp_oid: '.1.3.6.1.4.1.171.12.72.3.1.1.1.5.{#SNMPINDEX}.4'
key: 'DDM-MGMT-MIB[swDdmLowWarnTX.{#SNMPINDEX}]'
delay: 2h
value_type: FLOAT
units: dBm
preprocessing:
- type: MATCHES_REGEX
parameters:
- '[-]?[0-9.]+'
error_handler: CUSTOM_VALUE
error_handler_params: '-40'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
- uuid: 5e396dfe57d1464b84aca30482d63be7
name: 'SFP {#SFPPORT}: DDM RX power'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.171.12.72.2.1.1.1.6.{#SNMPINDEX}'
key: 'DDM-MGMT-MIB[swDdmRxPower.{#SNMPINDEX}]'
delay: 10m
value_type: FLOAT
units: dBm
preprocessing:
- type: MATCHES_REGEX
parameters:
- '[-]?[0-9.]+'
error_handler: CUSTOM_VALUE
error_handler_params: '-40'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
- uuid: 96922fa3097a4effaa2f09d1020f6534
name: 'SFP {#SFPPORT}: DDM temperature'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.171.12.72.2.1.1.1.2.{#SNMPINDEX}'
key: 'DDM-MGMT-MIB[swDdmTemperature.{#SNMPINDEX}]'
delay: 10m
value_type: FLOAT
units: C
preprocessing:
- type: MATCHES_REGEX
parameters:
- '[-]?[0-9.]+'
error_handler: CUSTOM_VALUE
error_handler_params: '0'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
- uuid: 15b9d3a024664406bb72c0e307131d81
name: 'SFP {#SFPPORT}: DDM TX power'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.171.12.72.2.1.1.1.5.{#SNMPINDEX}'
key: 'DDM-MGMT-MIB[swDdmTxPower.{#SNMPINDEX}]'
delay: 10m
value_type: FLOAT
units: dBm
preprocessing:
- type: MATCHES_REGEX
parameters:
- '[-]?[0-9.]+'
error_handler: CUSTOM_VALUE
error_handler_params: '-40'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
- uuid: be9ba5fb04ad4289b39bda1275050872
name: 'SFP {#SFPPORT}: DDM voltage'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.171.12.72.2.1.1.1.3.{#SNMPINDEX}'
key: 'DDM-MGMT-MIB[swDdmVoltage.{#SNMPINDEX}]'
delay: 10m
value_type: FLOAT
units: V
preprocessing:
- type: MATCHES_REGEX
parameters:
- '[-]?[0-9.]+'
error_handler: CUSTOM_VALUE
error_handler_params: '0'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
- uuid: 11421dff3d2444ec9e382dcc95756916
name: 'SFP {#SFPPORT}: SFP serial'
type: SNMP_AGENT
snmp_oid: 'DES3200-28-L2MGMT-MIB::swL2PortSfpInfoVendorSN.{#SNMPINDEX}'
key: 'DES3200-28-L2MGMT[sfp.serial.{#SNMPINDEX}]'
delay: 20m
trends: '0'
value_type: CHAR
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
- type: NOT_MATCHES_REGEX
parameters:
- (^Reading)
error_handler: DISCARD_VALUE
trigger_prototypes:
- uuid: 69749e4aa9474b1f8a1af8a91f777d34
expression: 'last(/D-Link DES-1228-ME B2/DES3200-28-L2MGMT[sfp.serial.{#SNMPINDEX}],#2)<>last(/D-Link DES-1228-ME B2/DES3200-28-L2MGMT[sfp.serial.{#SNMPINDEX}],#1) and length(last(/D-Link DES-1228-ME B2/DES3200-28-L2MGMT[sfp.serial.{#SNMPINDEX}]))>0'
name: 'SFP {#SFPPORT}: module changed'
priority: INFO
- uuid: 39f922ed95c44a97a65566f14b16eb7d
name: 'SFP {#SFPPORT}: SFP vendor P/N'
type: SNMP_AGENT
snmp_oid: 'DES3200-28-L2MGMT-MIB::swL2PortSfpInfoVendorPN.{#SNMPINDEX}'
key: 'DES3200-28-L2MGMT[sfp.vendorPN.{#SNMPINDEX}]'
delay: 20m
trends: '0'
value_type: CHAR
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
- type: NOT_MATCHES_REGEX
parameters:
- (^Reading)
error_handler: DISCARD_VALUE
trigger_prototypes:
- uuid: 2db6f9c678304d1c8dcd7ee6f894735e
expression: 'last(/D-Link DES-1228-ME B2/DDM-MGMT-MIB[swDdmRxPower.{#SNMPINDEX}])<=last(/D-Link DES-1228-ME B2/DDM-MGMT-MIB[swDdmLowWarnRX.{#SNMPINDEX}]) and nodata(/D-Link DES-1228-ME B2/DDM-MGMT-MIB[swDdmRxPower.{#SNMPINDEX}],12h)<>1 and last(/D-Link DES-1228-ME B2/DDM-MGMT-MIB[swDdmLowWarnRX.{#SNMPINDEX}])<>-40'
name: 'SFP {#SFPPORT}: RX level is less than Low Warning'
priority: WARNING
- uuid: af1b146831ab455abc5024ed31924f42
name: 'FAN Discovery'
type: SNMP_AGENT
snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.171.12.11.1.7.1.2,{#STATUS},1.3.6.1.4.1.171.12.11.1.7.1.3]'
key: fan.discovery
delay: 12h
status: DISABLED
filter:
conditions:
- macro: '{#STATUS}'
value: '[^0]'
formulaid: A
description: 'swFanID of EQUIPMENT-MIB::swFanTable'
item_prototypes:
- uuid: c123348ce06b4aad9d07924f8da47801
name: '#{#SNMPVALUE}: Fan status'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.171.12.11.1.7.1.3.{#SNMPINDEX}'
key: 'sensor.fan.status[swFanStatus.{#SNMPINDEX}]'
delay: 3m
history: 2w
trends: '0'
description: |
MIB: EQUIPMENT-MIB
Indicates the current fan status.
speed-0 : If the fan function is normal and the fan does not spin due to the temperature not reaching the threshold, the status of the fan is speed 0.
speed-low : Fan spin using the lowest speed.
speed-middle: Fan spin using the middle speed.
speed-high : Fan spin using the highest speed.
valuemap:
name: 'EQUIPMENT-MIB::swFanStatus'
tags:
- tag: component
value: fan
trigger_prototypes:
- uuid: aa574e4a416f4ab8a1a78843c35650aa
expression: 'count(/D-Link DES-1228-ME B2/sensor.fan.status[swFanStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1'
name: '#{#SNMPVALUE}: Fan is in critical state'
opdata: 'Current state: {ITEM.LASTVALUE1}'
priority: AVERAGE
description: 'Please check the fan unit'
tags:
- tag: scope
value: availability
- tag: scope
value: performance
- uuid: e31ae5f61c3e49b3a645521fb83c0eb6
name: 'Memory Discovery'
type: SNMP_AGENT
snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.171.12.1.1.9.1.1]'
key: memory.discovery
delay: 12h
item_prototypes:
- uuid: 1e47e63d4ccc4016bbc52cb08d5bacc4
name: '#{#SNMPVALUE}: Memory utilization'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.4.1.171.12.1.1.9.1.4.{#SNMPINDEX}'
key: 'vm.memory.util[agentDRAMutilization.{#SNMPINDEX}]'
history: 7d
value_type: FLOAT
units: '%'
description: |
MIB: DLINK-AGENT-MIB
The percentage of used DRAM memory of the total DRAM memory available.The value will be between 0%(idle) and 100%(very busy)
tags:
- tag: component
value: memory
trigger_prototypes:
- uuid: 84bd3ef5713c4b15a1f3754656459bfa
expression: 'min(/D-Link DES-1228-ME B2/vm.memory.util[agentDRAMutilization.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}'
name: '#{#SNMPVALUE}: High memory utilization'
event_name: '#{#SNMPVALUE}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)'
priority: AVERAGE
description: 'The system is running out of free memory.'
tags:
- tag: scope
value: capacity
- tag: scope
value: performance
graph_prototypes:
- uuid: 0294faf307244b399e41d9b72932db48
name: '#{#SNMPVALUE}: Memory utilization'
ymin_type_1: FIXED
ymax_type_1: FIXED
graph_items:
- drawtype: GRADIENT_LINE
color: 199C0D
item:
host: 'D-Link DES-1228-ME B2'
key: 'vm.memory.util[agentDRAMutilization.{#SNMPINDEX}]'
- uuid: 3f1d60f6fda14b1dba755658f30c2988
name: 'Network interfaces discovery'
type: SNMP_AGENT
snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]'
key: net.if.discovery
delay: 6h
filter:
evaltype: AND
conditions:
- macro: '{#IFADMINSTATUS}'
value: '{$NET.IF.IFADMINSTATUS.MATCHES}'
formulaid: A
- macro: '{#IFADMINSTATUS}'
value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: B
- macro: '{#IFALIAS}'
value: '{$NET.IF.IFALIAS.MATCHES}'
formulaid: C
- macro: '{#IFALIAS}'
value: '{$NET.IF.IFALIAS.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: D
- macro: '{#IFDESCR}'
value: '{$NET.IF.IFDESCR.MATCHES}'
formulaid: E
- macro: '{#IFDESCR}'
value: '{$NET.IF.IFDESCR.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: F
- macro: '{#IFNAME}'
value: '{$NET.IF.IFNAME.MATCHES}'
formulaid: G
- macro: '{#IFNAME}'
value: '{$NET.IF.IFNAME.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: H
- macro: '{#IFOPERSTATUS}'
value: '{$NET.IF.IFOPERSTATUS.MATCHES}'
formulaid: I
- macro: '{#IFOPERSTATUS}'
value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: J
- macro: '{#IFTYPE}'
value: '{$NET.IF.IFTYPE.MATCHES}'
formulaid: K
- macro: '{#IFTYPE}'
value: '{$NET.IF.IFTYPE.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: L
lifetime: 3d
description: 'Discovering interfaces from IF-MIB.'
item_prototypes:
- uuid: 72bde4ad1892429b80aa1ea997c4c292
name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}'
key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]'
delay: 3m
history: 7d
description: |
MIB: IF-MIB
The number of inbound packets which were chosen to be discarded
even though no errors had been detected to prevent their being deliverable to a higher-layer protocol.
One possible reason for discarding such a packet could be to free up buffer space.
Discontinuities in the value of this counter can occur at re-initialization of the management system,
and at other times as indicated by the value of ifCounterDiscontinuityTime.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: network
- tag: description
value: '{#IFALIAS}'
- tag: interface
value: '{#IFNAME}'
- uuid: 05fb51183abc45aaa03ae00b3ea910bf
name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}'
key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]'
delay: 3m
history: 7d
description: |
MIB: IF-MIB
For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: network
- tag: description
value: '{#IFALIAS}'
- tag: interface
value: '{#IFNAME}'
- uuid: 3bae4baa66834b73b09b5b866f0885e5
name: 'Interface {#IFNAME}({#IFALIAS}): Bits received'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}'
key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]'
delay: 3m
history: 7d
units: bps
description: |
MIB: IF-MIB
The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: MULTIPLIER
parameters:
- '8'
tags:
- tag: component
value: network
- tag: description
value: '{#IFALIAS}'
- tag: interface
value: '{#IFNAME}'
- uuid: 202e5957f22c4a21874a7fd7c7553d9c
name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}'
key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]'
delay: 3m
history: 7d
description: |
MIB: IF-MIB
The number of outbound packets which were chosen to be discarded
even though no errors had been detected to prevent their being deliverable to a higher-layer protocol.
One possible reason for discarding such a packet could be to free up buffer space.
Discontinuities in the value of this counter can occur at re-initialization of the management system,
and at other times as indicated by the value of ifCounterDiscontinuityTime.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: network
- tag: description
value: '{#IFALIAS}'
- tag: interface
value: '{#IFNAME}'
- uuid: b3570f5bb5144de8ac35f071ef285945
name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}'
key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]'
delay: 3m
history: 7d
description: |
MIB: IF-MIB
For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: network
- tag: description
value: '{#IFALIAS}'
- tag: interface
value: '{#IFNAME}'
- uuid: 3e313df03e91415bab02010ad0cb6db0
name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}'
key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]'
delay: 3m
history: 7d
units: bps
description: |
MIB: IF-MIB
The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: MULTIPLIER
parameters:
- '8'
tags:
- tag: component
value: network
- tag: description
value: '{#IFALIAS}'
- tag: interface
value: '{#IFNAME}'
- uuid: 81f8e01da8ae43799065c083d76bf3e1
name: 'Interface {#IFNAME}({#IFALIAS}): Speed'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}'
key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]'
delay: 5m
history: 7d
trends: '0'
units: bps
description: |
MIB: IF-MIB
An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to`n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero.
preprocessing:
- type: MULTIPLIER
parameters:
- '1000000'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
tags:
- tag: component
value: network
- tag: description
value: '{#IFALIAS}'
- tag: interface
value: '{#IFNAME}'
- uuid: 630a2c5d41954ecda56b931ee9f02b13
name: 'Interface {#IFNAME}({#IFALIAS}): Admin status'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}'
key: 'net.if.status[ifAdminStatus.{#SNMPINDEX}]'
delay: 5m
trends: '0'
description: 'The desired state of the interface. The testing(3) state indicates that no operational packets can be passed. When a managed system initializes, all interfaces start with ifAdminStatus in the down(2) state. As a result of either explicit management action or per configuration information retained by the managed system, ifAdminStatus is then changed to either the up(1) or testing(3) states (or remains in the down(2) state)."'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: network
- tag: description
value: '{#IFALIAS}'
- tag: interface
value: '{#IFNAME}'
- uuid: 564d380883d3417f831584564d5760f4
name: 'Interface {#IFNAME}({#IFALIAS}): Operational status'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}'
key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]'
history: 7d
trends: '0'
description: |
MIB: IF-MIB
The current operational state of the interface.
- The testing(3) state indicates that no operational packet scan be passed
- If ifAdminStatus is down(2) then ifOperStatus should be down(2)
- If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic
- It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection)
- It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state
- It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components.
valuemap:
name: 'IF-MIB::ifOperStatus'
tags:
- tag: component
value: network
- tag: description
value: '{#IFALIAS}'
- tag: interface
value: '{#IFNAME}'
- uuid: e0361ecb561a4ab69e0ccf2b2680d04f
name: 'Interface {#IFNAME}({#IFALIAS}): Interface type'
type: SNMP_AGENT
snmp_oid: '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}'
key: 'net.if.type[ifType.{#SNMPINDEX}]'
delay: 1h
history: 7d
trends: '0'
description: |
MIB: IF-MIB
The type of interface.
Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA),
through updating the syntax of the IANAifType textual convention.
valuemap:
name: 'IF-MIB::ifType'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: network
- tag: description
value: '{#IFALIAS}'
- tag: interface
value: '{#IFNAME}'
trigger_prototypes:
- uuid: de1a53b0de774e2284a5885c6bfcdd43
expression: |
change(/D-Link DES-1228-ME B2/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/D-Link DES-1228-ME B2/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0
and (
last(/D-Link DES-1228-ME B2/net.if.type[ifType.{#SNMPINDEX}])=6 or
last(/D-Link DES-1228-ME B2/net.if.type[ifType.{#SNMPINDEX}])=7 or
last(/D-Link DES-1228-ME B2/net.if.type[ifType.{#SNMPINDEX}])=11 or
last(/D-Link DES-1228-ME B2/net.if.type[ifType.{#SNMPINDEX}])=62 or
last(/D-Link DES-1228-ME B2/net.if.type[ifType.{#SNMPINDEX}])=69 or
last(/D-Link DES-1228-ME B2/net.if.type[ifType.{#SNMPINDEX}])=117
)
and
(last(/D-Link DES-1228-ME B2/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2)
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: |
(change(/D-Link DES-1228-ME B2/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/D-Link DES-1228-ME B2/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or
(last(/D-Link DES-1228-ME B2/net.if.status[ifOperStatus.{#SNMPINDEX}])=2)
name: 'Interface {#IFNAME}: Ethernet has changed to lower speed than it was before'
opdata: 'Current reported speed: {ITEM.LASTVALUE1}'
priority: INFO
description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.'