mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: only run pre-cache for the current OS (#6453)
Change powerwalker to use the $pre_cache array
This commit is contained in:
committed by
Neil Lathwood
parent
2ced131cf5
commit
c88c677a16
@@ -23,7 +23,5 @@
|
||||
* @author Neil Lathwood <neil@lathwood.co.uk>
|
||||
*/
|
||||
|
||||
if ($device['os'] === 'apc') {
|
||||
$pre_cache['cooling_unit_analog'] = snmpwalk_cache_oid($device, 'coolingUnitStatusAnalogEntry', array(), 'PowerNet-MIB');
|
||||
d_echo($pre_cache);
|
||||
}
|
||||
echo 'coolingUnitStatusAnalogEntry ';
|
||||
$pre_cache['cooling_unit_analog'] = snmpwalk_cache_oid($device, 'coolingUnitStatusAnalogEntry', array(), 'PowerNet-MIB');
|
||||
|
Reference in New Issue
Block a user