Reduce DB polling while getting SNMP data (#11162)

This commit is contained in:
SourceDoctor
2020-02-18 13:26:41 +01:00
committed by GitHub
parent 3838d8e41f
commit c8bdd10e6a
2 changed files with 17 additions and 10 deletions

View File

@@ -172,7 +172,7 @@ function gen_snmp_cmd($cmd, $device, $oids, $options = null, $mib = null, $mibdi
array_push($cmd, '-r', $retries);
}
$pollertarget = Device::pollerTarget($device['hostname']);
$pollertarget = Device::pollerTarget($device);
$cmd[] = $device['transport'].':'.$pollertarget.':'.$device['port'];
$cmd = array_merge($cmd, (array)$oids);