11 Jul
2013
11 Jul
'13
2:59 p.m.
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