zabbix_export:
  version: '5.4'
  date: '2021-11-21T21:54:45Z'
  groups:
    -
      uuid: 7df96b18c230490a9a0a9e2307226338
      name: Templates
  templates:
    -
      uuid: 5a6b8f4dfbe34391b38d81aa0e5c93f5
      template: 'SNMP Geral'
      name: 'SNMP Geral'
      groups:
        -
          name: Templates
      items:
        -
          uuid: 57a8acc49cf3476d9345997425dfcc0e
          name: 'Number of network interfaces'
          type: SNMP_AGENT
          snmp_oid: 'IF-MIB::ifNumber.0'
          key: ifNumber
          delay: 1h
          history: 1w
          description: 'The number of network interfaces (regardless of their current state) present on this system.'
          tags:
            -
              tag: Application
              value: Interfaces
      discovery_rules:
        -
          uuid: e08411eda9434514aae030e732756a90
          name: 'Network interfaces'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},IF-MIB::ifDescr]'
          key: ifDesc
          delay: 1h
          filter:
            conditions:
              -
                macro: '{#SNMPVALUE}'
                value: '@PPPoE MKT'
                formulaid: A
          description: |
            You may also consider using IF-MIB::ifType or IF-MIB::ifAlias for discovery depending on your filtering needs.
            
            {$SNMP_COMMUNITY} is a global macro.
          item_prototypes:
            -
              uuid: caac71b8eb994c1d82cd44dd25ffcbe5
              name: 'Admin status of interface $1'
              type: SNMP_AGENT
              snmp_oid: 'IF-MIB::ifAdminStatus.{#SNMPINDEX}'
              key: 'ifAdminStatus[{#SNMPVALUE}]'
              history: 1w
              description: 'The desired state of the interface.'
              valuemap:
                name: 'SNMP interface status (ifAdminStatus)'
              tags:
                -
                  tag: Application
                  value: Interfaces
            -
              uuid: 473794f9c4c148d8b9d9ff197a898ac7
              name: 'Alias of interface $1'
              type: SNMP_AGENT
              snmp_oid: 'IF-MIB::ifAlias.{#SNMPINDEX}'
              key: 'ifAlias[{#SNMPVALUE}]'
              delay: 1h
              history: 1w
              trends: '0'
              value_type: CHAR
              tags:
                -
                  tag: Application
                  value: Interfaces
            -
              uuid: 6562faee582441648f195c2be3b32334
              name: 'Description of interface $1'
              type: SNMP_AGENT
              snmp_oid: 'IF-MIB::ifDescr.{#SNMPINDEX}'
              key: 'ifDescr[{#SNMPVALUE}]'
              delay: 1h
              history: 1w
              trends: '0'
              value_type: CHAR
              description: 'A textual string containing information about the interface.  This string should include the name of the manufacturer, the product name and the version of the interface hardware/software.'
              tags:
                -
                  tag: Application
                  value: Interfaces
            -
              uuid: 3fcf746cd4b44ce68b2969e694fd6fda
              name: 'Incoming traffic on interface $1'
              type: SNMP_AGENT
              snmp_oid: 'IF-MIB::ifHCInOctets.{#SNMPINDEX}'
              key: 'ifHCInOctets[{#SNMPVALUE}]'
              delay: 5m
              history: 1w
              units: bps
              description: 'The number of octets in valid MAC frames received on this interface, including the MAC header and FCS.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
                -
                  type: MULTIPLIER
                  parameters:
                    - '8'
              tags:
                -
                  tag: Application
                  value: Interfaces
            -
              uuid: 838d0432d20c425a9c13debad925a41b
              name: 'Outgoing traffic on interface $1'
              type: SNMP_AGENT
              snmp_oid: 'IF-MIB::ifHCOutOctets.{#SNMPINDEX}'
              key: 'ifHCOutOctets[{#SNMPVALUE}]'
              delay: 5m
              history: 1w
              units: bps
              description: 'The number of octets transmitted in MAC frames on this interface, including the MAC header and FCS.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
                -
                  type: MULTIPLIER
                  parameters:
                    - '8'
              tags:
                -
                  tag: Application
                  value: Interfaces
            -
              uuid: cb412167829c4abd8af328b648ff0548
              name: 'Inbound errors on interface $1'
              type: SNMP_AGENT
              snmp_oid: 'IF-MIB::ifInErrors.{#SNMPINDEX}'
              key: 'ifInErrors[{#SNMPVALUE}]'
              history: 1w
              status: DISABLED
              description: 'For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.  For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              tags:
                -
                  tag: Application
                  value: Interfaces
            -
              uuid: 8aeccc7fd5e248d1a1585b07d66e09ac
              name: 'Operational status of interface $1'
              type: SNMP_AGENT
              snmp_oid: 'IF-MIB::ifOperStatus.{#SNMPINDEX}'
              key: 'ifOperStatus[{#SNMPVALUE}]'
              history: 1w
              status: DISABLED
              description: 'The current operational state of the interface.'
              valuemap:
                name: 'SNMP interface status (ifOperStatus)'
              tags:
                -
                  tag: Application
                  value: Interfaces
              trigger_prototypes:
                -
                  uuid: 0aad332f245946b891c608a4b991655f
                  expression: '(last(/SNMP Geral/ifOperStatus[{#SNMPVALUE}],#1)<>last(/SNMP Geral/ifOperStatus[{#SNMPVALUE}],#2))=1'
                  name: 'Operational status was changed on {HOST.NAME} interface {#SNMPVALUE}'
                  priority: INFO
            -
              uuid: d442ea33f65446f38aab1b909b90a241
              name: 'Outbound errors on interface $1'
              type: SNMP_AGENT
              snmp_oid: 'IF-MIB::ifOutErrors.{#SNMPINDEX}'
              key: 'ifOutErrors[{#SNMPVALUE}]'
              history: 1w
              status: DISABLED
              description: 'For packet-oriented interfaces, the number of outbound packets that could not be transmitted because of errors. For character-oriented or fixed-length interfaces, the number of outbound transmission units that could not be transmitted because of errors.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              tags:
                -
                  tag: Application
                  value: Interfaces
          graph_prototypes:
            -
              uuid: 4eae539146994ea09bad9f1c764d87c6
              name: 'Traffic on interface {#SNMPVALUE}'
              graph_items:
                -
                  drawtype: GRADIENT_LINE
                  color: FF6600
                  item:
                    host: 'SNMP Geral'
                    key: 'ifHCInOctets[{#SNMPVALUE}]'
                -
                  sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: 002B60
                  item:
                    host: 'SNMP Geral'
                    key: 'ifHCOutOctets[{#SNMPVALUE}]'
      macros:
        -
          macro: '{$SNMP_COMMUNITY}'
          value: DigitalNet2
      valuemaps:
        -
          uuid: 27b76936e746428fa10c3b1bf08bb1a9
          name: 'SNMP interface status (ifAdminStatus)'
          mappings:
            -
              value: '1'
              newvalue: up
            -
              value: '2'
              newvalue: down
            -
              value: '3'
              newvalue: testing
        -
          uuid: 622cbd7e3b76488384c0065466351568
          name: 'SNMP interface status (ifOperStatus)'
          mappings:
            -
              value: '1'
              newvalue: up
            -
              value: '2'
              newvalue: down
            -
              value: '3'
              newvalue: testing
            -
              value: '4'
              newvalue: unknown
            -
              value: '5'
              newvalue: dormant
            -
              value: '6'
              newvalue: notPresent
            -
              value: '7'
              newvalue: lowerLayerDown
