mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Moved the snmp query for poe outside of the loop
This commit is contained in:
@ -35,8 +35,8 @@ $peth_oids = array(
|
|||||||
'pethMainPseConsumptionPower',
|
'pethMainPseConsumptionPower',
|
||||||
);
|
);
|
||||||
|
|
||||||
$port_stats = snmpwalk_cache_oid($device, 'pethPsePortEntry', $port_stats, 'POWER-ETHERNET-MIB');
|
//$port_stats = snmpwalk_cache_oid($device, 'pethPsePortEntry', $port_stats, 'POWER-ETHERNET-MIB');
|
||||||
$port_stats = snmpwalk_cache_oid($device, 'cpeExtPsePortEntry', $port_stats, 'CISCO-POWER-ETHERNET-EXT-MIB');
|
//$port_stats = snmpwalk_cache_oid($device, 'cpeExtPsePortEntry', $port_stats, 'CISCO-POWER-ETHERNET-EXT-MIB');
|
||||||
|
|
||||||
if ($port_stats[$port['ifIndex']]
|
if ($port_stats[$port['ifIndex']]
|
||||||
&& $port['ifType'] == 'ethernetCsmacd'
|
&& $port['ifType'] == 'ethernetCsmacd'
|
||||||
|
@ -145,6 +145,11 @@ if ($device['adsl_count'] > '0') {
|
|||||||
$port_stats = snmpwalk_cache_oid($device, '.1.3.6.1.2.1.10.94.1.1.7.1.7', $port_stats, 'ADSL-LINE-MIB');
|
$port_stats = snmpwalk_cache_oid($device, '.1.3.6.1.2.1.10.94.1.1.7.1.7', $port_stats, 'ADSL-LINE-MIB');
|
||||||
}//end if
|
}//end if
|
||||||
|
|
||||||
|
if ($config['enable_ports_poe']) {
|
||||||
|
$port_stats = snmpwalk_cache_oid($device, 'pethPsePortEntry', $port_stats, 'POWER-ETHERNET-MIB');
|
||||||
|
$port_stats = snmpwalk_cache_oid($device, 'cpeExtPsePortEntry', $port_stats, 'CISCO-POWER-ETHERNET-EXT-MIB');
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME This probably needs re-enabled. We need to clear these things when they get unset, too.
|
// FIXME This probably needs re-enabled. We need to clear these things when they get unset, too.
|
||||||
// foreach ($etherlike_oids as $oid) { $port_stats = snmpwalk_cache_oid($device, $oid, $port_stats, "EtherLike-MIB"); }
|
// foreach ($etherlike_oids as $oid) { $port_stats = snmpwalk_cache_oid($device, $oid, $port_stats, "EtherLike-MIB"); }
|
||||||
// foreach ($cisco_oids as $oid) { $port_stats = snmpwalk_cache_oid($device, $oid, $port_stats, "OLD-CISCO-INTERFACES-MIB"); }
|
// foreach ($cisco_oids as $oid) { $port_stats = snmpwalk_cache_oid($device, $oid, $port_stats, "OLD-CISCO-INTERFACES-MIB"); }
|
||||||
|
Reference in New Issue
Block a user