zabbix_export: version: '6.0' date: '2021-11-21T21:54:05Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: b934b0b869344e4fb807fc7ebfe5b7e1 template: 'SNMPv2 Interfaces packets per second' name: 'SNMPv2 Interfaces packets per second' description: | ## Description Template adds items for measuring switchport unicast, broadcast and multicast packets per second. ## Overview Template SNMPv2 Interfaces packets per second Discover interfaces and creates items for inbound and outbound unicast packets, multicast packets, and broadcast packets. Creates trigger to warining about high input broadcast. Can be adjusted WARNING\_BROADCAST\_PPS ## Author Kari Karvonen groups: - name: Templates discovery_rules: - uuid: 79102dbe7fc945738470de80e3a08c9f name: 'Network interfaces pps' type: SNMP_AGENT snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]' key: net.discover.pps delay: 1h filter: conditions: - macro: '{#IFADMINSTATUS}' value: (1|3) formulaid: A - macro: '{#IFOPERSTATUS}' value: (1|2|3|4|5|7) formulaid: B description: 'You may also consider using IF-MIB::ifType or IF-MIB::ifAlias for discovery depending on your filtering needs.' item_prototypes: - uuid: 824efebc9d014f698f78b07667e68e86 name: 'Interface {#IFNAME}({#IFALIAS}): Inbound broadcast rate' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifHCInBroadcastPkts.{#SNMPINDEX}' key: 'ifHCInBroadcastPkts[{#IFNAME}]' history: 1w units: pps description: 'The number of received broadcast packets per second' preprocessing: - type: CHANGE_PER_SECOND parameters: - '' tags: - tag: Application value: 'Interfaces pps' trigger_prototypes: - uuid: 64e324fb1f3a4b38a3c62f6153146868 expression: 'avg(/SNMPv2 Interfaces packets per second/ifHCInBroadcastPkts[{#IFNAME}],1s)>={$WARNING_BROADCAST_PPS}' name: 'Interface Interface {#IFNAME}({#IFALIAS}): high Inbound brodcast rate' priority: WARNING - uuid: b75b0fb23bd14fdf9165cef06d700c4e name: 'Interface {#IFNAME}({#IFALIAS}): Inbound multicast rate' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifHCInMulticastPkts.{#SNMPINDEX}' key: 'ifHCInMulticastPkts[{#IFNAME}]' history: 1w units: pps description: 'The number of received multicast packets per second' preprocessing: - type: CHANGE_PER_SECOND parameters: - '' tags: - tag: Application value: 'Interfaces pps' - uuid: 8741a3acf98e463babc5b02874069b04 name: 'Interface {#IFNAME}({#IFALIAS}): Inbound total rate' type: CALCULATED key: 'ifHCInTotalPkts[{#IFNAME}]' history: 1w units: pps params: 'last(//ifHCInUcastPkts[{#IFNAME}])+last(//ifHCInMulticastPkts[{#IFNAME}])+last(//ifHCInBroadcastPkts[{#IFNAME}])' tags: - tag: Application value: 'Interfaces pps' - uuid: 0883931fedd041bd91c5e3037997aa36 name: 'Interface {#IFNAME}({#IFALIAS}): Inbound unicast rate' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifHCInUcastPkts.{#SNMPINDEX}' key: 'ifHCInUcastPkts[{#IFNAME}]' history: 1w units: pps description: 'The number of received unicast packets per second' preprocessing: - type: CHANGE_PER_SECOND parameters: - '' request_method: POST tags: - tag: Application value: 'Interfaces pps' - uuid: 49c5781563b04af8ae0eeb9d93567da4 name: 'Interface {#IFNAME}({#IFALIAS}): Outbound broadcast rate' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifHCOutBroadcastPkts.{#SNMPINDEX}' key: 'ifHCOutBroadcastPkts[{#IFNAME}]' history: 1w units: pps description: 'The number of outgoing broadcast packets per second' preprocessing: - type: CHANGE_PER_SECOND parameters: - '' tags: - tag: Application value: 'Interfaces pps' - uuid: 971c66ef8a254d0b894860552727d8e5 name: 'Interface {#IFNAME}({#IFALIAS}): Outbound multicast rate' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifHCOutMulticastPkts.{#SNMPINDEX}' key: 'ifHCOutMulticastPkts[{#IFNAME}]' history: 1w units: pps description: 'The number of outgoing multicast packets per second' preprocessing: - type: CHANGE_PER_SECOND parameters: - '' tags: - tag: Application value: 'Interfaces pps' - uuid: 210b244b64024c0ab9278140fdbf4031 name: 'Interface {#IFNAME}({#IFALIAS}): Outbound total rate' type: CALCULATED key: 'ifHCOutTotalPkts[{#IFNAME}]' history: 1w units: pps params: 'last(//ifHCOutUcastPkts[{#IFNAME}])+last(//ifHCOutMulticastPkts[{#IFNAME}])+last(//ifHCOutBroadcastPkts[{#IFNAME}])' tags: - tag: Application value: 'Interfaces pps' - uuid: 87e30923ffda4806bd73173ed8f90c8c name: 'Interface {#IFNAME}({#IFALIAS}): Outbound unicast rate' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifHCOutUcastPkts.{#SNMPINDEX}' key: 'ifHCOutUcastPkts[{#IFNAME}]' history: 1w units: pps description: 'The number of outgoing unicast packets per second' preprocessing: - type: CHANGE_PER_SECOND parameters: - '' request_method: POST tags: - tag: Application value: 'Interfaces pps' graph_prototypes: - uuid: f6daee5fe0a24f6b8ce9cf7d222803d8 name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packet rate' height: '400' type: STACKED ymin_type_1: FIXED graph_items: - color: 199C0D item: host: 'SNMPv2 Interfaces packets per second' key: 'ifHCInUcastPkts[{#IFNAME}]' - sortorder: '1' color: F63100 item: host: 'SNMPv2 Interfaces packets per second' key: 'ifHCInMulticastPkts[{#IFNAME}]' - sortorder: '2' color: 2774A4 item: host: 'SNMPv2 Interfaces packets per second' key: 'ifHCInBroadcastPkts[{#IFNAME}]' - uuid: 8e055e0bf7154b2891dbd0fd67c1f7cd name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packet rate on interface' height: '400' type: STACKED ymin_type_1: FIXED graph_items: - color: F7941D item: host: 'SNMPv2 Interfaces packets per second' key: 'ifHCOutUcastPkts[{#IFNAME}]' - sortorder: '1' color: FC6EA3 item: host: 'SNMPv2 Interfaces packets per second' key: 'ifHCOutMulticastPkts[{#IFNAME}]' - sortorder: '2' color: 6C59DC item: host: 'SNMPv2 Interfaces packets per second' key: 'ifHCOutBroadcastPkts[{#IFNAME}]' request_method: POST macros: - macro: '{$WARNING_BROADCAST_PPS}' value: '10' description: 'pps to trigger warning'