mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
BGP-peers if no data, skip (#15548)
This commit is contained in:
@@ -458,10 +458,16 @@ if (! empty($peers)) {
|
|||||||
$peer_data['bgpPeerIface'] = null;
|
$peer_data['bgpPeerIface'] = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
d_echo($peer_data);
|
|
||||||
} catch (InvalidIpException $e) {
|
} catch (InvalidIpException $e) {
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($peer_data)) {
|
||||||
|
continue; // no data, try next peer
|
||||||
|
}
|
||||||
|
|
||||||
|
d_echo($peer_data);
|
||||||
|
|
||||||
// --- Send event log notices ---
|
// --- Send event log notices ---
|
||||||
if ($peer_data['bgpPeerFsmEstablishedTime']) {
|
if ($peer_data['bgpPeerFsmEstablishedTime']) {
|
||||||
if (! (is_array(\LibreNMS\Config::get('alerts.bgp.whitelist'))
|
if (! (is_array(\LibreNMS\Config::get('alerts.bgp.whitelist'))
|
||||||
|
Reference in New Issue
Block a user