mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Set array before use (#15604)
This commit is contained in:
@@ -6,6 +6,7 @@ echo 'AXIS Temperatures ';
|
||||
$oids_tmp = snmpwalk_cache_multi_oid($device, 'tempSensorTable', [], 'AXIS-VIDEO-MIB');
|
||||
$cur_oid = '.1.3.6.1.4.1.368.4.1.3.1.4.1.';
|
||||
|
||||
$oids = [];
|
||||
// Exclude from $oids content .common string
|
||||
foreach ($oids_tmp as $key_oids_tmp => $val_oids_tmp) {
|
||||
$oids[str_replace('common.', '', $key_oids_tmp)] = $val_oids_tmp;
|
||||
|
Reference in New Issue
Block a user