mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Copy packets over from hc index to non-index
This commit is contained in:
@@ -111,7 +111,6 @@ $pagp_oids = array(
|
||||
$ifmib_oids = array_merge($data_oids, $stat_oids);
|
||||
|
||||
$ifmib_oids = array(
|
||||
//'ifEntry',
|
||||
'ifDescr',
|
||||
'ifXEntry',
|
||||
'ifAdminStatus',
|
||||
@@ -367,6 +366,10 @@ foreach ($ports as $port) {
|
||||
$this_port['ifInOctets'] = $this_port['ifHCInOctets'];
|
||||
$this_port['ifOutOctets'] = $this_port['ifHCOutOctets'];
|
||||
}
|
||||
if (is_numeric($this_port['ifHCInUcastPkts']) && $this_port['ifHCInUcastPkts'] > 0 && is_numeric($this_port['ifHCOutUcastPkts']) && $this_port['ifHCOutUcastPkts'] > 0) {
|
||||
$this_port['ifInUcastPkts'] = $this_port['ifHCInUcastPkts'];
|
||||
$this_port['ifOutUcastPkts'] = $this_port['ifHCOutUcastPkts'];
|
||||
}
|
||||
|
||||
if ($device['os'] === 'airos-af' && $port['ifAlias'] === 'eth0') {
|
||||
$airos_stats = snmpwalk_cache_oid($device, '.1.3.6.1.4.1.41112.1.3.3.1', $airos_stats, 'UBNT-AirFIBER-MIB');
|
||||
|
Reference in New Issue
Block a user