mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Added ability to force devices to use ifEntry instead of ifXEntry (#4100)
This commit is contained in:
committed by
Tony Murray
parent
921d5b9ed5
commit
0d2c443ee9
@@ -451,6 +451,7 @@ $config['os'][$os]['over'][1]['text'] = 'CPU Usage';
|
||||
$config['os'][$os]['over'][2]['graph'] = 'device_mempool';
|
||||
$config['os'][$os]['over'][2]['text'] = 'Memory Usage';
|
||||
$config['os'][$os]['icon'] = 'cisco';
|
||||
$config['os'][$os]['bad_ifXEntry'][] = 'cisco1941';
|
||||
|
||||
$os = 'acsw';
|
||||
// $config['os'][$os]['group'] = "cisco";
|
||||
|
@@ -122,7 +122,10 @@ $ifmib_oids = array(
|
||||
);
|
||||
|
||||
echo 'Caching Oids: ';
|
||||
$port_stats = snmpwalk_cache_oid($device, 'ifXEntry', $port_stats, 'IF-MIB');
|
||||
|
||||
if (!in_array($device['hardware'], $config['os'][$device['os']]['bad_ifXEntry'])) {
|
||||
$port_stats = snmpwalk_cache_oid($device, 'ifXEntry', $port_stats, 'IF-MIB');
|
||||
}
|
||||
|
||||
$hc_test = array_slice($port_stats, 0, 1);
|
||||
if (!isset($hc_test[0]['ifHCInOctets']) && !is_numeric($hc_test[0]['ifHCInOctets'])) {
|
||||
|
Reference in New Issue
Block a user