zabbix_export: version: '5.4' date: '2021-11-21T22:07:04Z' groups: - uuid: 8efe6fb9c15c4e49a67b8b8ee703c5f7 name: Templates_Cisco templates: - uuid: 4cc1e093c5134f82b2ead57a3b9645e3 template: Cisco_LAG name: Cisco_LAG description: | ## Overview This template discovers LACP interfaces and create items, triggers and graphs for monitoring their status ## Author vig0gne groups: - name: Templates_Cisco discovery_rules: - uuid: aa5644ae4e9a454faa2c85fbdb4905eb name: dot3adAggPorts type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},dot3adAggPortActorOperKey,{#IFALIAS},ifAlias,{#IFNAME},ifName]' key: dot3adAggPorts delay: 1h filter: conditions: - macro: '{#SNMPVALUE}' value: '[1-9]+' formulaid: A lifetime: 1d item_prototypes: - uuid: f043d952a1914c3585f284fab26cf0c0 name: '{#IFNAME} InErrors' type: SNMP_AGENT snmp_oid: 'ifInErrors.{#SNMPINDEX}' key: 'if.in.errors.[{#SNMPINDEX}]' delay: 2m units: pps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' tags: - tag: Application value: Health - uuid: 4a96ce0be2b04bcc8e2bb640389e2ab3 name: 'Po{#SNMPVALUE}|{#IFNAME} LAG Status' type: SNMP_AGENT snmp_oid: 'dot3adAggPortActorOperState.{#SNMPINDEX}' key: 'if.lag.status.[{#SNMPINDEX}]' delay: 2m trends: '0' value_type: TEXT description: '{#IFALIAS}' tags: - tag: Application value: Health trigger_prototypes: - uuid: 18763e425f8f49bf9c3b99eaa886095f expression: '(find(/Cisco_LAG/if.lag.status.[{#SNMPINDEX}],,"like","BC")=0 and find(/Cisco_LAG/if.lag.status.[{#SNMPINDEX}],,"like","FC")=0)' name: '{HOST.NAME} Port-channel{#SNMPVALUE} bundle problem' priority: AVERAGE description: | Interface {#IFNAME} a member of Port-channel{#SNMPVALUE} have some problems. Description {#IFALIAS} - uuid: ead7591d01bc4e61b38058aba8b68a4b name: '{#IFNAME} OutErrors' type: SNMP_AGENT snmp_oid: 'ifOutErrors.{#SNMPINDEX}' key: 'if.out.errors.[{#SNMPINDEX}]' delay: 2m units: pps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' tags: - tag: Application value: Health trigger_prototypes: - uuid: 3a87cf11d0fa4550aa369d21e40cfb61 expression: 'change(/Cisco_LAG/if.in.errors.[{#SNMPINDEX}])>1 or change(/Cisco_LAG/if.out.errors.[{#SNMPINDEX}])>1' name: '{HOST.NAME} {#IFNAME} Errors increased' priority: WARNING description: 'Pay attention on line quality' graph_prototypes: - uuid: fb97d66396f0454696b50949edc8b5b3 name: '{#IFNAME} Problems' graph_items: - sortorder: '1' color: F63100 yaxisside: RIGHT item: host: Cisco_LAG key: 'if.in.errors.[{#SNMPINDEX}]' - sortorder: '5' color: 6C59DC yaxisside: RIGHT item: host: Cisco_LAG key: 'if.out.errors.[{#SNMPINDEX}]' - uuid: 07309a63a4ef44f8875132e33ef23c8a name: Port-channels type: SNMP_AGENT snmp_oid: 'discovery[{#POINDEX},dot3adAggActorOperKey]' key: Port-channels delay: 1h lifetime: 1d item_prototypes: - uuid: 207e2c84b2cd47f08c051e93307f5952 name: 'Po{#POINDEX} InOctets' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifHCInOctets.{#SNMPINDEX}' key: 'if.po[{#POINDEX}.in]' units: bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' tags: - tag: Application value: Resources - uuid: 39024b3f28fe42c5b282c3641d565770 name: 'Po{#POINDEX} OutOctets' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifHCOutOctets.{#SNMPINDEX}' key: 'if.po[{#POINDEX}.out]' units: bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' tags: - tag: Application value: Resources graph_prototypes: - uuid: 16ad0a04830d4014a8a36a5a98ece21a name: 'Traffic Port-channel{#POINDEX}' graph_items: - color: 199C0D yaxisside: RIGHT item: host: Cisco_LAG key: 'if.po[{#POINDEX}.in]' - sortorder: '1' color: 4000FF yaxisside: RIGHT item: host: Cisco_LAG key: 'if.po[{#POINDEX}.out]'