Incorrect speed of interfaces reported by Observium
Hi there,
I dunno if it is already an asked question, but it seems on linux that Observium insist to report links to 10Mbps instead of the real speed.
Is there any hack / hint about tell Observium the interface is 1Gps or 10Gps to avoid false alarms ?
Kind regards, Xavier
Observium doesn't insist on anything, it reports the speed as reported by your Linux box.
On 07/08/2013 05:12 PM, Xavier Beaudouin wrote:
Hi there,
I dunno if it is already an asked question, but it seems on linux that Observium insist to report links to 10Mbps instead of the real speed.
Is there any hack / hint about tell Observium the interface is 1Gps or 10Gps to avoid false alarms ?
Kind regards, Xavier _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
On 2013-07-08 17:20, Xavier Beaudouin wrote:
Hi,
Observium doesn't insist on anything, it reports the speed as reported by your Linux box.
Ok, so net-snmp is borken ? or there any way to override the detection subsystemp ?
Why would you want to?
Either:
the number is broken because the agent is broken, and you know to ignore it
or
the number is broken because you forgot to update it when the port speed changed but you don't know to ignore it so you never know whether the number is real or not
This is why we don't allow things that come from SNMP to be set manually, it makes all of the data unreliable.
adam.
Hi Adam,
Why would you want to?
Either:
the number is broken because the agent is broken, and you know to ignore it
or
the number is broken because you forgot to update it when the port speed changed but you don't know to ignore it so you never know whether the number is real or not
This is why we don't allow things that come from SNMP to be set manually, it makes all of the data unreliable.
Ok I understand that, but you cannot say the agent of ubuntu 12.04 is completly borken.
The speed is not real, but the data reported is real when going > 10Mbps.... So what is your advise.
Regards,
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
On 2013-07-08 17:44, Xavier Beaudouin wrote:
Hi Adam,
Why would you want to?
Either:
the number is broken because the agent is broken, and you know to ignore it
or
the number is broken because you forgot to update it when the port speed changed but you don't know to ignore it so you never know whether the number is real or not
This is why we don't allow things that come from SNMP to be set manually, it makes all of the data unreliable.
Ok I understand that, but you cannot say the agent of ubuntu 12.04 is completly borken.
The speed is not real, but the data reported is real when going > 10Mbps.... So what is your advise.
Regards, _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
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
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
Well I don't believe this either. Something done to this installation to make it "work" like that.
On 12/07/13 04:29, Tom Laermans wrote:
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
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Hello,
I have several ubuntu (you can read : there is lots of ubuntu there).
If I start snmpd with uig / gid root, then I get correct speed, if I use uid/gid snmpd then the debug log of snmpd tell me : ethtool failure.
Adding a sticky bit didn't fix that BTW, I have run this thing under root to get this fixed.
Tried with : ubuntu server 7.04, 8,04, 9,04, 10,04, 11,04 and 12.04 (all are LTS). Desktop version has same issue also.
On debian 6.0.7 the correct speed is set too. So the issue is : ubuntu
On FreeBSD, (pfsense, etc..), netscreen, Cisco, we don't have such brain damage.
By the way, loopback if is also set on 10Mbps on ubuntu which is brain damaged too...
If you don't believe, just give a try.
Regards, Xavier
Loopback always been like that in Linux, feel free to send patch into kernel :).
Just checked my workstation Ubuntu 13.04, works as expected. 1 - loopback, 2 - connected at 100mbps, 3 - down interface.
shopik@shopik-G41T-M9:~$ snmpwalk -Os -c public -v 2c localhost ifspeed ifSpeed.1 = Gauge32: 10000000 ifSpeed.2 = Gauge32: 100000000 ifSpeed.3 = Gauge32: 10000000
On 15/07/13 11:40, Xavier Beaudouin wrote:
Hello,
I have several ubuntu (you can read : there is lots of ubuntu there).
If I start snmpd with uig / gid root, then I get correct speed, if I use uid/gid snmpd then the debug log of snmpd tell me : ethtool failure.
Adding a sticky bit didn't fix that BTW, I have run this thing under root to get this fixed.
Tried with : ubuntu server 7.04, 8,04, 9,04, 10,04, 11,04 and 12.04 (all are LTS). Desktop version has same issue also.
On debian 6.0.7 the correct speed is set too. So the issue is : ubuntu
On FreeBSD, (pfsense, etc..), netscreen, Cisco, we don't have such brain damage.
By the way, loopback if is also set on 10Mbps on ubuntu which is brain damaged too...
If you don't believe, just give a try.
Regards, Xavier _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
On 8/07/2013 17:20, Xavier Beaudouin wrote:
Hi,
Observium doesn't insist on anything, it reports the speed as reported by your Linux box.
Ok, so net-snmp is borken ? or there any way to override the detection subsystemp ?
Net-SNMP reports what Linux reports. The kernel is broken.
root@jupiter:~# ethtool vnet0|grep Speed Speed: 10Mb/s
At least Microsoft is smart enough to set their virtual interfaces to 10Gbit.
Tom
participants (5)
-
Adam Armstrong
-
Laurens Vets
-
Nikolay Shopik
-
Tom Laermans
-
Xavier Beaudouin