RE: Seems that I found bugs related to stash_cashe in 5.7...
Joan Landry <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <B6B5ACC096D8924AA1D765231278AAF7185D3B1B@mbx024-e1-nj-2.exch024.domain.local> |
Bart, I was installing the patch listed in the email below and wanted to verify the following: It possibly looks like the following line should be ifndef instead of ifdef? +++ b/agent/mibgroup/mibII/tcp.c -#ifdef NETSNMP_FEATURE_HAS_TCP_COUNT_CONNECTIONS +#ifdef NETSNMP_FEATURE_REMOVE_TCP_COUNT_CONNECTIONS Possibly should be: +#ifndef NETSNMP_FEATURE_REMOVE_TCP_COUNT_CONNECTIONS Please confirm, Thanks From: Bart Van Assche [mailto:[email protected]] Sent: Tuesday, July 26, 2011 7:41 AM To: Ivo Faldini Cc: Meir Katz; [email protected] Subject: Re: Seems that I found bugs related to stash_cashe in 5.7... On Tue, Jul 26, 2011 at 11:08 AM, Ivo Faldini <[email protected]<mailto:[email protected]>> wrote: The first and immediate fix is to: #define NETSNMP_FEATURE_HAS_STASH_CACHE In a place that all_helpers.c will see it That's wrong because that would break the configure option --enable-minimal. See also https://sourceforge.net/tracker/?group_id=12694&atid=312694 for a proper patch. Add to your snmpd.conf: injectHandler stash_cache nsModuleTable table_iterator try to execute snmpd with follow cmd line: snmpd -DinjectHandler,helper:stash_cache,initialize_table_nsModuleTable -c snmpd.conf What I see in the logs with both 5.7 and 5.6 after having applied the aforementioned patch is: injectHandler: injecting handler cache_handler into nsModuleTable So iterator injection seems to work fine. But I'm not sure that your claim is correct that the stash_cache is working fine in 5.6 - a MIB walk times out at the end of the host resources MIB with 5.6: $ agent/snmpd -Mmibs -c ../snmpd.conf -f -Lo -DinjectHandler,helper:stash_cache,initialize_table_nsModuleTable :1161 & [ ... ] $ apps/snmpwalk -Mmibs -v2c -cpublic :1161 .1 [ ... ] HOST-RESOURCES-MIB::hrSWRunPerfMem.32504 = INTEGER: 663508 KBytes Timeout: No Response from :1161 The above test works fine with 5.4 and 5.5 however. Bart. ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users