zabbix_export: version: '5.4' date: '2021-11-21T22:00:43Z' groups: - uuid: 0311e16a813c4c47a0621a7e3c8e9abc name: cdnnow-sw templates: - uuid: 55b8928b49bd44e495cf66fc69d960c2 template: 'SNMP Arista BGP4' name: 'SNMP Arista BGP4' description: | ## 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 groups: - name: cdnnow-sw discovery_rules: - uuid: 47f452a652e44051800d02d307b7bfaf name: 'Arista BGP4' type: SNMP_AGENT snmp_oid: 'discovery[{#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]' key: arista-snmp-discovery delay: 1h item_prototypes: - uuid: 673b767c504a4c9eaf868601db0835ec name: 'Administrative status $2' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.30065.4.1.1.2.1.12.1.1.4.{#SNMPINDEX}' key: 'arista-bgp-adminstatus[{#ASNUM}, {#PEERNAME}]' history: 10d tags: - tag: Application value: Arista-BGP - uuid: c8c48f2c49154a7883949b9b220ed3f5 name: 'Oper status $2' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.30065.4.1.1.2.1.13.1.1.4.{#SNMPINDEX}' key: 'arista-bgp-operstatus[{#ASNUM}, {#PEERNAME}]' history: 30d tags: - tag: Application value: Arista-BGP - uuid: bbbd987e6d014fc8945a379fa04e3f88 name: 'Peer accepted Prefixes $2' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.30065.4.1.1.8.1.4.1.1.4.{#SNMPINDEX}.1.1' key: 'arista-bgp-prf-acc[{#ASNUM}, {#PEERNAME}]' delay: 5m history: 31d tags: - tag: Application value: Arista-BGP - uuid: 3dfe921d445b486398e69199fb9fe3a0 name: 'Peer recieved Prefixes $2' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.30065.4.1.1.8.1.3.1.1.4.{#SNMPINDEX}.1.1' key: 'arista-bgp-prf-rcv[{#ASNUM}, {#PEERNAME}]' delay: 5m history: 31d tags: - tag: Application value: Arista-BGP - uuid: 83caf1f949f74f19aaf2baa59eb4d6f0 name: 'Peer announced Prefixes $2' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.30065.4.1.1.8.1.5.1.1.4.{#SNMPINDEX}.1.1' key: 'arista-bgp-prf-snd[{#ASNUM}, {#PEERNAME}]' delay: 5m history: 31d tags: - tag: Application value: Arista-BGP trigger_prototypes: - uuid: cd68569a519c4109b9f80ca7141b0a56 expression: 'last(/SNMP Arista BGP4/arista-bgp-operstatus[{#ASNUM}, {#PEERNAME}])<>6 and last(/SNMP Arista BGP4/arista-bgp-adminstatus[{#ASNUM}, {#PEERNAME}])=2' name: 'BGP status not "Established" for {#ASNUM}, {#PEERNAME}' priority: DISASTER