5.02021-11-21T22:00:41Zcdnnow-swSNMP Arista BGP4SNMP Arista BGP4## Overview
Minimalistic template with SNMPv2 discovery
Alerting on BGP session Admin UP and Oper not Estab.
Collects AdminStatus, OperStatus, Recieved/Accepted/Announced Prefixes.
SNMPv2 Community via {$SNMP\_COMMUNITY} Macro
cdnnow-swArista-BGPArista BGP4SNMP_AGENTdiscovery[{#ASNUM}, .1.3.6.1.4.1.30065.4.1.1.2.1.10.1.1.4, {#PEERNAME}, .1.3.6.1.4.1.30065.4.1.1.2.1.14.1.1.4]arista-snmp-discovery1hAdministrative status $2SNMP_AGENT1.3.6.1.4.1.30065.4.1.1.2.1.12.1.1.4.{#SNMPINDEX}arista-bgp-adminstatus[{#ASNUM}, {#PEERNAME}]10dArista-BGPOper status $2SNMP_AGENT1.3.6.1.4.1.30065.4.1.1.2.1.13.1.1.4.{#SNMPINDEX}arista-bgp-operstatus[{#ASNUM}, {#PEERNAME}]30dArista-BGPPeer accepted Prefixes $2SNMP_AGENT1.3.6.1.4.1.30065.4.1.1.8.1.4.1.1.4.{#SNMPINDEX}.1.1arista-bgp-prf-acc[{#ASNUM}, {#PEERNAME}]5m31dArista-BGPPeer recieved Prefixes $2SNMP_AGENT1.3.6.1.4.1.30065.4.1.1.8.1.3.1.1.4.{#SNMPINDEX}.1.1arista-bgp-prf-rcv[{#ASNUM}, {#PEERNAME}]5m31dArista-BGPPeer announced Prefixes $2SNMP_AGENT1.3.6.1.4.1.30065.4.1.1.8.1.5.1.1.4.{#SNMPINDEX}.1.1arista-bgp-prf-snd[{#ASNUM}, {#PEERNAME}]5m31dArista-BGP{SNMP Arista BGP4:arista-bgp-operstatus[{#ASNUM}, {#PEERNAME}].last()}<>6 and {SNMP Arista BGP4:arista-bgp-adminstatus[{#ASNUM}, {#PEERNAME}].last()}=2BGP status not "Established" for {#ASNUM}, {#PEERNAME}DISASTER