Skip to content

Commit

Permalink
Add eltex_mes
Browse files Browse the repository at this point in the history
  • Loading branch information
v-zhuravlev committed Jan 22, 2025
1 parent 156635b commit 433b720
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
19 changes: 16 additions & 3 deletions generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ ARISTA_URL := https://www.arista.com/assets/data/docs/MIBS
CISCO_URL := https://raw.githubusercontent.com/cisco/cisco-mibs/f55dc443daff58dfc86a764047ded2248bb94e12/v2
DELL_URL := https://dl.dell.com/FOLDER11196144M/1/Dell-OM-MIBS-11010_A00.zip
DLINK_URL := https://github.com/pgmillon/observium/raw/refs/heads/master/mibs/d-link/
ELTEX_MES_URL := https://eltex-co.com/upload/iblock/93c/80760x03yv4m8crugf0b8ab5yo8tel34/mibs_10.3.6.6.zip
HPE_URL := https://downloads.hpe.com/pub/softlib2/software1/pubsw-linux/p1580676047/v229101/upd11.85mib.tar.gz
IANA_CHARSET_URL := https://www.iana.org/assignments/ianacharset-mib/ianacharset-mib
IANA_IFTYPE_URL := https://www.iana.org/assignments/ianaiftype-mib/ianaiftype-mib
Expand Down Expand Up @@ -72,6 +73,8 @@ CYBERPOWER_URL := https://dl4jz3rbrsfum.cloudfront.net/software/CyberPower_M

EAP_VERSION := 1.0
EAP_URL := http://static.tp-link.com/EAP_Private_Mibs_$(EAP_VERSION).zip
MIB_BROWSER_URL := https://mibbrowser.online/mibs


.DEFAULT: all

Expand All @@ -93,7 +96,8 @@ clean:
$(MIBDIR)/.kemp-lm \
$(MIBDIR)/.tplinkddm \
$(MIBDIR)/readynas \
$(MIBDIR)/readydataos
$(MIBDIR)/readydataos \
$(MIBDIR)/.eltex-mes

generator: *.go
go build
Expand Down Expand Up @@ -161,14 +165,14 @@ mibs: \
$(MIBDIR)/PDU-MIB.txt \
$(MIBDIR)/PDU2-MIB.txt \
$(MIBDIR)/Infrapower-MIB.mib \
$(MIBDIR)/LIEBERT_GP_PDU.MIB \
$(MIBDIR)/CyberPower.MIB \
$(MIBDIR)/EAP.MIB \
$(MIBDIR)/EAP-Client.MIB \
$(MIBDIR)/powercom \
$(MIBDIR)/.cisco_imc \
$(MIBDIR)/FROGFOOT-RESOURCES-MIB \
$(MIBDIR)/.dlink-mibs
$(MIBDIR)/.dlink-mibs \
$(MIBDIR)/.eltex-mes

$(MIBDIR)/apc-powernet-mib:
@echo ">> Downloading apc-powernet-mib"
Expand Down Expand Up @@ -443,3 +447,12 @@ $(MIBDIR)/.cisco_imc:
@curl $(CURL_OPTS) -o $(MIBDIR)/CISCO-TC.my "$(CISCO_CUCS_URL_v2)/CISCO-TC.my"
@curl $(CURL_OPTS) -o $(MIBDIR)/CISCO-SMI.my "$(CISCO_CUCS_URL_v2)/CISCO-SMI.my"
@touch $(MIBDIR)/.cisco_imc

$(MIBDIR)/.eltex-mes:
$(eval TMP := $(shell mktemp))
@echo ">> Downloading Eltex MES device mibs to $(TMP)"
@curl $(CURL_OPTS) $(CURL_USER_AGENT) -o $(TMP) $(ELTEX_MES_URL)
@unzip -j -d $(MIBDIR) $(TMP) fsiss.mib eltex/ELTEX-SMI-ACTUAL.mib eltex/ELTEX-MES-ISS-CPU-UTIL-MIB.mib eltex/ELTEX-MES-ISS-MIB.mib CISCO-QOS-PIB-MIB.mib
@rm -v $(TMP)
# @curl $(CURL_OPTS) -o $(MIBDIR)/SYSLOG-TC-MIB $(MIB_BROWSER_URL)/SYSLOG-TC-MIB.mib
@touch $(MIBDIR)/.eltex-mes
7 changes: 7 additions & 0 deletions generator/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ modules:
overrides:
agentDRAMutilizationUnitID:
ignore: true
# MES 2448P
eltex_mes:
walk:
- ELTEX-MES-ISS-CPU-UTIL-MIB::eltMesIssCpuUtilLast5Seconds # CPU 0-100%
- ELTEX-MES-ISS-CPU-UTIL-MIB::eltMesIssCpuUtilLastMinute # CPU 0-100%
- ELTEX-MES-ISS-CPU-UTIL-MIB::eltMesIssCpuUtilLast5Minutes # CPU 0-100%
- ARICENT-ISS-MIB::issSwitchCurrentRAMUsage # Memory

# HPE MIBs
hpe:
Expand Down
23 changes: 23 additions & 0 deletions snmp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13077,6 +13077,29 @@ modules:
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
eltex_mes:
get:
- 1.3.6.1.4.1.2076.81.1.73.0
- 1.3.6.1.4.1.35265.1.139.6.1.1.2.1.0
- 1.3.6.1.4.1.35265.1.139.6.1.1.2.2.0
- 1.3.6.1.4.1.35265.1.139.6.1.1.2.3.0
metrics:
- name: issSwitchCurrentRAMUsage
oid: 1.3.6.1.4.1.2076.81.1.73
type: gauge
help: Indicates the current RAM usage of the switch in percentage - 1.3.6.1.4.1.2076.81.1.73
- name: eltMesIssCpuUtilLast5Seconds
oid: 1.3.6.1.4.1.35265.1.139.6.1.1.2.1
type: gauge
help: Percentage of the device CPU utilization during last 5 seconds - 1.3.6.1.4.1.35265.1.139.6.1.1.2.1
- name: eltMesIssCpuUtilLastMinute
oid: 1.3.6.1.4.1.35265.1.139.6.1.1.2.2
type: gauge
help: Percentage of the device CPU utilization during last minute - 1.3.6.1.4.1.35265.1.139.6.1.1.2.2
- name: eltMesIssCpuUtilLast5Minutes
oid: 1.3.6.1.4.1.35265.1.139.6.1.1.2.3
type: gauge
help: Percentage of the device CPU utilization during the last 5 minutes - 1.3.6.1.4.1.35265.1.139.6.1.1.2.3
hpe:
walk:
- 1.3.6.1.4.1.232.1.2.2.1.1
Expand Down

0 comments on commit 433b720

Please # to comment.