keepalived-snmp: add support for SNMP RFC MIBs
The keepalived-snmp
package in the Alpine community repository is currently built only with the --enable-snmp
configure flag, which only enables the KEEPALIVED-MIB
MIB. However, since version 1.2.20
(2016-04-02), Keepalived also added support for two additional OIDs based after existing RFC standards. The changelog entries are:
-
VRRPv2 (RFC2787) - OID:
1.3.6.1.2.1.68
- MIB:VRRP-MIB.txt
-
VRRPv3 (RFC6527) - OID:
1.3.6.1.2.1.207
- MIB:VRRPv3-MIB.txt
Note that these two extra MIB files are currently also installed by keepalived-snmp
but not used.
To enable these two OIDs in Keepalived, the --enable-snmp-rfc
flag must be used in addition to --enable-snmp
.
I tested a local build with that flag and all seems to be working fine in our setup, and the resulting keepalived
binary doesn't seem to grow too much either:
-rwx------ 1 root root 603448 Mar 27 00:29 /usr/sbin/keepalived
-rwx------ 1 root root 617144 Jun 29 16:03 /usr/sbin/keepalived
Would it be possible to enable these two extra OIDs officialy in keepalived-snmp
?
I think that just addding the --enable-snmp-rfc
configure flag to the existing --enable-snmp
one should be enough here:
This change should not be breaking as it is an additive change. It makes Keepalived emit more OIDs on top of the existing OID for KEEPALIVED-MIB.txt
. The extra OIDs are quite useful because they provide additional VRRP router statistics.
If you are ok with adding this, let me know if you prefer me to submit a PR myself.