Skip to content

Commit

Permalink
Adding support for ServerTech Sentry4 PDU devices (#504)
Browse files Browse the repository at this point in the history
* Adding suport for ServerTech Sentry4 PDU devices

Signed-off-by: jbradleynh <jbradley@fastly.com>
Signed-off-by: Adam Stephens <astephens@fastly.com>
Co-authored-by: Adam Stephens <astephens@fastly.com>
  • Loading branch information
jbradleynh and Adam Stephens committed Oct 14, 2020
1 parent 95bb06d commit f80436c
Show file tree
Hide file tree
Showing 3 changed files with 2,131 additions and 0 deletions.
6 changes: 6 additions & 0 deletions generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ NET_SNMP_URL := https://raw.githubusercontent.com/net-snmp/net-snmp/v5.9/mi
PALOALTO_URL := https://docs.paloaltonetworks.com/content/dam/techdocs/en_US/zip/snmp-mib/pan-10-0-snmp-mib-modules.zip
PRINTER_URL := https://ftp.pwg.org/pub/pwg/pmp/mibs/rfc3805b.mib
SERVERTECH_URL := 'https://cdn10.servertech.com/assets/documents/documents/817/original/Sentry3.mib'
SERVERTECH4_URL := 'https://cdn10.servertech.com/assets/documents/documents/815/original/Sentry4.mib'
SYNOLOGY_URL := 'https://global.download.synology.com/download/Document/Software/DeveloperGuide/Firmware/DSM/All/enu/Synology_MIB_File.zip'
UBNT_AIROS_URL := https://dl.ubnt.com/firmwares/airos-ubnt-mib/ubnt-mib.zip
UBNT_AIRFIBER_URL := https://dl.ubnt.com/firmwares/airfiber5X/v4.1.0/UBNT-MIB.txt
Expand Down Expand Up @@ -94,6 +95,7 @@ mibs: mib-dir \
$(MIBDIR)/PICO-SMI-MIB.txt \
$(MIBDIR)/PRINTER-MIB-V2.txt \
$(MIBDIR)/servertech-sentry3-mib \
$(MIBDIR)/servertech-sentry4-mib \
$(MIBDIR)/.synology \
$(MIBDIR)/UBNT-UniFi-MIB \
$(MIBDIR)/UBNT-AirFiber-MIB \
Expand Down Expand Up @@ -201,6 +203,10 @@ $(MIBDIR)/servertech-sentry3-mib:
@echo ">> Downloading servertech-sentry3-mib"
@curl $(CURL_OPTS) -o $(MIBDIR)/servertech-sentry3-mib $(SERVERTECH_URL)

$(MIBDIR)/servertech-sentry4-mib:
@echo ">> Downloading servertech-sentry4-mib"
@curl $(CURL_OPTS) -o $(MIBDIR)/servertech-sentry4-mib $(SERVERTECH4_URL)

$(MIBDIR)/.synology:
$(eval TMP := $(shell mktemp))
@echo ">> Downloading synology to $(TMP)"
Expand Down
38 changes: 38 additions & 0 deletions generator/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,44 @@ modules:
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:
- sysUpTime
- 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.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, 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

# Palo Alto Firewalls
#
# Palo Alto MIBs can be found here:
Expand Down

0 comments on commit f80436c

Please sign in to comment.