mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -22,10 +22,9 @@ $options = [];
|
||||
$options['filter']['type'] = ['=', $tmp_module];
|
||||
$options['filter']['disabled'] = ['=', 0];
|
||||
$options['filter']['ignore'] = ['=', 0];
|
||||
$components = $component->getComponents($device['device_id'], $options);
|
||||
|
||||
// We only care about our device id.
|
||||
$components = $components[$device['device_id']];
|
||||
$components = $component->getComponents($device['device_id'], $options)[$device['device_id']] ?? null;
|
||||
|
||||
// Only collect SNMP data if we have enabled components
|
||||
if (is_array($components) && count($components) > 0) {
|
||||
|
Reference in New Issue
Block a user