PermitANY

Monitoring · python · 58 copies

BGP Prefix Count Monitor & Leak Detector

Tracks prefix counts per BGP peer and per VRF, learns a baseline automatically, and alerts on route leaks and mass withdrawals. The baseline deliberately refuses to absorb an anomalous sample — otherwise a leak becomes the new normal within a few polls and the alert stops firing, which is exactly when you need it. Distinguishes a session that is down from one advertising zero prefixes, writes baselines atomically so a crash cannot corrupt them, and supports per-device min/max thresholds. Full VRF awareness across all eight platforms.

  • Arista EOS
  • FortiOS
  • Cisco IOS
  • Cisco IOS-XE
  • Cisco IOS-XR
  • Junos
  • Cisco NX-OS
  • PAN-OS
$pip install "netmiko>=4.3" "PyYAML>=6.0"
terminal

Tags

bgpmonitoringroute-leakprefixbaselinevrfnetmikoalertingyamlinventory