-
Notifications
You must be signed in to change notification settings - Fork 634
/
generator.yml
911 lines (881 loc) · 29.7 KB
/
generator.yml
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
---
auths:
public_v1:
version: 1
public_v2:
version: 2
modules:
# Default IF-MIB interfaces table with ifIndex.
if_mib:
walk: [sysUpTime, interfaces, ifXTable]
lookups:
- source_indexes: [ifIndex]
lookup: ifAlias
- source_indexes: [ifIndex]
# Uis OID to avoid conflict with PaloAlto PAN-COMMON-MIB.
lookup: 1.3.6.1.2.1.2.2.1.2 # ifDescr
- source_indexes: [ifIndex]
# Use OID to avoid conflict with Netscaler NS-ROOT-MIB.
lookup: 1.3.6.1.2.1.31.1.1.1.1 # ifName
overrides:
ifAlias:
ignore: true # Lookup metric
ifDescr:
ignore: true # Lookup metric
ifName:
ignore: true # Lookup metric
ifType:
type: EnumAsInfo
# Default IP-MIB with ipv4InterfaceTable for example.
ip_mib:
walk: [ipv4InterfaceTable]
readynas:
walk:
- 1.3.6.1.4.1.4526 # Raid/Disks status
# Cisco Wireless LAN Controller
cisco_wlc:
walk:
- 1.3.6.1.4.1.14179.2.1.1.1.38 # bsnDot11EssNumberofMobileStations
- 1.3.6.1.4.1.14179.2.2.2.1.2 # bsnAPIfType
- 1.3.6.1.4.1.14179.2.2.2.1.4 # bsnAPIfPhyChannelNumber
- 1.3.6.1.4.1.14179.2.2.2.1.15 # bsnApIfNoOfUsers
- 1.3.6.1.4.1.14179.2.2.6.1 # bsnAPIfDot11CountersTable
- 1.3.6.1.4.1.14179.2.2.13.1.3 # bsnAPIfLoadChannelUtilization
- 1.3.6.1.4.1.14179.2.2.15.1.21 # bsnAPIfDBNoisePower
lookups:
- source_indexes: [bsnDot11EssIndex]
lookup: bsnDot11EssSsid
drop_source_indexes: true
- source_indexes: [bsnAPDot3MacAddress]
lookup: bsnAPName
drop_source_indexes: true
overrides:
bsnAPName:
type: DisplayString
# Dell OpenManage MIBs
dell:
walk:
- 1.3.6.1.4.1.674.10892.5.2 # statusGroup
- 1.3.6.1.4.1.674.10892.5.4 # systemDetailsGroup
- 1.3.6.1.4.1.674.10892.5.5 # storageDetailsGroup
# HPE MIBs
hpe:
walk:
- sysUpTime
- 1.3.6.1.4.1.232.1.2.2.1.1 # CPU
- 1.3.6.1.4.1.232.11 # Firmware version
- 1.3.6.1.4.1.232.14 # Asmd agent IDE/SATA
- 1.3.6.1.4.1.232.3.2.2.1 # RAID storage controller
- 1.3.6.1.4.1.232.3.2.3.1.1 # Logical drives
- 1.3.6.1.4.1.232.3.2.5.1.1 # Physical drives
- 1.3.6.1.4.1.232.5 # Asmd agent SCSI disks
- 1.3.6.1.4.1.232.6.2.14.13.1.6 # Memory size only
- 1.3.6.1.4.1.232.6.2.15 # Power meter
- 1.3.6.1.4.1.232.6.2.16 # BIOS state
- 1.3.6.1.4.1.232.6.2.17 # RAID controller battery
- 1.3.6.1.4.1.232.6.2.6.8.1 # Temperatures
- 1.3.6.1.4.1.232.6.2.9 # Power supply
- 1.3.6.1.4.1.232.9.2.2 # ILO Module
# APC/Schneider UPS Network Management Cards
#
# Note: older management cards only support SNMP v1 (AP9606 and
# AP9607, possibly others). Older versions of the firmware may only
# support v1 as well. If you only have newer cards you can switch to
# version v2c or v3.
#
# The management cards have relatively slow processors so don't poll
# very often and give a generous timeout to prevent spurious
# errors. Alternatively you can eliminate the interface polling (OIDs
# beginning with 1.3.6.1.2.1) to reduce the time taken for polling.
#
# MIB: https://download.schneider-electric.com/files?p_File_Name=powernet426.mib
# Guide: http://www.apc.com/salestools/ASTE-6Z5QEY/ASTE-6Z5QEY_R0_EN.pdf
# Download site: http://www.apc.com/us/en/tools/download/index.cfm
apcups:
walk:
- 1.3.6.1.4.1.318.1.1.1.2 # upsBattery
- 1.3.6.1.4.1.318.1.1.1.3 # upsInput
- 1.3.6.1.4.1.318.1.1.1.4 # upsOutput
- 1.3.6.1.4.1.318.1.1.1.7.2 # upsAdvTest
- 1.3.6.1.4.1.318.1.1.1.8.1 # upsCommStatus
- 1.3.6.1.4.1.318.1.1.1.12 # upsOutletGroups
- 1.3.6.1.4.1.318.1.1.10.2.3.2 # iemStatusProbesTable
- 1.3.6.1.4.1.318.1.1.26.4.3 # rPDU2DeviceStatusTable
- 1.3.6.1.4.1.318.1.1.26.6.3 # rPDU2PhaseStatusTable
- 1.3.6.1.4.1.318.1.1.26.8.3 # rPDU2BankStatusTable
- 1.3.6.1.4.1.318.1.1.26.10.2.2 # rPDU2SensorTempHumidityStatusTable
lookups:
- source_indexes: [upsOutletGroupStatusIndex]
lookup: upsOutletGroupStatusName
drop_source_indexes: true
- source_indexes: [iemStatusProbeIndex]
lookup: iemStatusProbeName
drop_source_indexes: true
overrides:
rPDU2BankStatusLoadState:
type: EnumAsStateSet
upsAdvBatteryCondition:
type: EnumAsStateSet
upsAdvBatteryChargingCurrentRestricted:
type: EnumAsStateSet
upsAdvBatteryChargerStatus:
type: EnumAsStateSet
# ServerTech Sentry 3 MIB
#
# Used by ServerTech PDUs
#
# ftp://ftp.servertech.com/Pub/SNMP/sentry3/Sentry3OIDTree.txt
# ftp://ftp.servertech.com/Pub/SNMP/sentry3/Sentry3.mib
servertech_sentry3:
max_repetitions: 4 # See https://github.com/prometheus/snmp_exporter/issues/1080
walk:
- 1.3.6.1.4.1.1718.3.2.2 # infeedTable
- 1.3.6.1.4.1.1718.3.2.3 # outletTable
overrides:
infeedCapacityUsed:
ignore: true # Composite metric: infeedLoadValue / infeedCapacity * 100
infeedVACapacityUsed:
ignore: true # Composite metric: infeedApparentPower / infeedVACapacity * 100
# ServerTech Sentry 4 MIB
#
# Used by ServerTech PDUs
#
# https://cdn10.servertech.com/assets/documents/documents/816/original/Sentry4OIDTree.txt
# https://cdn10.servertech.com/assets/documents/documents/815/original/Sentry4.mib
servertech_sentry4:
walk:
- 1.3.6.1.4.1.1718.4.1.3.3 # st4InputCordMonitorTable
- 1.3.6.1.4.1.1718.4.1.4.3 # st4LineMonitorTable
- 1.3.6.1.4.1.1718.4.1.5.3 # st4PhaseMonitorTable
- 1.3.6.1.4.1.1718.4.1.7.3 # st4BranchMonitorTable
- 1.3.6.1.4.1.1718.4.1.8.3 # st4OutletMonitorTable
- 1.3.6.1.4.1.1718.4.1.9.3 # st4TempSensorMonitorTable
- 1.3.6.1.4.1.1718.4.1.14.3 # st4FanSensorMonitorTable
lookups:
- source_indexes: [st4UnitIndex]
lookup: st4UnitName
- source_indexes: [st4UnitIndex, st4InputCordIndex]
lookup: st4InputCordName
drop_source_indexes: true
- source_indexes: [st4UnitIndex, st4InputCordIndex, st4LineIndex]
lookup: st4LineLabel
drop_source_indexes: true
- source_indexes: [st4UnitIndex, st4InputCordIndex, st4PhaseIndex]
lookup: st4PhaseLabel
drop_source_indexes: true
- source_indexes: [st4UnitIndex, st4InputCordIndex, st4BranchIndex]
lookup: st4BranchLabel
drop_source_indexes: true
- source_indexes: [st4UnitIndex, st4InputCordIndex, st4OutletIndex]
lookup: st4OutletName
drop_source_indexes: true
- source_indexes: [st4UnitIndex, st4AdcSensorIndex]
lookup: st4AdcSensorName
drop_source_indexes: true
- source_indexes: [st4UnitIndex, st4AdcSensorIndex, st4FanSensorIndex]
lookup: st4AdcSensorName
drop_source_indexes: true
overrides:
st4TempSensorValue:
scale: 0.1
help: The measured temperature on the sensor in degrees using the scale selected by st4TempSensorScale - 1.3.6.1.4.1.1718.4.1.9.3.1.1
# Palo Alto Firewalls
#
# Palo Alto MIBs can be found here:
# https://www.paloaltonetworks.com/documentation/misc/snmp-mibs.html
#
# PanOS 7.0 enterprise MIBs:
# https://www.paloaltonetworks.com/content/dam/pan/en_US/assets/zip/technical-documentation/snmp-mib-modules/PAN-MIB-MODULES-7.0.zip
#
# Tested on a Palo Alto Networks PA-3020 series firewall
#
paloalto_fw:
walk:
- 1.3.6.1.4.1.25461.2.1.2.1 # panSys
- 1.3.6.1.4.1.25461.2.1.2.3 # panSession
- 1.3.6.1.4.1.25461.2.1.2.5 # panGlobalProtect
# Arista Networks
#
# Arista Networks MIBs can be found here: https://www.arista.com/en/support/product-documentation/arista-snmp-mibs
#
# https://www.arista.com/assets/data/docs/MIBS/ARISTA-ENTITY-SENSOR-MIB.txt
# https://www.arista.com/assets/data/docs/MIBS/ARISTA-SW-IP-FORWARDING-MIB.txt
#
# Tested on Arista DCS-7010T-48 switch
#
arista_sw:
walk:
- 1.3.6.1.4.1.30065.3.1.1 # aristaSwFwdIp
# Sophos XG
#
# Sophos XG MIBs can be found here:
# https://docs.sophos.com/nsg/sophos-firewall/MIB/SOPHOS-XG-MIB.zip
#
# Tested on Sophos XG v20
#
sophos_xg:
walk:
- 1.3.6.1.4.1.2604.5.1.1 # sfosXGDeviceInfo
- 1.3.6.1.4.1.2604.5.1.2 # sfosXGDeviceStats
- 1.3.6.1.4.1.2604.5.1.3 # sfosXGServiceStatus
- 1.3.6.1.4.1.2604.5.1.4 # sfosXGHAStats
- 1.3.6.1.4.1.2604.5.1.5 # sfosXGLicenseDetails
overrides:
# Info
sfosCurrentDate:
type: ParseDateAndTime
datetime_pattern: "%a %b %d %H:%M:%S %Y"
# Services
sfosPoP3Service:
type: EnumAsStateSet
sfosImap4Service:
type: EnumAsStateSet
sfosSmtpService:
type: EnumAsStateSet
sfosFtpService:
type: EnumAsStateSet
sfosHttpService:
type: EnumAsStateSet
sfosAVService:
type: EnumAsStateSet
sfosASService:
type: EnumAsStateSet
sfosDNSService:
type: EnumAsStateSet
sfosHAService:
type: EnumAsStateSet
sfosIPSService:
type: EnumAsStateSet
sfosApacheService:
type: EnumAsStateSet
sfosNtpService:
type: EnumAsStateSet
sfosTomcatService:
type: EnumAsStateSet
sfosSSLVpnService:
type: EnumAsStateSet
sfosIPSecVpnService:
type: EnumAsStateSet
sfosDatabaseservice:
type: EnumAsStateSet
sfosNetworkService:
type: EnumAsStateSet
sfosGarnerService:
type: EnumAsStateSet
sfosDroutingService:
type: EnumAsStateSet
sfosSSHdService:
type: EnumAsStateSet
sfosDgdService:
type: EnumAsStateSet
# HA
sfosHAStatus:
type: EnumAsInfo
sfosDeviceCurrentAppKey:
ignore: true
sfosDevicePeerAppKey:
ignore: true
sfosDeviceCurrentHAState:
type: EnumAsStateSet
sfosDevicePeerHAState:
type: EnumAsStateSet
sfosDeviceLoadBalancing:
type: EnumAsInfo
# License
sfosBaseFWLicRegStatus:
type: EnumAsStateSet
sfosBaseFWLicExpiryDate:
type: ParseDateAndTime
datetime_pattern: "%b %d %Y"
sfosNetProtectionLicRegStatus:
type: EnumAsStateSet
sfosNetProtectionLicExpiryDate:
type: ParseDateAndTime
datetime_pattern: "%b %d %Y"
sfosWebProtectionLicRegStatus:
type: EnumAsStateSet
sfosWebProtectionLicExpiryDate:
type: ParseDateAndTime
datetime_pattern: "%b %d %Y"
sfosMailProtectionLicRegStatus:
type: EnumAsStateSet
sfosMailProtectionLicExpiryDate:
type: ParseDateAndTime
datetime_pattern: "%b %d %Y"
sfosWebServerProtectionLicRegStatus:
type: EnumAsStateSet
sfosWebServerProtectionLicExpiryDate:
type: ParseDateAndTime
datetime_pattern: "%b %d %Y"
sfosSandstromLicRegStatus:
type: EnumAsStateSet
sfosSandstromLicExpiryDate:
type: ParseDateAndTime
datetime_pattern: "%b %d %Y"
sfosEnhancedSupportLicRegStatus:
type: EnumAsStateSet
sfosEnhancedSupportLicExpiryDate:
type: ParseDateAndTime
datetime_pattern: "%b %d %Y"
sfosEnhancedPlusLicRegStatus:
type: EnumAsStateSet
sfosEnhancedPlusLicExpiryDate:
type: ParseDateAndTime
datetime_pattern: "%b %d %Y"
sfosCentralOrchestrationLicRegStatus:
type: EnumAsStateSet
sfosCentralOrchestrationLicExpiryDate:
type: ParseDateAndTime
datetime_pattern: "%b %d %Y"
# Synology
#
# Synology MIBs can be found here:
# http://www.synology.com/support/snmp_mib.php
# http://dedl.synology.com/download/Document/MIBGuide/Synology_MIB_File.zip
#
# Tested on RS2414rp+ NAS
#
synology:
walk:
- 1.3.6.1.4.1.6574.1 # synoSystem
- 1.3.6.1.4.1.6574.2 # synoDisk
- 1.3.6.1.4.1.6574.3 # synoRaid
- 1.3.6.1.4.1.6574.4 # synoUPS
- 1.3.6.1.4.1.6574.5 # synologyDiskSMART
- 1.3.6.1.4.1.6574.6 # synologyService
- 1.3.6.1.4.1.6574.101 # storageIO
- 1.3.6.1.4.1.6574.102 # spaceIO
- 1.3.6.1.4.1.6574.104 # synologyiSCSILUN
lookups:
- source_indexes: [spaceIOIndex]
lookup: spaceIODevice
drop_source_indexes: true
- source_indexes: [storageIOIndex]
lookup: storageIODevice
drop_source_indexes: true
- source_indexes: [serviceInfoIndex]
lookup: serviceName
drop_source_indexes: true
- source_indexes: [diskIndex]
lookup: diskID
drop_source_indexes: true
- source_indexes: [raidIndex]
lookup: raidName
drop_source_indexes: true
overrides:
diskModel:
type: DisplayString
diskSMARTAttrName:
type: DisplayString
diskSMARTAttrStatus:
type: DisplayString
diskSMARTInfoDevName:
type: DisplayString
diskType:
type: DisplayString
modelName:
type: DisplayString
raidFreeSize:
type: gauge
raidName:
type: DisplayString
raidTotalSize:
type: gauge
serialNumber:
type: DisplayString
serviceName:
type: DisplayString
version:
type: DisplayString
# UCD-SNMP-MIB
#
# University of California, Davis extensions. Commonly used for host
# metrics. For example, Linux-based systems, DD-WRT, Synology,
# Mikrotik, Kemp LoadMaster, etc.
#
# http://www.net-snmp.org/docs/mibs/UCD-SNMP-MIB.txt
#
ucd_la_table:
walk:
- 1.3.6.1.4.1.2021.10.1.2 # laNames
- 1.3.6.1.4.1.2021.10.1.5 # laLoadInt
- 1.3.6.1.4.1.2021.10.1.6 # laLoadFloat
lookups:
- source_indexes: [laIndex]
lookup: laNames
drop_source_indexes: true
ucd_memory:
walk:
- 1.3.6.1.4.1.2021.4 # memory
ucd_system_stats:
walk:
- 1.3.6.1.4.1.2021.11 # systemStats
# Ubiquiti / AirFiber
#
# https://www.ui.com/downloads/firmwares/airfiber5X/v4.0.5/UBNT-MIB.txt
#
ubiquiti_airfiber:
walk:
- 1.3.6.1.4.1.41112.1.3 #ubntAirFiber
# Ubiquiti / AirMAX
#
# https://dl.ubnt.com/firmwares/airos-ubnt-mib/ubnt-mib.zip
#
ubiquiti_airmax:
walk:
- 1.3.6.1.4.1.41112.1.4 # ubntAirMAX
# Ubiquiti / UniFi
#
# http://dl.ubnt-ut.com/snmp/UBNT-MIB
# http://dl.ubnt-ut.com/snmp/UBNT-UniFi-MIB
#
ubiquiti_unifi:
walk:
- 1.3.6.1.4.1.41112.1.6 # ubntUniFi
lookups:
- source_indexes: [unifiVapIndex]
lookup: unifiVapName
- source_indexes: [unifiVapIndex]
lookup: unifiVapEssId
# keepalived
#
# https://github.com/acassen/keepalived/blob/v2.2.8/doc/KEEPALIVED-MIB.txt
# https://github.com/acassen/keepalived/blob/v2.2.8/doc/VRRP-MIB.txt
# https://github.com/acassen/keepalived/blob/v2.2.8/doc/VRRPv3-MIB.txt
keepalived:
walk:
- vrrpInstanceTable # Table of VRRP instances.
- vrrpSyncGroupTable # Table of sync groups.
- virtualServerGroupTable # Table of virtual server groups.
- virtualServerTable # Table of virtual servers.
- realServerTable # Table of real servers. This includes regular real servers and sorry servers.
- vrrpRouterStatsTable # Table of VRRP statistics.
- vrrpv3StatisticsTable # Table of VRRPv3 statistics.
overrides:
vrrpSyncGroupScriptMaster:
ignore: true # Non-metric display string.
vrrpSyncGroupScriptBackup:
ignore: true # Non-metric display string.
vrrpSyncGroupScriptFault:
ignore: true # Non-metric display string.
vrrpSyncGroupScript:
ignore: true # Non-metric display string.
vrrpSyncGroupScriptStop:
ignore: true # Non-metric display string.
vrrpInstanceLvsSyncDaemon:
ignore: true # Deprecated.
vrrpInstanceLvsSyncInterface:
ignore: true # Deprecated.
vrrpInstanceScriptMaster:
ignore: true # Non-metric display string.
vrrpInstanceScriptBackup:
ignore: true # Non-metric display string.
vrrpInstanceScriptFault:
ignore: true # Non-metric display string.
vrrpInstanceScriptStop:
ignore: true # Non-metric display string.
vrrpInstanceScript:
ignore: true # Non-metric display string.
vrrpInstanceScriptMstrRxLowerPri:
ignore: true # Non-metric display string.
# Kemp Technologies LoadMaster
#
# https://kemptechnologies.com/files/packages/current/LM_mibs.zip
# https://support.kemptechnologies.com/hc/en-us/articles/202375677-LoadMaster-SNMP-MIB-s
kemp_loadmaster:
walk:
- 1.3.6.1.4.1.12196.13.0 # VSdesc
- 1.3.6.1.4.1.12196.13.1 # VSentry
- 1.3.6.1.4.1.12196.13.2 # RSentry
lookups:
- source_indexes: [vSidx]
lookup: 1.3.6.1.4.1.12196.13.1.1.13 # vSName
overrides:
daemonState:
type: EnumAsInfo
haState:
type: EnumAsInfo
patchVersion:
type: DisplayString
rSAddrType:
type: EnumAsInfo
rSForwardingMethod:
type: DisplayString
rSIp:
type: DisplayString
rSState:
type: EnumAsInfo
vSAdaptiveMethod:
type: DisplayString
vSAddrtype:
type: EnumAsInfo
vSCheckerType:
type: DisplayString
vSIp:
type: DisplayString
vSL7cookieId:
type: DisplayString
vSL7persist:
type: DisplayString
vSName:
type: DisplayString
vSProtocol:
type: EnumAsInfo
vSSchedulingMethod:
type: DisplayString
vSState:
type: EnumAsInfo
version:
type: DisplayString
# Printer: RFC 3805
#
# https://tools.ietf.org/html/rfc3805
# https://www.iana.org/assignments/ianaprinter-mib/ianaprinter-mib.xhtml
printer_mib:
walk:
- prtGeneralReset
- prtConsoleDisable
- prtGeneralPrinterName
- prtGeneralSerialNumber
- prtAlertCriticalEvents
- prtAlertAllEvents
- prtCoverStatus
- prtMarkerSuppliesDescription
- prtMarkerSuppliesLevel
- prtMarkerSuppliesMaxCapacity
- prtMarkerSuppliesType
lookups:
- source_indexes: [hrDeviceIndex, prtMarkerSuppliesIndex]
lookup: prtMarkerSuppliesType
overrides:
prtGeneralReset:
type: EnumAsStateSet
prtConsoleDisable:
type: EnumAsStateSet
prtGeneralPrinterName:
type: DisplayString
prtGeneralSerialNumber:
type: DisplayString
prtCoverStatus:
type: EnumAsStateSet
prtMarkerSuppliesDescription:
type: DisplayString
# NEC IX Router
#
# https://jpn.nec.com/univerge/ix/Manual/MIB/PICO-SMI-MIB.txt
# https://jpn.nec.com/univerge/ix/Manual/MIB/PICO-SMI-ID-MIB.txt
# https://jpn.nec.com/univerge/ix/Manual/MIB/PICO-IPSEC-FLOW-MONITOR-MIB.txt
nec_ix:
walk:
- picoSystem
- picoIpSecFlowMonitorMIB
- picoExtIfMIB
- picoNetworkMonitorMIB
- picoIsdnMIB
- picoNgnMIB
- picoMobileMIB
- picoIPv4MIB
- picoIPv6MIB
# Raritan
#
# https://cdn.raritan.com/download/PX/v1.5.20/PDU-MIB.txt
# https://cdn1.raritan.com/download/src-g2/4.0.20/PDU2_MIB_4.0.20_49038.txt
raritan:
walk:
- 1.3.6.1.4.1.13742.4.1.20.2.1.7 # inletCurrent
- 1.3.6.1.4.1.13742.4.1.20.2.1.8 # inletVoltage
- 1.3.6.1.4.1.13742.4.1.20.2.1.9 # inletActivePower
- 1.3.6.1.4.1.13742.4.1.2.2.1.31 # outletWattHours
- 1.3.6.1.4.1.13742.4.1.2.2.1.3 # outletOperationalState
- 1.3.6.1.4.1.13742.4.1.2.2.1.4 # outletCurrent
- 1.3.6.1.4.1.13742.4.1.2.2.1.5 # outletMaxCurrent
- 1.3.6.1.4.1.13742.4.1.2.2.1.6 # outletVoltage
- 1.3.6.1.4.1.13742.4.1.2.2.1.7 # outletActivePower
- 1.3.6.1.4.1.13742.4.1.3.1.5 # unitCpuTemp
- 1.3.6.1.4.1.13742.6.5.5.3.1 # externalSensors
lookups:
- source_indexes: [outletIndex]
lookup: outletLabel
overrides:
outletOperationalState:
type: EnumAsStateSet
# InfraPower PDU's
#
# https://www.austin-hughes.com/wp-content/uploads/2021/05/IPD-03-S-MIB.zip
# The circuit table in the infrapower MIB is invalid as it has a table (circuitTable) nested inside another table (pduTable), and this invalid setup then confuses the generator.
infrapower_pdu:
walk:
- 1.3.6.1.4.1.34550.20.2.1.1.1.1 # pduIndex
- 1.3.6.1.4.1.34550.20.2.1.1.1.6 # pduName
- 1.3.6.1.4.1.34550.20.2.1.1.1.7 # pduLocation
- 1.3.6.1.4.1.34550.20.2.1.1.1.13 # pduMainLoadVoltage
- 1.3.6.1.4.1.34550.20.2.1.1.1.14 # pduMainLoadAmp
- 1.3.6.1.4.1.34550.20.2.1.1.1.17 # pduMainActivePower
lookups:
- source_indexes: [pduIndex]
lookup: pduName
- source_indexes: [pduIndex]
lookup: pduLocation
overrides:
pduIndex:
ignore: true # Lookup metric
pduName:
ignore: true # Lookup metric
pduLocation:
ignore: true # Lookup metric
pduMainLoadAmp:
regex_extracts:
'':
- regex: '(.*)(.)'
value: '$1.$2'
pduMainLoadVoltage:
regex_extracts:
'':
- regex: '(.*)(.)'
value: '$1.$2'
pduMainActivePower:
regex_extracts:
'':
- regex: '(\d*?)(\d{2})'
value: '0$1.$2'
- regex: '^(\d)'
value: '0.0$1'
# Liebert/Vertiv PDU's
#
# https://www.vertiv.com/en-us/support/software-download/monitoring/management-information-bases-mibs-for-liebert-products/
# https://www.vertiv.com/492204/contentassets/b00273585e0a453a9c983523e8a0d6ff/lgpmib-unix_rev16.tar
liebert_pdu:
walk:
- lgpPduTable
- lgpPduPsTable
- lgpPduPsLineTable
- lgpPduRcpTable
- lgpPduAuxSensorTable
lookups:
- source_indexes: [lgpPduEntryIndex]
lookup: lgpPduEntrySysAssignLabel
- source_indexes: [lgpPduPsEntryIndex]
lookup: lgpPduPsEntrySysAssignLabel
- source_indexes: [lgpPduRcpEntryIndex]
lookup: lgpPduRcpEntrySysAssignLabel
- source_indexes: [lgpPduAuxSensorIndex]
lookup: lgpPduAuxSensorSysAssignLabel
# Mikrotik Router
#
# http://download2.mikrotik.com/Mikrotik.mib
mikrotik:
walk:
- sysDescr
- mikrotik
lookups:
- source_indexes: [ifIndex]
lookup: ifName
- source_indexes: [mtxrInterfaceStatsIndex]
lookup: ifName
- source_indexes: [mtxrGaugeIndex]
lookup: mtxrGaugeName
drop_source_indexes: true
- source_indexes: [mtxrNeighborIndex]
lookup: mtxrNeighborMacAddress
drop_source_indexes: true
- source_indexes: [mtxrNeighborIndex]
lookup: mtxrNeighborInterfaceID
- source_indexes: [mtxrNeighborInterfaceID]
lookup: ifName
drop_source_indexes: true
- source_indexes: [mtxrOpticalIndex]
lookup: mtxrOpticalName
- source_indexes: [mtxrPOEInterfaceIndex]
lookup: mtxrPOEName
- source_indexes: [mtxrPartitionIndex]
lookup: mtxrPartitionName
overrides:
ifName:
ignore: true # Lookup metric
ifType:
type: EnumAsInfo
# Remap enums where 1==true, 2==false to become 0==false, 1==true.
hrDiskStorageRemoveble:
scale: -1.0
offset: 2.0
# CyberPower
#
# https://www.cyberpowersystems.com/product/software/mib-files/mib-v211/
cyberpower:
walk:
- 1.3.6.1.4.1.3808.1.1.1 # ups
- 1.3.6.1.4.1.3808.1.1.4 # environmentSensor
- 1.3.6.1.4.1.3808.1.1.5 # ats
- 1.3.6.1.4.1.3808.1.1.6 # ePDU2
#
# TP LINK EAP
# http://static.tp-link.com/EAP_Private_Mibs_1.0.zip
eap:
walk:
- 1.3.6.1.4.1.11863.10.1.1.1 # client count
#
# HOST-RESOURCES-MIB
#
# http://www.net-snmp.org/docs/mibs/host.html
hrSystem:
walk:
- hrSystem
hrStorage:
walk:
- hrStorage
lookups:
- source_indexes: [hrStorageIndex]
lookup: hrStorageDescr
drop_source_indexes: true
hrDevice:
walk:
- hrDevice
overrides:
hrPrinterStatus:
type: EnumAsStateSet
hrSWRun:
walk:
- hrSWRun
hrSWRunPerf:
walk:
- hrSWRunPerf
hrSWInstalled:
walk:
- hrSWInstalled
#
# Powercom MIBs
#
# https://www.upspowercom.com/Card-DA807.jsp
#
powercom:
walk:
- 1.3.6.1.4.1.935.1.1.1.1.1.1 # upsBaseIdentModel
- 1.3.6.1.4.1.935.1.1.1.1.2.1 # upsSmartIdentFirmwareRevision
- 1.3.6.1.4.1.935.1.1.1.1.2.2 # upsSmartIdentDateOfManufacture
- 1.3.6.1.4.1.935.1.1.1.1.2.4 # upsSmartIdentAgentFirmwareRevision
- 1.3.6.1.4.1.935.1.1.1.2.1.1 # upsBaseBatteryStatus
- 1.3.6.1.4.1.935.1.1.1.2.1.2 # upsBaseBatteryTimeOnBattery
- 1.3.6.1.4.1.935.1.1.1.2.2.1 # upsSmartBatteryCapacity
- 1.3.6.1.4.1.935.1.1.1.2.2.2 # upsSmartBatteryVoltage
- 1.3.6.1.4.1.935.1.1.1.2.2.3 # upsSmartBatteryTemperature
- 1.3.6.1.4.1.935.1.1.1.2.2.6 # upsSmartBatteryFullChargeVoltage
- 1.3.6.1.4.1.935.1.1.1.3.2.1 # upsSmartInputLineVoltage
- 1.3.6.1.4.1.935.1.1.1.3.2.2 # upsSmartInputMaxLineVoltage
- 1.3.6.1.4.1.935.1.1.1.3.2.3 # upsSmartInputMinLineVoltage
- 1.3.6.1.4.1.935.1.1.1.3.2.4 # upsSmartInputFrequency
- 1.3.6.1.4.1.935.1.1.1.3.2.5 # upsSmartInputLineFailCause
- 1.3.6.1.4.1.935.1.1.1.4.1.1 # upsBaseOutputStatus
- 1.3.6.1.4.1.935.1.1.1.4.2.1 # upsSmartOutputVoltage
- 1.3.6.1.4.1.935.1.1.1.4.2.2 # upsSmartOutputFrequency
- 1.3.6.1.4.1.935.1.1.1.4.2.3 # upsSmartOutputLoad
- 1.3.6.1.4.1.935.1.1.1.4.2.7 # upsSmartOutputOverLoad
- 1.3.6.1.4.1.935.1.1.1.4.2.8 # upsSmartOutputOverVoltage
- 1.3.6.1.4.1.935.1.1.1.5.2.1 # upsSmartConfigRatedOutputVoltage
- 1.3.6.1.4.1.935.1.1.1.5.2.2 # upsSmartConfigHighTransferVolt
- 1.3.6.1.4.1.935.1.1.1.5.2.3 # upsSmartConfigLowTransferVolt
- 1.3.6.1.4.1.935.1.1.1.5.2.4 # upsSmartConfigAlarm
- 1.3.6.1.4.1.935.1.1.1.5.2.5 # upsSmartConfigAlarmTimer
- 1.3.6.1.4.1.935.1.1.1.5.2.6 # upsSmartConfigMinReturnCapacity
- 1.3.6.1.4.1.935.1.1.1.5.2.7 # upsSmartConfigSensitivity
- 1.3.6.1.4.1.935.1.1.1.5.2.8 # upsSmartConfigLowBatteryRunTime
- 1.3.6.1.4.1.935.1.1.1.5.2.9 # upsSmartConfigReturnDelay
- 1.3.6.1.4.1.935.1.1.1.5.2.10 # upsSmartConfigShutoffDelay
- 1.3.6.1.4.1.935.1.1.1.5.2.11 # upsSmartConfigUpsSleepTime
- 1.3.6.1.4.1.935.1.1.1.7.2.1 # upsSmartTestDiagnosticSchedule
- 1.3.6.1.4.1.935.1.1.1.7.2.3 # upsSmartTestDiagnosticsResults
- 1.3.6.1.4.1.935.1.1.1.8.5.1 # upsThreePhaseDCandRectifierStatusRecRotError
- 1.3.6.1.4.1.935.1.1.1.8.5.2 # upsThreePhaseDCandRectifierStatusLowBatteryShutdown
- 1.3.6.1.4.1.935.1.1.1.8.5.3 # upsThreePhaseDCandRectifierStatusLowBattery
- 1.3.6.1.4.1.935.1.1.1.8.5.5 # upsThreePhaseDCandRectifierStatusBatteryStatus
- 1.3.6.1.4.1.935.1.1.1.8.5.6 # upsThreePhaseDCandRectifierStatusChargeStatus
- 1.3.6.1.4.1.935.1.1.1.8.5.7 # upsThreePhaseDCandRectifierStatusRecOperating
- 1.3.6.1.4.1.935.1.1.1.8.6.1 # upsThreePhaseUPSStatusBypassFreqFail
- 1.3.6.1.4.1.935.1.1.1.8.6.2 # upsThreePhaseUPSStatusManualBypassBreaker
- 1.3.6.1.4.1.935.1.1.1.8.6.3 # upsThreePhaseUPSStatusACStatus
- 1.3.6.1.4.1.935.1.1.1.8.6.4 # upsThreePhaseUPSStaticSwitchMode
- 1.3.6.1.4.1.935.1.1.1.8.6.5 # upsThreePhaseUPSStatusInverterOperating
- 1.3.6.1.4.1.935.1.1.1.8.7.1 # upsThreePhaseFaultStatusEmergencyStop
- 1.3.6.1.4.1.935.1.1.1.8.7.2 # upsThreePhaseFaultStatusHighDCShutdown
- 1.3.6.1.4.1.935.1.1.1.8.7.3 # upsThreePhaseFaultStatusBypassBreaker
- 1.3.6.1.4.1.935.1.1.1.8.7.4 # upsThreePhaseFaultStatusOverLoad
- 1.3.6.1.4.1.935.1.1.1.8.7.5 # upsThreePhaseFaultStatusInverterOutputFail
- 1.3.6.1.4.1.935.1.1.1.8.7.6 # upsThreePhaseFaultStatusOverTemperature
- 1.3.6.1.4.1.935.1.1.1.8.7.7 # upsThreePhaseFaultStatusShortCircuit
- 1.3.6.1.4.1.935.1.1.1.9.1.1 # upsEnvTemperature
- 1.3.6.1.4.1.935.1.1.1.9.1.2 # upsEnvHumidity
- 1.3.6.1.4.1.935.1.1.1.9.2.1 # upsEnvOverTemperature
- 1.3.6.1.4.1.935.1.1.1.9.2.2 # upsEnvUnderTemperature
- 1.3.6.1.4.1.935.1.1.1.9.2.3 # upsEnvOverHumidity
- 1.3.6.1.4.1.935.1.1.1.9.2.4 # upsEnvUnderHumidity
# tplink ddm information for sfps
#
# Downloads can be found here:
# https://www.tp-link.com/en/support/download/tl-sg3428x/
#
# tested against TL SG3428X
tplink-ddm:
walk:
- ddmStatusBiasCurrent
- ddmStatusLossSignal
- ddmStatusRxPow
- ddmStatusTemperature
- ddmStatusTxFault
- ddmStatusTxPow
- ddmStatusVoltage
lookups:
- source_indexes: [ifIndex]
lookup: ifAlias
- source_indexes: [ifIndex]
lookup: 1.3.6.1.2.1.31.1.1.1.1 # ifName
overrides:
ddmStatusBiasCurrent:
type: DisplayString
regex_extracts:
'':
- regex: '^(\d+\.\d+).*'
value: '$1'
ddmStatusLossSignal:
type: DisplayString
regex_extracts:
'':
- regex: 'False'
value: '0'
- regex: 'True'
value: '1'
ddmStatusRxPow:
type: DisplayString
regex_extracts:
'':
- regex: '^(\d+\.\d+).*'
value: '$1'
ddmStatusTemperature:
type: DisplayString
regex_extracts:
'':
- regex: '^(\d+\.\d+).*'
value: '$1'
ddmStatusTxFault:
type: DisplayString
regex_extracts:
'':
- regex: 'False'
value: '0'
- regex: 'True'
value: '1'
ddmStatusTxPow:
type: DisplayString
regex_extracts:
'':
- regex: '^(\d+\.\d+).*'
value: '$1'
ddmStatusVoltage:
type: DisplayString
regex_extracts:
'':
- regex: '^(\d+\.\d+).*'
value: '$1'
cisco_imc:
walk:
- 1.3.6.1.4.1.9.9.719.1.45.1.1.6 #cucsStorageControllerOperState
- 1.3.6.1.4.1.9.9.719.1.1.1.1.11 #cucsFaultDescription
- 1.3.6.1.4.1.9.9.719.1.1.1.1.20 #cucsFaultSeverity