mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
get a lock when doing discovery
This commit is contained in:
@@ -106,7 +106,9 @@ if ($config['distributed_poller'] === true) {
|
||||
}
|
||||
|
||||
foreach (dbFetch("SELECT * FROM `devices` WHERE status = 1 AND disabled = 0 $where ORDER BY device_id DESC") as $device) {
|
||||
if (dbGetLock('polling.' . $device['device_id'])) {
|
||||
discover_device($device, $options);
|
||||
}
|
||||
}
|
||||
|
||||
$end = utime();
|
||||
|
Reference in New Issue
Block a user