mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Allow discovery to check if devices are down before skipping (#7780)
* fix: allow discovery to check if devices are down before skipping We could also exclude snmp_disable devices from SQL query, worthwhile? * also skip ping only devices
This commit is contained in:
committed by
Neil Lathwood
parent
257a314fca
commit
9113f81272
@ -121,7 +121,7 @@ if (!empty($config['distributed_poller_group'])) {
|
||||
}
|
||||
|
||||
global $device;
|
||||
foreach (dbFetch("SELECT * FROM `devices` WHERE status = 1 AND disabled = 0 $where ORDER BY device_id DESC", $sqlparams) as $device) {
|
||||
foreach (dbFetch("SELECT * FROM `devices` WHERE disabled = 0 AND snmp_disable = 0 $where ORDER BY device_id DESC", $sqlparams) as $device) {
|
||||
discover_device($device, $options);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user