zabbix_export: version: '5.4' date: '2021-11-25T12:32:22Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 6e9e3939cabe4e1db8da413f64141b09 template: 'SNMP Interfaces' name: 'SNMP Interfaces' groups: - name: Templates items: - uuid: 3856fbb44baa4054a03a64e9dcdf3bd4 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: 25d0dd01ba624337bf74bce319cf240b name: 'Network interfaces' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},IF-MIB::ifDescr]' key: ifDescr delay: '3600' lifetime: 7d 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: dcf5b72b3230430894ee47c0cc8997a6 name: 'Incoming traffic on interface $1' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifHCInOctets.{#SNMPINDEX}' key: 'ifHCInOctets[{#SNMPVALUE}]' delay: '60' 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: a9089479552d41c986476b68527c915e name: 'Outgoing traffic on interface $1' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifHCOutOctets.{#SNMPINDEX}' key: 'ifHCOutOctets[{#SNMPVALUE}]' delay: '60' 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: 5581219cf7644588a39164f733f649dc name: 'Operational status of interface $1' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifOperStatus.{#SNMPINDEX}' key: 'ifOperStatus[{#SNMPVALUE}]' delay: '60' history: 1w description: 'The current operational state of the interface.' valuemap: name: 'SNMP interface status (ifOperStatus)' tags: - tag: Application value: Interfaces trigger_prototypes: - uuid: af5653df043440468457a1d3c8be9f02 expression: '(last(/SNMP Interfaces/ifOperStatus[{#SNMPVALUE}],#1)<>last(/SNMP Interfaces/ifOperStatus[{#SNMPVALUE}],#2))=1' name: 'O status operacional foi alterado no {HOST.NAME} na interface {#SNMPVALUE}' priority: INFO graph_prototypes: - uuid: 508fad2f2e8242bba7594affaf2dbc4f name: 'Traffic on interface {#SNMPVALUE}' graph_items: - drawtype: GRADIENT_LINE color: FF6600 item: host: 'SNMP Interfaces' key: 'ifHCInOctets[{#SNMPVALUE}]' - sortorder: '1' drawtype: GRADIENT_LINE color: 002B60 item: host: 'SNMP Interfaces' key: 'ifHCOutOctets[{#SNMPVALUE}]' valuemaps: - uuid: 728050df1ee64ae08cbe98bde396bc4e 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