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:
Tony Murray 2017-11-23 02:31:15 -06:00 committed by Neil Lathwood
parent 257a314fca
commit 9113f81272

View File

@ -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);
}