Description of Problem: The snmpd reports a error message into /var/log/messages as follows. snmpd[PID]: error on subcontainer '' insert (-1) According to the debugging log, some key was overlapped when the snmpd captured EtherLike-MIB::dot3StatsTable. 2009-12-16 15:00:11 snmp_agent: tp->start EtherLike-MIB::dot3StatsTable, tp->end EtherLike-MIB::dot3.3, <snip> 2009-12-16 15:00:11 trace: netsnmp_binary_array_insert(): container_binary_array.c, 377: 2009-12-16 15:00:11 container: not inserting duplicate key ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2009-12-16 15:00:11 error on subcontainer '' insert (-1) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Then, according to ifconfig, an IP aliasing "eth0:1" was set up to eth0. eth0 Link encap:Ethernet HWaddr 00:0A:E4:8B:F7:B2 inet addr:192.168.1.31 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:166692481 errors:0 dropped:0 overruns:0 frame:0 TX packets:197237691 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2333128041 (2.1 GiB) TX bytes:935095508 (891.7 MiB) Memory:ce160000-ce180000 eth0:1 Link encap:Ethernet HWaddr 00:0A:E4:8B:F7:B2 inet addr:192.168.1.30 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Memory:ce160000-ce180000 The snmpd reports the error message mentioned above when it captures the following two MIBs on an environment where an IP aliasing is set up. - ETHERLIKE-MIB:dot3StatsTable - RMON-MIB::etherStatsTable Version-Release number of selected component (if applicable): Release Number: 5.3 Architecture: x86 Kernel Version: 2.6.18-128.el5 Related Package Version: net-snmp-5.3.2.2-7.el5_4.2 How reproducible: always Steps to Reproduce: 1) Run the following command to set up an IP aliasing "eth0:1" to eth0. # ifconfig eth0:1 192.168.1.100 2) Run the following command to restart the snmpd service. # service snmpd restart 3) Capture EtherLike-MIB::dot3StatsTable or RMON-MIB::etherStatsTable # snmpwalk -c public -v 1 localhost EtherLike-MIB::dot3StatsTable EtherLike-MIB::dot3StatsIndex.2 = INTEGER: 2 EtherLike-MIB::dot3StatsAlignmentErrors.2 = Counter32: 0 EtherLike-MIB::dot3StatsSingleCollisionFrames.2 = Counter32: 0 EtherLike-MIB::dot3StatsMultipleCollisionFrames.2 = Counter32: 0 EtherLike-MIB::dot3StatsLateCollisions.2 = Counter32: 0 EtherLike-MIB::dot3StatsExcessiveCollisions.2 = Counter32: 0 EtherLike-MIB::dot3StatsDuplexStatus.2 = INTEGER: fullDuplex(3) Actual results: The snmpd reports a error message "error on subcontainer '' insert (-1)". Expected results: The snmpd doesn't report a error message "error on subcontainer '' insert (-1)". Additional info: The entry for these tables is stored with ifindex as the key. The ifindex of eth0:1 is same as that of eth0:1. So, it was recognized as duplicate entry.
I've fixed it slightly differently upstream, SVN rev. 18006.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-1076.html