On 30/09/09 19:49, Joseph Mack NA3T wrote:
> On Wed, 30 Sep 2009, Robin Bowes wrote:
>
>> Hi,
>>
>> I'm using the net-snmp-lvs-module
> .
> .
>> and I wondered if this module is
>> maintained, and where/who best to report them to?
>
> Here's as good a spot as any.
>
> We only see people (trying to) use this code now and again.
> AFAIK it's not being maintained. I expect the only changes
> are minor ones caused by changes in format of ip_vs output,
> so you may be able to fix the bugs and make them available
> for the rest of the world.
Joe,
I sorted out the duplication that I noticed in lvs.c and not only did it
silence the warnings on snmpd startup, but it seemed to fix the counters
too:
LVS-MIB::lvsServiceRateCps.1 = Gauge32: 54
LVS-MIB::lvsRealRateCps.1.1 = Gauge32: 18
LVS-MIB::lvsRealRateCps.1.2 = Gauge32: 18
LVS-MIB::lvsRealRateCps.1.3 = Gauge32: 18
However, this stopped working after a while, and I can't find a test
case that shows definitively when it starts/stops working.
I'd appreciate any help fixing that issue.
Any takers?? :)
Anyway, here's the patch for the duplicate registration issue:
--- net-snmp-lvs-module-0.0.4/lvs.c.orig 2009-09-30
20:08:06.000000000 +0000
+++ net-snmp-lvs-module-0.0.4/lvs.c 2009-09-30 20:09:15.000000000 +0000
@@ -495,8 +495,7 @@
snmp_log(LOG_INFO, "IPVS initialization for ");
netsnmp_register_read_only_instance(netsnmp_create_handler_registration("lvsVersion",
get_lvs_var, lvsVersion_oid, OID_LENGTH(lvsVersion_oid), HANDL
ER_CAN_RONLY));
netsnmp_register_read_only_instance(netsnmp_create_handler_registration("lvsNumServices",
get_lvs_var, lvsNumServices_oid, OID_LENGTH(lvsNumServices
_oid), HANDLER_CAN_RONLY));
-
netsnmp_register_read_only_instance(netsnmp_create_handler_registration("lvsNumServices",
get_lvs_var, lvsHashTableSize_oid, OID_LENGTH(lvsHashTable
Size_oid), HANDLER_CAN_RONLY));
-
netsnmp_register_read_only_instance(netsnmp_create_handler_registration("lvsNumServices",
get_lvs_var, lvsHashTableSize_oid, OID_LENGTH(lvsHashTable
Size_oid), HANDLER_CAN_RONLY));
+
netsnmp_register_read_only_instance(netsnmp_create_handler_registration("lvsHashTableSize",
get_lvs_var, lvsHashTableSize_oid, OID_LENGTH(lvsHashTab
leSize_oid), HANDLER_CAN_RONLY));
netsnmp_register_read_only_instance(netsnmp_create_handler_registration("lvsTcpTimeOut",
get_lvs_var, lvsTcpTimeOut_oid, OID_LENGTH(lvsTcpTimeOut_oi
d), HANDLER_CAN_RONLY));
netsnmp_register_read_only_instance(netsnmp_create_handler_registration("lvsTcpTimeOutFin",
get_lvs_var, lvsTcpTimeOutFin_oid, OID_LENGTH(lvsTcpTime
OutFin_oid), HANDLER_CAN_RONLY));
netsnmp_register_read_only_instance(netsnmp_create_handler_registration("lvsUdpTimeOut",
get_lvs_var, lvsUdpTimeOut_oid, OID_LENGTH(lvsUdpTimeOut_oi
d), HANDLER_CAN_RONLY));
R.
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
|