-
Notifications
You must be signed in to change notification settings - Fork 0
/
d-link-des-3200-28-cx.yaml
2071 lines (2068 loc) · 86.1 KB
/
d-link-des-3200-28-cx.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: 4924be57f2d14e89ad66e8a9744a491d
template: 'D-Link DES-3200-28 Cx'
name: 'D-Link DES-3200-28 Cx'
description: |
Основано на "D-Link DES_DGS Switch v6.4"
- Добавлено закрытие триггера LinkDown, если интерфейс выключен вручную (по AdminStatus).
- Отключено EtherLike-MIB Discovery - кому сейчас нужна проверка дуплекса? Достаточно детекта снижения скорости на интерфейсе.
- Firmware Version заносим в inventory - Software
- из всех имён интерфейсных триггеров убрано ({#IFALIAS})
- добавлен мониторинг DDM
groups:
- name: 'Templates/Network devices'
items:
- uuid: 5767db9364064947be69335c6cf9189b
name: 'ICMP ping'
type: SIMPLE
key: icmpping
history: 1w
valuemap:
name: 'Service state'
tags:
- tag: component
value: health
- tag: component
value: network
triggers:
- uuid: 54d05a8465c84ba29760b5a8b72eed0e
expression: 'max(/D-Link DES-3200-28 Cx/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: a0f906770dcd482d9afe1412a28327d0
name: 'ICMP loss'
type: SIMPLE
key: icmppingloss
history: 1w
value_type: FLOAT
units: '%'
tags:
- tag: component
value: health
- tag: component
value: network
triggers:
- uuid: 01b0a32f206946b7a43b086919dd32fe
expression: 'min(/D-Link DES-3200-28 Cx/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/D-Link DES-3200-28 Cx/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-3200-28 Cx/icmpping,#3)=0'
tags:
- tag: scope
value: availability
- tag: scope
value: performance
- uuid: 52bae1daf66a41308f1ebf9fb558bc59
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: ff83880eb89f40a7864b67a1c297d0b6
expression: 'avg(/D-Link DES-3200-28 Cx/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-3200-28 Cx/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/D-Link DES-3200-28 Cx/icmppingloss,5m)<100'
- name: 'Unavailable by ICMP ping'
expression: 'max(/D-Link DES-3200-28 Cx/icmpping,#3)=0'
tags:
- tag: scope
value: availability
- tag: scope
value: performance
- uuid: 5be7424dacd04b9981aa5085119e2cc2
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: bf769e3447a742c8a6021707619e906f
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: 99e03d007c2744119a66db98ea3f2de2
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: 2abef5879e014a25abc41b59915e7802
expression: 'min(/D-Link DES-3200-28 Cx/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: 446b4cbf9e9e47629ab69a1062f7c0df
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: 444d9bde7f4c49eca36799739357e666
expression: 'last(/D-Link DES-3200-28 Cx/system.descr[sysDescr.0])<>{$SYS.DESCR} and length(last(/D-Link DES-3200-28 Cx/system.descr[sysDescr.0]))>0'
name: 'Wrong template attached to switch'
priority: INFO
- uuid: 52534157817d4bf5940ee18cee9c7121
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: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: system
triggers:
- uuid: 8fd534b392bc429e8cefe4cc181eaba8
expression: 'last(/D-Link DES-3200-28 Cx/system.hw.firmware,#1)<>last(/D-Link DES-3200-28 Cx/system.hw.firmware,#2) and length(last(/D-Link DES-3200-28 Cx/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: f1a19a01c7304071887a1255348c1927
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: 6f8d5a22272e4cb5af9056b94aafeb5d
expression: 'last(/D-Link DES-3200-28 Cx/system.hw.serialnumber,#1)<>last(/D-Link DES-3200-28 Cx/system.hw.serialnumber,#2) and length(last(/D-Link DES-3200-28 Cx/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: 9714aa3743294ec39c3335100706b0b3
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: f7e14b252af841aaade091afdc3e275c
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: 4452634fca814fdeb1f81559eb32d0df
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: f040eddd18a64673bb248f112f7ac812
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: 69e96477ef744b3ebae3cdedc77e4178
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: f733677ea73d4e7c99e89af81acb747a
expression: 'last(/D-Link DES-3200-28 Cx/system.name,#1)<>last(/D-Link DES-3200-28 Cx/system.name,#2) and length(last(/D-Link DES-3200-28 Cx/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: 57278c0a31cd4818b8319274450f6d1d
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: f66c19968e2f4034aba0c2bd1f5297c6
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: 11cadcb8f3584a25b4519957131dca79
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: ca6fba014f184484b04b0c44bd8437bb
expression: 'max(/D-Link DES-3200-28 Cx/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-3200-28 Cx/icmpping,#3)=0'
tags:
- tag: scope
value: availability
discovery_rules:
- uuid: 82a816fbd5f640a78a1c811d99847801
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
filter:
conditions:
- macro: '{#SFPCHK}'
value: '{$SFPCHK.MATCHES}'
formulaid: A
lifetime: 3d
description: 'Для включения этой проверки надо вписать в дескрипшен порта слово "spy". Подразумевается, что индекс ifAlias''а порта с этим словом и индекс порта с SFP совпадают. Если нет - нужно пересчитывать snmpindex.'
item_prototypes:
- uuid: 095e370f4fea4efb9959119711f37b5e
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: c6f039149f0b4b6694dbf7e7df4315c2
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: 24f794ff8d1b47a98c59f8bbe5178298
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: 8db51ebaea274243b6b66ca61ee64e9c
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: 6bca659dcbc84dcc951437025f1c09fa
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: 5784fdfa11c6423784c45ea1d144a89a
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: 8dab2961daf74ea9a1ffe0eff3801459
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: df094c4b15554f03b5ed98435f6375ec
name: 'SFP {#SFPPORT}: SFP serial'
type: SNMP_AGENT
snmp_oid: 'DES3200-28-L2MGMT-MIB::swL2PortSfpInfoVendorSN.{#SNMPINDEX}'
key: 'DES3200-28-L2MGMT[sfp.serial.{#SNMPINDEX}]'
delay: 1h
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: 0f04e3fc6be64151a7b6141ff5900f94
expression: 'last(/D-Link DES-3200-28 Cx/DES3200-28-L2MGMT[sfp.serial.{#SNMPINDEX}],#2)<>last(/D-Link DES-3200-28 Cx/DES3200-28-L2MGMT[sfp.serial.{#SNMPINDEX}],#1) and length(last(/D-Link DES-3200-28 Cx/DES3200-28-L2MGMT[sfp.serial.{#SNMPINDEX}]))>0'
name: 'SFP {#SFPPORT}: module changed'
priority: INFO
manual_close: 'YES'
- uuid: 5f2564083ec74e75bb91cff7dece8465
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: 1h
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: 23988ed18c4449478de25a22a08607d8
expression: 'last(/D-Link DES-3200-28 Cx/DDM-MGMT-MIB[swDdmRxPower.{#SNMPINDEX}])<=last(/D-Link DES-3200-28 Cx/DDM-MGMT-MIB[swDdmLowWarnRX.{#SNMPINDEX}]) and nodata(/D-Link DES-3200-28 Cx/DDM-MGMT-MIB[swDdmRxPower.{#SNMPINDEX}],12h)<>1 and last(/D-Link DES-3200-28 Cx/DDM-MGMT-MIB[swDdmLowWarnRX.{#SNMPINDEX}])<>-40 and last(/D-Link DES-3200-28 Cx/DDM-MGMT-MIB[swDdmRxPower.{#SNMPINDEX}])<>-40'
name: 'SFP {#SFPPORT}: RX level is less than Low Warning'
priority: WARNING
- uuid: 2c0d2df2ba38454fba8027afd4fc5b34
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
filter:
conditions:
- macro: '{#STATUS}'
value: '[^0]'
formulaid: A
description: 'swFanID of EQUIPMENT-MIB::swFanTable'
item_prototypes:
- uuid: 1ef7bd68d15f44ac91680a17eca60e76
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: ad05d8342d1a49f4ad6b5e6973bb7683
expression: 'count(/D-Link DES-3200-28 Cx/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: 67a659537c9a465d9acb3dc3c238e054
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: 946b5cac8d89455287e08423c684f1dc
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: 125369ee9b074604b005877dc25a927f
expression: 'min(/D-Link DES-3200-28 Cx/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: 032cadabac1d4a1bbcbeb583628b12e3
name: '#{#SNMPVALUE}: Memory utilization'
ymin_type_1: FIXED
ymax_type_1: FIXED
graph_items:
- drawtype: GRADIENT_LINE
color: 199C0D
item:
host: 'D-Link DES-3200-28 Cx'
key: 'vm.memory.util[agentDRAMutilization.{#SNMPINDEX}]'
- uuid: 3d98d92887744f43845b7e69d1a3132a
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: a5c3767a6bbd465299491752b0bc600d
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: 7d420828e4e24c9daeca81ea2f8666c8
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: 73d5c50cf62b43d5bdecd3e3fe038374
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: d02f35f424714219b81f5f47256e1730
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: 962ad7e85d9e49a2ad950e9e101d7a07
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: 107dfbf461ef41b389203963b5a791f9
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: 792491b3340a4d3692b1723564265008
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: 2376abbb43094ef094b8a11675e69e13
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: b6a1c050ece744c681034d8430367899
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: dab0c07306fb4a4a9cff5bb0a443f796
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: 255bc85d049144b28e479409093b38f3
expression: |
change(/D-Link DES-3200-28 Cx/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/D-Link DES-3200-28 Cx/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0
and (
last(/D-Link DES-3200-28 Cx/net.if.type[ifType.{#SNMPINDEX}])=6 or
last(/D-Link DES-3200-28 Cx/net.if.type[ifType.{#SNMPINDEX}])=7 or
last(/D-Link DES-3200-28 Cx/net.if.type[ifType.{#SNMPINDEX}])=11 or
last(/D-Link DES-3200-28 Cx/net.if.type[ifType.{#SNMPINDEX}])=62 or
last(/D-Link DES-3200-28 Cx/net.if.type[ifType.{#SNMPINDEX}])=69 or
last(/D-Link DES-3200-28 Cx/net.if.type[ifType.{#SNMPINDEX}])=117
)
and
(last(/D-Link DES-3200-28 Cx/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2)
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: |
(change(/D-Link DES-3200-28 Cx/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/D-Link DES-3200-28 Cx/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or
(last(/D-Link DES-3200-28 Cx/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.'
manual_close: 'YES'
dependencies:
- name: 'Interface {#IFNAME}: Link down'
expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/D-Link DES-3200-28 Cx/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/D-Link DES-3200-28 Cx/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/D-Link DES-3200-28 Cx/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))'