Hi Xavier,
Are you saying port speeds are wrong on Ubuntu? All my Ubuntus and Debians run snmpd as user snmpd, don't have suid ethtool and they report the correct port speed over SNMP [and as such, in Observium]. I'm having a hard time to believe snmpd runs ethtool to get port speeds.... :-/
Tom
On 11/07/2013 14:59, Xavier Beaudouin wrote:
Hello,
De: "Laurens Vets" laurens@daemon.be
(...)
Some SNMP implementations are extremely bad (I'm looking at you Check Point). A workaround is to fill it in manually in snmpd.conf:
For 100mbit: interface eth0 6 10000000
For gigabit: interface eth0 6 100000000
I finaly find why linux net-snmpd give bad speed.
On this OS, it use ethtool to get the speed, which is allowed only for root user.
Since for "security" snmpd on ubuntu is started as snmpd:snmpd, it cannot runs /sbin/ethtool as root.
2 way to fix that :
- modify /etc/default/snmpd and launch snmpd as root
- chmod u+s /sbin/ethtool
I used the second one.
Please add that on the wiki please.
Xavier _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium