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
12 changes: 12 additions & 0 deletions generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ INFRAPOWER_URL := https://www.austin-hughes.com/wp-content/uploads/2021/05/IP
LIEBERT_URL := https://www.vertiv.com/globalassets/documents/software/monitoring/lgpmib-win_rev16_299461_0.zip
READYNAS_URL := https://www.downloads.netgear.com/files/ReadyNAS/READYNAS-MIB.txt
READYDATAOS_URL := https://www.circitor.fr/Mibs/Mib/R/READYDATAOS-MIB.mib
XUPS_URL := https://www.eaton.com/content/dam/eaton/products/backup-power-ups-surge-it-power-distribution/power-management-software-connectivity/eaton-network-card-ms/eaton-ups-power-mib-release-notes.txt
EATON_EMP_MIB_URL := http://m.eaton.com/ecm/groups/public/@pub/@electrical/documents/content/ct_141083.txt
EATON_OIDS_URL := https://www.circitor.fr/Mibs/Mib/E/EATON-OIDS.mib

CYBERPOWER_VERSION := 2.11
CYBERPOWER_URL := https://dl4jz3rbrsfum.cloudfront.net/software/CyberPower_MIB_v$(CYBERPOWER_VERSION).MIB.zip
Expand Down Expand Up @@ -112,6 +115,7 @@ mibs: \
$(MIBDIR)/apc-powernet-mib \
$(MIBDIR)/readynas \
$(MIBDIR)/readydataos \
$(MIBDIR)/XUPS-MIB.mib \
$(MIBDIR)/AIRESPACE-REF-MIB \
$(MIBDIR)/AIRESPACE-WIRELESS-MIB \
$(MIBDIR)/ARISTA-ENTITY-SENSOR-MIB \
Expand Down Expand Up @@ -367,3 +371,11 @@ $(MIBDIR)/readynas:
$(MIBDIR)/readydataos:
@echo ">> Downloading readydataos"
@curl $(CURL_OPTS) -o $(MIBDIR)/readydataos "$(READYDATAOS_URL)"

$(MIBDIR)/XUPS-MIB.mib:
@echo ">> Downloading XUPS-MIB.mib"
@curl $(CURL_OPTS) -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0" --compressed -o $(MIBDIR)/XUPS-MIB.mib $(XUPS_URL)
@echo ">> Downloading EATON-EMP-MIB"
@curl $(CURL_OPTS) $(CURL_USER_AGENT) -o $(MIBDIR)/EATON-EMP-MIB $(EATON_EMP_MIB_URL)
@echo ">> Downloading EATON-OIDS"
@curl $(CURL_OPTS) $(CURL_USER_AGENT) -o $(MIBDIR)/EATON-OIDS $(EATON_OIDS_URL)
43 changes: 43 additions & 0 deletions generator/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -628,3 +628,46 @@ modules:
hrSWInstalled:
walk:
- hrSWInstalled

#
# xups
#
# https://www.eaton.com/content/dam/eaton/products/backup-power-ups-surge-it-power-distribution/power-management-software-connectivity/eaton-network-card-ms/eaton-ups-power-mib-release-notes.txt
xups:
max_repetitions: 5
walk:
- xupsBatCapacity
- xupsBatTimeRemaining
- xupsBatVoltage
- xupsBatCurrent
- xupsEnvAmbientTemp
- xupsInputTable
- xupsInputVoltage
- xupsInputFrequency
- xupsOutputTable
- xupsOutputVoltage
- xupsOutputFrequency
- xupsBypassTable
- xupsBypassFrequency
- xupsBatteryAbmStatus
lookups:
- source_indexes: [xupsInputTable]
lookup: xupsInputVoltage
- source_indexes: [xupsOutputTable]
lookup: xupsOutputVoltage
- source_indexes: [xupsBypassTable]
lookup: xupsBypassFrequency
filters:
static:
- targets:
- xupsBatCapacity
- xupsBatTimeRemaining
- xupsBatVoltage
- xupsBatCurrent
- xupsEnvAmbientTemp
- xupsInputVoltage
- xupsInputFrequency
- xupsOutputVoltage
- xupsOutputFrequency
- xupsBatteryAbmStatus
indices: ["0"]