zabbix_export: version: '5.4' date: '2021-11-21T21:51:16Z' groups: - uuid: 36bff6c29af64692839d077febfc7079 name: 'Templates/Network devices' templates: - uuid: 1e865fff712448d4a7276f6170ecafc4 template: 'Witek Switch' name: 'Witek Switch' description: | ## Description Test template ## Overview This if template for Wi-Tek switch 8GE and 2SFP ports If you want to use this template for switch with another count of interfaces please change formula items(Total Traffic). ## Author Bori$ groups: - name: 'Templates/Network devices' items: - uuid: ff1ac24c0f724f8fa30b2095a135c2cf name: 'ICMP ping' type: SIMPLE key: icmpping delay: 60s history: 7d trends: 10d tags: - tag: Application value: Basic triggers: - uuid: d7d1c445c5994d6591a196b690c5a500 expression: 'max(/Witek Switch/icmpping,#3)=0' name: "{HOST.NAME}\tUnavailable by ICMP ping" priority: HIGH - uuid: 078610e74dad47b889b05d814be9e5bb name: 'ICMP loss' type: SIMPLE key: icmppingloss delay: 60s history: 7d trends: 10d tags: - tag: Application value: Basic triggers: - uuid: d82e462b8f334a6caba36c41ed0ce9b6 expression: | min(/Witek Switch/icmppingloss,5m)>50 and min(/Witek Switch/icmppingloss,5m)<100 name: '{HOST.NAME} Ping Loss' priority: WARNING - uuid: 9e346d14e8f04899ae8aa693d7033bf4 name: 'ICMP response time' type: SIMPLE key: icmppingsec delay: 60s history: 7d trends: 10d tags: - tag: Application value: Basic triggers: - uuid: 24366e1760cd4c5d8a32560cb00d4a47 expression: 'avg(/Witek Switch/icmppingsec,1m)>99' name: '{HOST.NAME} High ICMP ping response time' priority: WARNING - uuid: 1e6947fc3e354b228ae390cad69589fe name: 'Total Traffic From Ports IN' type: CALCULATED key: if.InTotal.Traffic delay: 30s history: 7d trends: 10d units: bps params: '(last(//net.if.in[ifHCInOctets.2001])+last(//net.if.in[ifHCInOctets.2002])+last(//net.if.in[ifHCInOctets.2003])+last(//net.if.in[ifHCInOctets.2004])+last(//net.if.in[ifHCInOctets.2005])+last(//net.if.in[ifHCInOctets.2006])+last(//net.if.in[ifHCInOctets.2007])+last(//net.if.in[ifHCInOctets.2008])+last(//net.if.in[ifHCInOctets.2009])+last(//net.if.in[ifHCInOctets.2010]))' preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' tags: - tag: Application value: Interfaces - uuid: 5d9668e4fae6453da39362259c62644c name: 'Total Traffic From Ports OUT' type: CALCULATED key: if.OutTotal.Traffic delay: 30s history: 7d trends: 10d units: bps params: '(last(//net.if.out[ifHCOutOctets.2001])+last(//net.if.out[ifHCOutOctets.2002])+last(//net.if.out[ifHCOutOctets.2003])+last(//net.if.out[ifHCOutOctets.2004])+last(//net.if.out[ifHCOutOctets.2005])+last(//net.if.out[ifHCOutOctets.2006])+last(//net.if.out[ifHCOutOctets.2007])+last(//net.if.out[ifHCOutOctets.2008])+last(//net.if.out[ifHCOutOctets.2009])+last(//net.if.out[ifHCOutOctets.2010]))' preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' tags: - tag: Application value: Interfaces - uuid: 8807430915c74f5194aa104942dedaa1 name: 'Total Traffic From Ports Out/In' type: CALCULATED key: if.Total..Traffic delay: 30s history: 7d trends: 10d units: bps params: '(last(//net.if.out[ifHCOutOctets.2001])+last(//net.if.out[ifHCOutOctets.2002])+last(//net.if.out[ifHCOutOctets.2003])+last(//net.if.out[ifHCOutOctets.2004])+last(//net.if.out[ifHCOutOctets.2005])+last(//net.if.out[ifHCOutOctets.2006])+last(//net.if.out[ifHCOutOctets.2007])+last(//net.if.out[ifHCOutOctets.2008])+last(//net.if.out[ifHCOutOctets.2009])+last(//net.if.out[ifHCOutOctets.2010])+last(//net.if.in[ifHCInOctets.2001])+last(//net.if.in[ifHCInOctets.2002])+last(//net.if.in[ifHCInOctets.2003])+last(//net.if.in[ifHCInOctets.2004])+last(//net.if.in[ifHCInOctets.2005])+last(//net.if.in[ifHCInOctets.2006])+last(//net.if.in[ifHCInOctets.2007])+last(//net.if.in[ifHCInOctets.2008])+last(//net.if.in[ifHCInOctets.2009])+last(//net.if.in[ifHCInOctets.2010]))' preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' tags: - tag: Application value: Interfaces - uuid: 127d4d896e724bf4ac4c1356f56710e2 name: 'SNMP Contact' type: SNMP_AGENT snmp_oid: sysContact.0 key: sys.Contact delay: 360m history: 7d trends: '0' value_type: CHAR tags: - tag: Application value: Basic triggers: - uuid: d32d539a48724fc8b8ef5d19e7a5366c expression: 'length(last(/Witek Switch/sys.Contact))>0 and (last(/Witek Switch/sys.Contact,#1)<>last(/Witek Switch/sys.Contact,#2))<>1' name: '{HOST.NAME} System Identity has changed' priority: INFO - uuid: a212899d3b0b4d0b939ead9eaa77ccb6 name: 'System Identity' type: SNMP_AGENT snmp_oid: sysName.0 key: sys.Name delay: 1d history: 7d trends: '0' value_type: TEXT tags: - tag: Application value: Basic - uuid: a60ec2a828784cdf9599ddfe1980d625 name: 'Hardware Model' type: SNMP_AGENT snmp_oid: 1.3.6.1.2.1.1.1.0 key: sysDescr.0 delay: 30s history: 7d trends: '0' value_type: TEXT tags: - tag: Application value: Basic triggers: - uuid: 1fe4b552291e4ab9b839c445bfd4bb15 expression: 'find(/Witek Switch/sysDescr.0,,"like")>0 and (last(/Witek Switch/sysDescr.0,#1)<>last(/Witek Switch/sysDescr.0,#2))<>0' name: '{HOST.NAME} Firmware has changed' priority: INFO - uuid: bb38796ab59147f495e3dbf344c38e05 name: 'System SNMP Location' type: SNMP_AGENT snmp_oid: sysLocation.0 key: sysLocation delay: 1d history: 7d trends: '0' value_type: TEXT tags: - tag: Application value: Basic - uuid: 7a698960d1e04ddaa0f082f06f718abc name: 'System Uptime' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.3.0 key: system.uptimet delay: 60s history: 7d trends: 10d units: uptime preprocessing: - type: MULTIPLIER parameters: - '0.01' tags: - tag: Application value: Basic discovery_rules: - uuid: e9c0d8ea25f14795a085a433fb5f4332 name: 'Network Interfaces Discovery' 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.If delay: 60s item_prototypes: - uuid: 52f2254a3a9a4268a90953094c6c6414 name: 'Interface Name:{#IFNAME} Alias:{#IFALIAS} Speed' type: SNMP_AGENT snmp_oid: 'ifHighSpeed.{#SNMPINDEX}' key: 'ifHighSpeed.["({#SNMPINDEX})"]' delay: 30s history: 7d trends: 14d value_type: FLOAT tags: - tag: Application value: Interfaces - uuid: bc86b9e94f2949eba545d768d23c978c name: 'Interface Name:{#IFNAME} Alias:{#IFALIAS} MTU' type: SNMP_AGENT snmp_oid: 'ifMtu.{#SNMPINDEX}' key: 'ifMtu.["({#SNMPINDEX})"]' delay: 30s history: 7d trends: 14d tags: - tag: Application value: Interfaces - uuid: bce57d0fa18d4c97b38c3efe241c796c name: 'Interface Name:{#IFNAME} Alias:{#IFALIAS} Type' type: SNMP_AGENT snmp_oid: 'ifType.{#SNMPINDEX}' key: 'ifType.["({#SNMPINDEX})"]' delay: 30s history: 7d trends: 14d value_type: FLOAT tags: - tag: Application value: Interfaces - uuid: 53c00ead49d548b18fc8da1c69836d9d name: 'Interface Name:{#IFNAME} Alias:({#IFALIAS}): Inbound packets discarded' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' delay: 30s history: 7d trends: 14d preprocessing: - type: CHANGE_PER_SECOND parameters: - '' tags: - tag: Application value: Interfaces - uuid: 14b26c41d82c4d429bbcb7dd122cc6f7 name: 'Interface Name:{#IFNAME} Alias:({#IFALIAS}): Inbound packets with errors' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]' delay: 30s history: 7d trends: 14d preprocessing: - type: CHANGE_PER_SECOND parameters: - '' tags: - tag: Application value: Interfaces - uuid: d52cfa78c10b43c885ad945e33512455 name: 'Interface Name:{#IFNAME} Alias:({#IFALIAS}): Bits received' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}' key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' delay: 3s history: 7d trends: 14d units: bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' tags: - tag: Application value: Interfaces - uuid: 2daea77807ac4ceabeaa7ee35681173c name: 'Interface Name:{#IFNAME} Alias:({#IFALIAS}): Outbound packets discarded' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]' delay: 30s history: 7d trends: 14d preprocessing: - type: CHANGE_PER_SECOND parameters: - '' tags: - tag: Application value: Interfaces - uuid: 445f1fc540d24bed856aa89e34231c77 name: 'Interface Name:{#IFNAME} Alias:({#IFALIAS}): Outbound packets with errors' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' delay: 30s history: 7d trends: 14d preprocessing: - type: CHANGE_PER_SECOND parameters: - '' tags: - tag: Application value: Interfaces - uuid: ad4af3e6fce143c580960b1ef3e29356 name: 'Interface Name:{#IFNAME} Alias:({#IFALIAS}): Bits sent' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}' key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' delay: 3s history: 7d trends: 14d units: bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' tags: - tag: Application value: Interfaces - uuid: 0d0b9c0c782041be91487f89db426784 name: 'Interface Name:{#IFNAME} Alias:({#IFALIAS}): Admin status' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.7.{#SNMPINDEX}' key: 'net.if.status[ifAdminStatus.{#SNMPINDEX}]' delay: 30s history: 7d trends: 14d tags: - tag: Application value: Interfaces - uuid: fcbcffe9ff7e41ddbff903cffd07d5f1 name: 'Interface Name:{#IFNAME} Alias:({#IFALIAS}): Operational status' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]' delay: 30s history: 7d trends: 14d tags: - tag: Application value: Interfaces graph_prototypes: - uuid: 97d91a9b7e1542849b1fe79788d450dc name: 'Interface Name:{#IFNAME} Alas:({#IFALIAS}): Network traffic' graph_items: - color: 5A2B57 item: host: 'Witek Switch' key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]' - sortorder: '1' color: 89ABF8 item: host: 'Witek Switch' key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]' - sortorder: '2' color: 7EC25C item: host: 'Witek Switch' key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]' - sortorder: '3' color: '274482' item: host: 'Witek Switch' key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]' macros: - macro: '{$SNMP_COMMUNITY}' value: public dashboards: - uuid: bcd1abd543fb47ea950b626a3e831755 name: 'Interfaces Summary' pages: - widgets: - type: CLOCK width: '6' height: '7' fields: - type: INTEGER name: time_type value: '0' - type: GRAPH_CLASSIC x: '6' width: '9' height: '7' fields: - type: INTEGER name: source_type value: '0' - type: GRAPH name: graphid value: name: 'Total BandWidth' host: 'Witek Switch' - type: GRAPH_PROTOTYPE x: '15' width: '9' height: '7' fields: - type: INTEGER name: source_type value: '2' - type: INTEGER name: columns value: '1' - type: INTEGER name: rows value: '1' - type: GRAPH_PROTOTYPE name: graphid value: name: 'Interface Name:{#IFNAME} Alas:({#IFALIAS}): Network traffic' host: 'Witek Switch' graphs: - uuid: a7366e8130b44b709fa45cec11a10aae name: 'Total BandWidth' graph_items: - color: 1A7C11 item: host: 'Witek Switch' key: if.OutTotal.Traffic - sortorder: '1' color: F63100 item: host: 'Witek Switch' key: if.InTotal.Traffic - sortorder: '2' color: 2774A4 item: host: 'Witek Switch' key: if.Total..Traffic