Skip to content

Commit

Permalink
Update keepalived config generation (#773)
Browse files Browse the repository at this point in the history
* updated `KEEPALIVED-MIB` and `VRRP-MIB` MIB URLs to latest version from upstream
* added support for `VRRPv3-MIB` MIB from upstream (new `vrrpv3StatisticsTable` walk)
* regenerated `keepalived` section in `snmp.yml` using the above changes

Signed-off-by: Hugo Hromic <[email protected]>
  • Loading branch information
hhromic authored Jul 2, 2022
1 parent 11974a1 commit 9695169
Show file tree
Hide file tree
Showing 3 changed files with 309 additions and 56 deletions.
10 changes: 8 additions & 2 deletions generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ CISCO_URL := 'ftp://ftp.cisco.com/pub/mibs/v2/v2.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
IANA_PRINTER_URL := https://www.iana.org/assignments/ianaprinter-mib/ianaprinter-mib
KEEPALIVED_URL := https://raw.githubusercontent.com/acassen/keepalived/v2.1.5/doc/KEEPALIVED-MIB.txt
VRRP_URL := https://raw.githubusercontent.com/acassen/keepalived/v2.1.5/doc/VRRP-MIB.txt
KEEPALIVED_URL := https://raw.githubusercontent.com/acassen/keepalived/v2.2.7/doc/KEEPALIVED-MIB.txt
VRRP_URL := https://raw.githubusercontent.com/acassen/keepalived/v2.2.7/doc/VRRP-MIB.txt
VRRPV3_URL := https://raw.githubusercontent.com/acassen/keepalived/v2.2.7/doc/VRRPv3-MIB.txt
KEMP_LM_URL := https://kemptechnologies.com/files/packages/current/LM_mibs.zip
MIKROTIK_URL := 'https://box.mikrotik.com/f/a41daf63d0c14347a088/?dl=1'
NEC_URL := https://jpn.nec.com/univerge/ix/Manual/MIB
Expand Down Expand Up @@ -96,6 +97,7 @@ mibs: mib-dir \
$(MIBDIR)/IANA-PRINTER-MIB.txt \
$(MIBDIR)/KEEPALIVED-MIB \
$(MIBDIR)/VRRP-MIB \
$(MIBDIR)/VRRPv3-MIB \
$(MIBDIR)/.kemp-lm \
$(MIBDIR)/MIKROTIK-MIB \
$(MIBDIR)/.net-snmp \
Expand Down Expand Up @@ -170,6 +172,10 @@ $(MIBDIR)/VRRP-MIB:
@echo ">> Downloading VRRP-MIB"
@curl $(CURL_OPTS) -o $(MIBDIR)/VRRP-MIB $(VRRP_URL)

$(MIBDIR)/VRRPv3-MIB:
@echo ">> Downloading VRRPv3-MIB"
@curl $(CURL_OPTS) -o $(MIBDIR)/VRRPv3-MIB $(VRRPV3_URL)

$(MIBDIR)/.kemp-lm:
$(eval TMP := $(shell mktemp))
@echo ">> Downloading Kemp LM MIBs to $(TMP)"
Expand Down
6 changes: 4 additions & 2 deletions generator/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,9 @@ modules:

# keepalived
#
# https://github.com/acassen/keepalived/blob/master/doc/KEEPALIVED-MIB.txt
# https://github.com/acassen/keepalived/blob/master/doc/VRRP-MIB.txt
# https://github.com/acassen/keepalived/blob/v2.2.7/doc/KEEPALIVED-MIB.txt
# https://github.com/acassen/keepalived/blob/v2.2.7/doc/VRRP-MIB.txt
# https://github.com/acassen/keepalived/blob/v2.2.7/doc/VRRPv3-MIB.txt
keepalived:
walk:
- vrrpInstanceTable # Table of VRRP instances.
Expand All @@ -374,6 +375,7 @@ modules:
- virtualServerTable # Table of virtual servers.
- realServerTable # Table of real servers. This includes regular real servers and sorry servers.
- vrrpRouterStatsTable # Table of VRRP statistics.
- vrrpv3StatisticsTable # Table of VRRPv3 statistics.
overrides:
vrrpSyncGroupScriptMaster:
ignore: true # Non-metric display string.
Expand Down
Loading

0 comments on commit 9695169

Please sign in to comment.