Hi All, I can see that LibreNMS monitors BGP peers and the number of prefixes received from each neighbor. I’d like to create an alert rule that triggers when the number of prefixes drops below a certain threshold—for example, when we stop receiving the full Internet routing table from a service provider.
Is it possible to create an alert rule in LibreNMS to monitor and alert on BGP peer prefix In counts?Thank you!
I tried creating rules like this so it would alert us when a peer withdraws more than 100K routes, but it’s not working the way I want. Any help would be appreciated!
I’m not 100% on this, but I believe WithdrawnPrefixes only applies to routes you’re advertising. Not routes you’re receiving/accepting.
I don’t know why the peer IP isn’t showing up, that’s going to make filtering more difficult, but I believe if you want to compare against a threshold level your would use:
bgpPeers_cbgp.AcceptedPrefixes < 100000
If you wanted to alert more like your second example, I believe it would be:
bgpPeers_cbgp.AcceptedPrefixes_delta > 100000
Delta being the difference in prefixes between the current and the previously polled prefix counts.
This is our working BGP alert
we do have a few bgpPeers.bgpPeerIdentifier != IP to exclude ones we don’t need to worry about
then we have a alert that show us that is it back up