Avoid "setting unknown option …" on ethernet interfaces
Brought to you by:
runesk
Hi,
I recently saw that my OpenWRT router (using munin-lite) was causing some errors in my munin logs. The problem is that when running ethtool on some ethernet interfaces from which one cannot get the speed, it spits out some error message on stderr that get transmitted as plotting data…
The following patch fixes that, by redirecting stderr to /dev/null when calling ethtool. (I did not do it for the second call too, because I think that if it passes the first call, the second one is ok)
BTW, maybe another solution would be not to pass /dev/stderr as plotting data altogether, but I'll let you decide.
Regards,
Benjamin
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
The issue is now fixed (in muninlite's new home at github):
https://github.com/munin-monitoring/muninlite/commit/44d1c8dc3aef0186bf6934fd1307133703f7916f
Thank you!