/quagga_zabbix_bgp_mon

Monitor bgp quagga/frr session for zabbix

Primary LanguagePython

Monitoring quagga BGP session for zabbix

Description

Descover and monitor BGP session with count of prefix or state like "Active" or Idle (Admin). Trigger if session change state.

Requirements

  • Python
  • Zabbix from 3.4 version

Installation

  • copy bgpmon.py to /usr/local/bin
  • give execute bit chmod +x /usr/local/bin/bgpmon.py
  • write file for zabbix agent for example /etc/zabbix/zabbix_agentd.d/userparameter_bgpd.conf
UserParameter=bgp.peers.discovery,/usr/local/bin/bgpmon.py discovery
UserParameter=bgp.peer.state[*],/usr/local/bin/bgpmon.py neighbor_state -n $1
  • Provide vtysh access to user zabbix
    • if you using quagga:
    sudo usermod -a -G quagga zabbix
    
    • if you using frr:
    sudo usermod -a -G frrvty zabbix
    
  • restart zabbix-agnet
systemctl restart zabbix-agent
  • Import template file