** Description changed: snmpd reports wrong interface speed when it is run as the snmp user. Running snmpd as root gives the correct result. Debug output suggests a permission problem. The gigabit network interface speed is correctly determined at startup, but fails when the owner of the process switches from root to the snmp user (or so I assume). After failure snmpwalk reports a speed of 10 Mbit/s for all interfaces. Using snmp user: # snmpd -f -Le -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -DmibII/interfaces registered debug token mibII/interfaces, 1 netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load() netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load() netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load() mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000 mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000 NET-SNMP version 5.4.1.2 mibII/interfaces: ETHTOOL_GSET on eth0 failed mibII/interfaces: SIOCGMIIPHY on eth0 failed Using root user: # snmpd -f -Le -Lf /dev/null -I -smux -p /var/run/snmpd.pid -DmibII/interfaces registered debug token mibII/interfaces, 1 netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load() netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load() netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load() mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000 mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000 NET-SNMP version 5.4.1.2 mibII/interfaces: ETHTOOL_GSET on eth0 speed = 1000 + + Note: The output is from version 5.4.1.2 which I packaged for testing + purposes, but the problem is the same with version 5.4.1.
-- Wrong interface speed from snmpd running as snmp user https://bugs.launchpad.net/bugs/250549 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs