[Bug 250549] Re: Wrong interface speed from snmpd running as snmp user

2008-09-15 Thread Bjorn Ruud
That's what I'm saying. The snmp user, which is the default user for the
snmpd service, doesn't have permission. Reading interface speed fails
with the standard package installation. Isn't that a bug? Is there a way
to give the snmp user the permissions it needs without giving it too
much access?

-- 
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
Server Team, which is subscribed to net-snmp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 250549] Re: Wrong interface speed from snmpd running as snmp user

2008-07-21 Thread Bjorn Ruud
** 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
Server Team, which is subscribed to net-snmp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs