mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Overwrite ifSpeed with ifHighSpeed * 1M if ifSpeed > 1G. Thanks to Bill Fenner from Arista for the nudge :)
git-svn-id: http://www.observium.org/svn/observer/trunk@1503 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -109,6 +109,11 @@
|
|||||||
$this_port['ifOutOctets'] = $this_port['ifHCOutOctets'];
|
$this_port['ifOutOctets'] = $this_port['ifHCOutOctets'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(is_numeric($this_port['ifHighSpeed']) && $this_port['ifSpeed'] > "1000000000")
|
||||||
|
{
|
||||||
|
$this_port['ifSpeed'] = $this_port['ifHighSpeed'] * 1000000;
|
||||||
|
}
|
||||||
|
|
||||||
/// Update IF-MIB data
|
/// Update IF-MIB data
|
||||||
foreach ($data_oids as $oid) {
|
foreach ($data_oids as $oid) {
|
||||||
if ( $port[$oid] != $this_port[$oid] && !isset($this_port[$oid])) {
|
if ( $port[$oid] != $this_port[$oid] && !isset($this_port[$oid])) {
|
||||||
|
Reference in New Issue
Block a user