mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -20,13 +20,12 @@ $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 (count($components > 0)) {
|
||||
if ($components) {
|
||||
// Let's gather the stats..
|
||||
$atNtpAssociationEntry = snmpwalk_group($device, 'atNtpAssociationEntry', 'AT-NTP-MIB');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user