File mrtg-ifHiSpeed-SG10G.patch of Package mrtg
diff -Nur mrtg-2.17.10/bin/cfgmaker new/bin/cfgmaker
--- mrtg-2.17.10/bin/cfgmaker 2022-01-19 11:25:15.000000000 +0100
+++ new/bin/cfgmaker 2022-01-23 15:39:48.415325741 +0100
@@ -235,6 +235,11 @@
debug('base',"Speed: $if - $value");
}
+ if ( ($descr =~ m/10-Gigabit Stackable/) && ($value == 10) && (defined $ifHighSpeed[$i]) ) {
+ ($if, $value) = split /:/, $ifHighSpeed[$i], 2;
+ $value = $value * 1000000; # highSpeed = contador * 10^6
+ debug('base',"Speed: $if - $value");
+ }
$routers->{$router}{$if}{'ifSpeed'} = $value;
}
} else {