Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import TP-Link EAP MIB #833

Merged
merged 1 commit into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 15 additions & 1 deletion generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ LIEBERT_URL := https://www.vertiv.com/globalassets/documents/software/moni
CYBERPOWER_VERSION := 2.10
CYBERPOWER_URL := https://dl4jz3rbrsfum.cloudfront.net/software/CyberPower_MIB_v$(CYBERPOWER_VERSION).MIB.zip

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

.DEFAULT: all

.PHONY: all
Expand Down Expand Up @@ -126,7 +129,9 @@ mibs: \
$(MIBDIR)/PDU2-MIB.txt \
$(MIBDIR)/Infrapower-MIB.mib \
$(MIBDIR)/LIEBERT_GP_PDU.MIB \
$(MIBDIR)/CyberPower.MIB
$(MIBDIR)/CyberPower.MIB \
$(MIBDIR)/EAP.MIB \
$(MIBDIR)/EAP-Client.MIB

$(MIBDIR)/apc-powernet-mib:
@echo ">> Downloading apc-powernet-mib"
Expand Down Expand Up @@ -320,3 +325,12 @@ $(MIBDIR)/CyberPower.MIB:
@sed -i.bak -E 's/(DisplayString[[:space:]]*FROM )RFC1213-MIB/\1SNMPv2-TC/' $@
@rm $@.bak
@rm -v $(TMP)

$(MIBDIR)/EAP.MIB $(MIBDIR)/EAP-Client.MIB:
$(eval TMP := $(shell mktemp))
@echo ">> Downloading EAP.MIB to $(TMP)"
@curl $(CURL_OPTS) -o $(TMP) $(EAP_URL)
@unzip -j -d $(MIBDIR) $(TMP) EAP_Private-Mibs_$(EAP_VERSION)/TPLINK.mib EAP_Private-Mibs_$(EAP_VERSION)/EAP/clientMib/client.mib
@mv -v $(MIBDIR)/TPLINK.mib $(MIBDIR)/EAP.MIB
@mv -v $(MIBDIR)/client.mib $(MIBDIR)/EAP-Client.MIB
@rm -v $(TMP)
6 changes: 6 additions & 0 deletions generator/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -599,3 +599,9 @@ modules:
- 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.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
8 changes: 8 additions & 0 deletions snmp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6439,6 +6439,14 @@ modules:
type: DisplayString
help: Describes whether the amount of available swap space (as reported by 'memAvailSwap(4)'),
is less than the desired minimum (specified by 'memMinimumSwap(12)'). - 1.3.6.1.4.1.2021.4.101
eap:
get:
- 1.3.6.1.4.1.11863.10.1.1.1.0
metrics:
- name: clientCount
oid: 1.3.6.1.4.1.11863.10.1.1.1
type: gauge
help: this used to get the count of clients - 1.3.6.1.4.1.11863.10.1.1.1
if_mib:
walk:
- 1.3.6.1.2.1.2
Expand Down