mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix for cimc polling on PHP8 (#13357)
This commit is contained in:
@@ -18,7 +18,7 @@ $components = $component->getComponents($device['device_id'], ['type'=>'Cisco-CI
|
|||||||
$components = $components[$device['device_id']];
|
$components = $components[$device['device_id']];
|
||||||
|
|
||||||
// Only collect SNMP data if we have enabled components
|
// Only collect SNMP data if we have enabled components
|
||||||
if (count($components > 0)) {
|
if (! empty($components)) {
|
||||||
// Let's gather some data..
|
// Let's gather some data..
|
||||||
$tblUCSObjects = snmpwalk_array_num($device, '.1.3.6.1.4.1.9.9.719.1', 0);
|
$tblUCSObjects = snmpwalk_array_num($device, '.1.3.6.1.4.1.9.9.719.1', 0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user