zabbix_export: version: '5.4' date: '2021-11-21T21:19:59Z' groups: - uuid: 66f4d4ab016c4ed685b2ef4a7425d301 name: 'Networking Hardware' - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 17516d892b1c40888df0fabaa56a778b template: 'Juniper EX' name: 'Juniper EX' description: | ## Overview This template is for the monitoring of Juniper EX series switching hardware via SNMP. It requires no additional files or components - just add the template and you're done. Monitors the following items: * Device availability (ping check) * Alarm status (red / yellow) * 5 minute load average * CPU use * Memory use * Routing engine temperature * Interfaces + Inbound discarded packets + Inbound errors + Inbound traffic + Outbound discarded packets + Outbound errors + Outbound traffic Discovery will detect your ports and VLANs, and this will work in virtual chassis configurations. Tested with the following hardware: * EX4600 * EX3300 * EX2200 All suggestions, edits and ideas are welcome! ## Author Jonathan Halewood groups: - name: 'Networking Hardware' - name: Templates items: - uuid: 3ae9b0e5cb014539bb27880f1e5aa330 name: 'Ping check' type: SIMPLE key: icmpping delay: '30' valuemap: name: 'Service state' tags: - tag: Application value: 'Device Health' triggers: - uuid: fd1c8c31c95a4608bd702fc6bb83437a expression: 'sum(/Juniper EX/icmpping,#3)=0 or ({TRIGGER.VALUE}=1 and sum(/Juniper EX/icmpping,#3)<>3)' name: 'Ping check' priority: DISASTER description: | The switch has stopped responding to ICMP echo requests, and is likely offline. Please investigate. - uuid: 90b8808864a14006b1d0adc4245c0418 name: 'Red alarm' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.2636.3.4.2.3.1.0 key: RedAlarm delay: '30' units: alarm(s) tags: - tag: Application value: 'Device Health' triggers: - uuid: 218fcca0239e42308252ad7c3036019b expression: 'last(/Juniper EX/RedAlarm)<>2' name: 'Red Alarm on {HOSTNAME}' priority: HIGH description: 'A red alarm is reporting on this device. Please login to the CLI and check what this alert has been caused by.' - uuid: f502bcbea07848a1b4f31af181233fdd name: Uptime type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.3.0 key: Uptime delay: '60' units: s preprocessing: - type: MULTIPLIER parameters: - '0.01' tags: - tag: Application value: 'Device Health' triggers: - uuid: 05f780605c5847adb5f29643aaaa461f expression: 'last(/Juniper EX/Uptime)<600' name: '{HOSTNAME} has just been restarted' priority: INFO - uuid: 2be3bbff918d4f0687ea830a25a32d6f name: 'Yellow alarm' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.2636.3.4.2.2.1.0 key: YellowAlarm delay: '60' units: alarm(s) tags: - tag: Application value: 'Device Health' triggers: - uuid: 10b3edaa5d50428a8a46eb878f65614d expression: 'last(/Juniper EX/YellowAlarm)<>2' name: 'Yellow Alarm on {HOSTNAME}' priority: AVERAGE description: 'A yellow alarm is reporting on this device. Please login to the CLI and check what this alert has been caused by.' discovery_rules: - uuid: 15350f3b1e464525a218a3658bba429e name: 'JunOS Interfaces' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.2.2.1.2]' key: discovery.ifDescr delay: '300' filter: conditions: - macro: '{#SNMPVALUE}' value: '^(fe|ge|xe)-[0-9]+\/[0-9]+\/[0-9]+\.[0-9]+$|^(fe|ge|xe)-[0-9]+\/[0-9]+\/[0-9]+$|^(ae|reth|st)[0-9]+\.[0-9]+$|^(ae|reth|st)[0-9]$|^vcp-[0-9]+$|^vlan.[0-9]+$' formulaid: A item_prototypes: - uuid: d75c6e8d135c4de8a73ad13bb44f2e58 name: '{#SNMPVALUE} - Inbound discarded packets' type: SNMP_AGENT snmp_oid: '.1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}' key: '.1.3.6.1.2.1.2.2.1.13.[{#SNMPINDEX}]' delay: '30' history: 7d preprocessing: - type: CHANGE_PER_SECOND parameters: - '' tags: - tag: Application value: Interfaces - uuid: a0fdd8ab2ef84d38884a1b993b86da50 name: '{#SNMPVALUE} - Inbound traffic' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.10.{#SNMPINDEX}' key: '1.3.6.1.2.1.2.2.1.10.[{#SNMPINDEX}]' delay: '30' history: 7d value_type: FLOAT units: bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' tags: - tag: Application value: Interfaces - uuid: 05eaf6841d1d4a99a03c5377358cb6b6 name: '{#SNMPVALUE} - Inbound errors' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' key: '1.3.6.1.2.1.2.2.1.14.[{#SNMPINDEX}]' delay: '30' history: 7d preprocessing: - type: CHANGE_PER_SECOND parameters: - '' tags: - tag: Application value: Interfaces - uuid: eff1acf20cb94a0286a62b0c2fec5227 name: '{#SNMPVALUE} - Outbound traffic' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.16.{#SNMPINDEX}' key: '1.3.6.1.2.1.2.2.1.16.[{#SNMPINDEX}]' delay: '30' history: 7d value_type: FLOAT units: bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' tags: - tag: Application value: Interfaces - uuid: 2e7aff7eca304e12b0498c6c1eab7c56 name: '{#SNMPVALUE} - Outbound discarded packets' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}' key: '1.3.6.1.2.1.2.2.1.19.[{#SNMPINDEX}]' delay: '30' history: 7d preprocessing: - type: CHANGE_PER_SECOND parameters: - '' tags: - tag: Application value: Interfaces - uuid: a00b86a475b742139a6dbac10a7d5fd8 name: '{#SNMPVALUE} - Outbound errors' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}' key: '1.3.6.1.2.1.2.2.1.20.[{#SNMPINDEX}]' delay: '30' history: 7d preprocessing: - type: CHANGE_PER_SECOND parameters: - '' tags: - tag: Application value: Interfaces graph_prototypes: - uuid: 25b1542f6ea64f48b62d8d307087d3c1 name: 'Interface {#SNMPVALUE}' graph_items: - drawtype: FILLED_REGION color: 2618B1 yaxisside: RIGHT item: host: 'Juniper EX' key: '1.3.6.1.2.1.2.2.1.10.[{#SNMPINDEX}]' - sortorder: '1' color: 594CD8 yaxisside: RIGHT item: host: 'Juniper EX' key: '.1.3.6.1.2.1.2.2.1.13.[{#SNMPINDEX}]' - sortorder: '2' color: 7B72D8 yaxisside: RIGHT item: host: 'Juniper EX' key: '1.3.6.1.2.1.2.2.1.14.[{#SNMPINDEX}]' - sortorder: '3' drawtype: BOLD_LINE color: FFC600 yaxisside: RIGHT item: host: 'Juniper EX' key: '1.3.6.1.2.1.2.2.1.16.[{#SNMPINDEX}]' - sortorder: '4' color: FFD440 yaxisside: RIGHT item: host: 'Juniper EX' key: '1.3.6.1.2.1.2.2.1.19.[{#SNMPINDEX}]' - sortorder: '5' color: FFE073 yaxisside: RIGHT item: host: 'Juniper EX' key: '1.3.6.1.2.1.2.2.1.20.[{#SNMPINDEX}]' - uuid: 99b4ed117f7144a992f582a49411f6e0 name: 'JunOS Hardware' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.14.1.2.9]' key: jnxRedundancyL1Index delay: '300' item_prototypes: - uuid: 21b7009ca2274af1a61ec682a616bfbc name: 'Switch {#SNMPVALUE} - 5 min load avarage' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.2636.3.1.13.1.21.9.{#SNMPVALUE}.0.0' key: 'jnxOperating5MinLoadAvg.[{#SNMPVALUE}]' delay: '30' history: 7d tags: - tag: Application value: 'Device Health' - uuid: b241c14a63ab46738097a5de81b1affa name: 'Switch {#SNMPVALUE} - Memory usage' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.2636.3.1.13.1.11.9.{#SNMPVALUE}.0.0' key: 'jnxOperatingBuffer.[{#SNMPVALUE}]' delay: '30' history: 7d units: '%' tags: - tag: Application value: 'Device Health' trigger_prototypes: - uuid: f515e102bbb4448b99d6d8ff700e4ef3 expression: 'last(/Juniper EX/jnxOperatingBuffer.[{#SNMPVALUE}])>70 and last(/Juniper EX/jnxOperatingBuffer.[{#SNMPVALUE}])<95' name: '{HOSTNAME} {#SNMPVALUE} - Memory usage above 70%' priority: AVERAGE - uuid: 63cc4ade32e7439cb60873155af86a35 expression: 'last(/Juniper EX/jnxOperatingBuffer.[{#SNMPVALUE}])>95' name: '{HOSTNAME} {#SNMPVALUE} - Memory usage above 95%' priority: HIGH - uuid: baa375aeb9ee40128981a49233cda0b5 name: 'Switch {#SNMPVALUE} - CPU usage' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.2636.3.1.13.1.8.9.{#SNMPVALUE}.0.0' key: 'jnxOperatingCPU.[{#SNMPVALUE}]' delay: '30' history: 7d units: '%' tags: - tag: Application value: 'Device Health' - uuid: 963c291c989a4a9588de3b11d04c8ce0 name: 'Switch {#SNMPVALUE} - Routing engine temperature' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.2636.3.1.13.1.7.9.{#SNMPVALUE}.0.0' key: 'jnxOperatingTemp.[{#SNMPVALUE}]' delay: '30' history: 7d units: °C tags: - tag: Application value: 'Device Health' trigger_prototypes: - uuid: 1d0feadb8b954a0ca6e2162a2ab5a2bb expression: 'min(/Juniper EX/jnxOperatingTemp.[{#SNMPVALUE}],60s)>60' name: '{HOSTNAME} {#SNMPVALUE} - High temperature' priority: HIGH description: | The temperature of this switch is above 60ºC. Please check the status of the fans and environmental conditions immediately. trigger_prototypes: - uuid: bb4743be40b8445b9e47d9aae569ea10 expression: 'min(/Juniper EX/jnxOperatingCPU.[{#SNMPVALUE}],30s)>70 and min(/Juniper EX/jnxOperatingCPU.[{#SNMPVALUE}],30s)<95 and last(/Juniper EX/jnxOperating5MinLoadAvg.[{#SNMPVALUE}])>100 and last(/Juniper EX/jnxOperating5MinLoadAvg.[{#SNMPVALUE}])<300' name: '{HOSTNAME} {#SNMPVALUE} - CPU usage above 70%' priority: AVERAGE description: 'The CPU load on this node has increased to over 70%. If this is a sudden or unexpected increase, immediate investigation is advised.' - uuid: 49113f3709c64de19d2e019b561867d1 expression: 'last(/Juniper EX/jnxOperating5MinLoadAvg.[{#SNMPVALUE}])>300 and last(/Juniper EX/jnxOperatingCPU.[{#SNMPVALUE}])>95' name: '{HOSTNAME} {#SNMPVALUE} - High CPU usage (95%)' priority: HIGH description: 'The CPU load on this node has increased to over 95%. If this is a sudden or unexpected increase, immediate investigation is advised.' valuemaps: - uuid: ffe2f85034534b4c8912c10ecb2544aa name: 'Service state' mappings: - value: '0' newvalue: Down - value: '1' newvalue: Up