Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ YAMAHA_URL := https://www.rtpro.yamaha.co.jp/RT/docs/mib/
CYBERPOWER_VERSION := 2.11
CYBERPOWER_URL := https://dl4jz3rbrsfum.cloudfront.net/software/CyberPower_MIB_v$(CYBERPOWER_VERSION).MIB.zip

EATON_EPDU_URL := https://raw.githubusercontent.com/librenms/librenms/refs/heads/master/mibs/eaton/EATON-EPDU-MIB
EATON_OIDS_URL := https://raw.githubusercontent.com/librenms/librenms/refs/heads/master/mibs/eaton/EATON-OIDS

EAP_VERSION := 1.0
EAP_URL := http://static.tp-link.com/EAP_Private_Mibs_$(EAP_VERSION).zip

Expand Down Expand Up @@ -178,6 +181,8 @@ mibs: \
$(MIBDIR)/Infrapower-MIB.mib \
$(MIBDIR)/LIEBERT_GP_PDU.MIB \
$(MIBDIR)/CyberPower.MIB \
$(MIBDIR)/EATON-OIDS \
$(MIBDIR)/EATON-EPDU-MIB \
$(MIBDIR)/EAP.MIB \
$(MIBDIR)/EAP-Client.MIB \
$(MIBDIR)/powercom \
Expand Down Expand Up @@ -450,6 +455,14 @@ $(MIBDIR)/CyberPower.MIB:
@rm $@.bak
@rm -v $(TMP)

$(MIBDIR)/EATON-OIDS:
@echo ">> Downloading EATON-OIDS"
@curl $(CURL_OPTS) -o $(MIBDIR)/EATON-OIDS "$(EATON_OIDS_URL)"

$(MIBDIR)/EATON-EPDU-MIB:
@echo ">> Downloading EATON-EPDU-MIB"
@curl $(CURL_OPTS) -o $(MIBDIR)/EATON-EPDU-MIB "$(EATON_EPDU_URL)"

$(MIBDIR)/EAP.MIB $(MIBDIR)/EAP-Client.MIB:
$(eval TMP := $(shell mktemp))
@echo ">> Downloading EAP.MIB to $(TMP)"
Expand Down
78 changes: 78 additions & 0 deletions generator/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1249,6 +1249,84 @@ modules:
lookup: lgpPduRcpEntrySysAssignLabel
- source_indexes: [lgpPduAuxSensorIndex]
lookup: lgpPduAuxSensorSysAssignLabel

# Eaton ePDU
#
# https://github.com/librenms/librenms/tree/master/mibs/eaton
eaton_epdu:
walk:
- EATON-EPDU-MIB::unitTable
- EATON-EPDU-MIB::inputTable
- EATON-EPDU-MIB::inputVoltageTable
- EATON-EPDU-MIB::inputCurrentTable
- EATON-EPDU-MIB::inputPowerTable
- EATON-EPDU-MIB::inputTotalPowerTable
- EATON-EPDU-MIB::groupTable
- EATON-EPDU-MIB::groupVoltageTable
- EATON-EPDU-MIB::groupCurrentTable
- EATON-EPDU-MIB::groupPowerTable
- EATON-EPDU-MIB::outletTable
- EATON-EPDU-MIB::outletVoltageTable
- EATON-EPDU-MIB::outletCurrentTable
- EATON-EPDU-MIB::outletPowerTable
- EATON-EPDU-MIB::temperatureTable
- EATON-EPDU-MIB::humidityTable
- EATON-EPDU-MIB::contactTable
lookups:
- source_indexes: [strappingIndex]
lookup: EATON-EPDU-MIB::unitName
- source_indexes: [strappingIndex, inputIndex]
lookup: EATON-EPDU-MIB::inputFeedName
- source_indexes: [strappingIndex, groupIndex]
lookup: EATON-EPDU-MIB::groupName
- source_indexes: [strappingIndex, outletIndex]
lookup: EATON-EPDU-MIB::outletName
- source_indexes: [strappingIndex, temperatureIndex]
lookup: EATON-EPDU-MIB::temperatureName
- source_indexes: [strappingIndex, humidityIndex]
lookup: EATON-EPDU-MIB::humidityName
- source_indexes: [strappingIndex, contactIndex]
lookup: EATON-EPDU-MIB::contactName
overrides:
unitName:
ignore: true
inputFeedName:
ignore: true
groupName:
ignore: true
outletName:
ignore: true
temperatureName:
ignore: true
humidityName:
ignore: true
contactName:
ignore: true
inputVoltage:
scale: 0.001
groupVoltage:
scale: 0.001
outletVoltage:
scale: 0.001
inputCurrent:
scale: 0.001
groupCurrent:
scale: 0.001
outletCurrent:
scale: 0.001
inputPowerFactor:
scale: 0.001
inputTotalPowerFactor:
scale: 0.001
groupPowerFactor:
scale: 0.001
outletPowerFactor:
scale: 0.001
temperatureValue:
scale: 0.1
humidityValue:
scale: 0.1

# Mikrotik Router
#
# http://download2.mikrotik.com/Mikrotik.mib
Expand Down
Loading
Loading