mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 08:03:30 +02:00
make sure lock name matches action
This commit is contained in:
+2
-1
@@ -250,7 +250,8 @@ dev_query = ('SELECT device_id, status,
|
|||||||
') as next_discovery '
|
') as next_discovery '
|
||||||
'FROM devices WHERE '
|
'FROM devices WHERE '
|
||||||
'disabled = 0 '
|
'disabled = 0 '
|
||||||
'AND IS_FREE_LOCK(CONCAT("polling.", device_id)) '
|
'AND IS_FREE_LOCK(CONCAT("poll.", device_id)) '
|
||||||
|
'AND IS_FREE_LOCK(CONCAT("discovery.", device_id)) '
|
||||||
'AND ( last_poll_attempted < DATE_SUB(NOW(), INTERVAL {2} SECOND ) '
|
'AND ( last_poll_attempted < DATE_SUB(NOW(), INTERVAL {2} SECOND ) '
|
||||||
' OR last_poll_attempted IS NULL ) '
|
' OR last_poll_attempted IS NULL ) '
|
||||||
'{3} '
|
'{3} '
|
||||||
|
|||||||
Reference in New Issue
Block a user