zabbix_export: version: '6.0' date: '2021-11-21T21:30:08Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 41aef9916e7c47859d3276a7bfc296e1 template: 'Juniper Total' name: 'Juniper Total' description: | ## Overview This template is a smattering of a few templates combined with some custom discovery rules. It has been tested to work with most Juniper switches and firewalls. It uses the standard SNMP root for all discovery, so it works with most switch/router devices. If you have any issues with it let me know. I exported this from a live system, so the read the dependencies below. **What it does:** * BGP Discovery + Peer State * IPSEC Discovery + Peer State * Interface Discovery + Traffic in/out + Errors in/out + Drops in/out * OSPF Discovery + Neighbor State * IKE Discovery + Peer State **Non Discovery items:** * Temperature * CPU * Memory * Make/Model * ICMP The template creates quite a few graph prototypes and adds them to a screen as well. **Dependencies:** The template had value maps, interface filters and groups associated with it when I cloned it, but I removed them so there shouldn't be any issues with it. If you find an issue importing let me know. I was successful importing default template to a new system. **Other Instructions:** Be sure to fill in the $SNMP\_COMMUNITY macro with your SNMP community string. Also IKE discovery does not seem to work on JunOS pre 12.3. Everything else seems to work fine. **Updates:** 1) Updated as I left my community string in the macros section :( 2) The Parent OID for interface discovery is for the 32Bit counters. This will not work for 64Bit devices. I'll update this week groups: - name: Templates items: - uuid: 694b94fb40d446eba3d1c3463a0cb39b name: 'Simple ICMP Time' type: SIMPLE key: 'icmppingsec[,,,,,]' delay: '30' value_type: FLOAT units: s username: legal-discovery-user password: AHJppDeQCJgAyyEH_OTTiOAyL tags: - tag: Application value: ICMP - uuid: 31f6290f599242f3a6ffa68e30c4492b name: 'Simple ICMP Up Check' type: SIMPLE key: 'icmpping[,,,,]' delay: '30' history: 7d username: legal-discovery-user password: AHJppDeQCJgAyyEH_OTTiOAyL tags: - tag: Application value: ICMP triggers: - uuid: 981a78e5627f4cf19c53667b251d02ea expression: 'last(/Juniper Total/icmpping[,,,,])=0' name: '{HOST.NAME} ICMP Response' priority: WARNING - uuid: d648d6af9a2647b68f28c7473302d827 name: 'Juniper Make/Model' type: SNMP_AGENT snmp_oid: 1.3.6.1.2.1.1.1.0 key: juniper.make.model delay: '3600' history: 5d trends: '0' value_type: TEXT description: 'OID to query Unit Make and Model' tags: - tag: Application value: General - uuid: df198eed131d47109a5b398ae1d43f65 name: 'JunOS CPU % in use' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.2636.3.1.13.1.8.9.1.0.0 key: Junos.CPU delay: '30' units: '%' tags: - tag: Application value: CPU - uuid: 23976248c1e94072bd44f83ae4e789c6 name: 'JunOS Memory % in use' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.2636.3.1.13.1.11.9.1.0.0 key: Junos.Mem delay: '30' units: '%' tags: - tag: Application value: Memory - uuid: 36a3f339b8df4c43aca491f94cbab5b6 name: 'JunOS temperature' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.2636.3.1.13.1.7.9.1.0.0 key: Junos.Temp delay: '30' units: C tags: - tag: Application value: Temperature discovery_rules: - uuid: 1b97d012804c441eadc006e305671075 name: 'Juniper BGP Peer Enumeration' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.15.3.1.2]' key: discovery.bgp delay: '3600' lifetime: 1d item_prototypes: - uuid: 5302a0934ce14b8294c823191fd1046a name: 'bgpPeerState {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '.1.3.6.1.2.1.15.3.1.2.{#SNMPINDEX}' key: '.1.3.6.1.2.1.15.3.1.2.[{#SNMPINDEX}]' delay: '60' value_type: FLOAT tags: - tag: Application value: BGP graph_prototypes: - uuid: 4e7e07cf1d1e470587ea7fdde2b23791 name: 'BGP PEER STATE {#SNMPINDEX}' graph_items: - color: 1A7C11 item: host: 'Juniper Total' key: '.1.3.6.1.2.1.15.3.1.2.[{#SNMPINDEX}]' - uuid: 885d23315b78417db9662774fc10d7fb name: 'Juniper Interface enumeration' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.2.2.1.2]' key: discovery.ifDescr delay: '3600' lifetime: 1d item_prototypes: - uuid: fd4d61de0b314104b2e9aed507c54278 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: '60' history: 7d value_type: FLOAT units: bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' - uuid: 7a42452205804bdf8b36488131039fab 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: '60' history: 7d preprocessing: - type: SIMPLE_CHANGE parameters: - '' - uuid: 3d76e78d1f794769a6f8c97084fe62e0 name: '{#SNMPVALUE} - Inbound error packets' 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: '60' history: 7d preprocessing: - type: SIMPLE_CHANGE parameters: - '' - uuid: 9a1436458b68422981cdfc50789f7558 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: '60' history: 7d value_type: FLOAT units: bps preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' - uuid: 74a8e78750904d5da0200116811ff096 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: '60' history: 7d preprocessing: - type: SIMPLE_CHANGE parameters: - '' - type: MULTIPLIER parameters: - '1' - uuid: da92c4b857b3485f858e042739459a3a name: '{#SNMPVALUE} - Outbound error packets' 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: '60' history: 7d preprocessing: - type: SIMPLE_CHANGE parameters: - '' - type: MULTIPLIER parameters: - '1' graph_prototypes: - uuid: fb95452b058342dca47026a339d9a5fd name: 'Interface {#SNMPVALUE} Discards and Errors' graph_items: - color: 1A7C11 item: host: 'Juniper Total' key: '.1.3.6.1.2.1.2.2.1.13.[{#SNMPINDEX}]' - sortorder: '1' color: F63100 item: host: 'Juniper Total' key: '1.3.6.1.2.1.2.2.1.19.[{#SNMPINDEX}]' - sortorder: '2' color: 2774A4 item: host: 'Juniper Total' key: '.1.3.6.1.2.1.2.2.1.14.[{#SNMPINDEX}]' - sortorder: '3' color: A54F10 item: host: 'Juniper Total' key: '1.3.6.1.2.1.2.2.1.20.[{#SNMPINDEX}]' - uuid: 85091cf069944483a2768a1fa7515e23 name: 'Interface {#SNMPVALUE} Traffic' graph_items: - drawtype: GRADIENT_LINE color: 1A7C11 item: host: 'Juniper Total' key: '.1.3.6.1.2.1.2.2.1.10.[{#SNMPINDEX}]' - sortorder: '1' drawtype: GRADIENT_LINE color: F63100 item: host: 'Juniper Total' key: '1.3.6.1.2.1.2.2.1.16.[{#SNMPINDEX}]' - uuid: 9e2ec7bd3d474a3084e5d414a48c9292 name: 'Juniper IKE Peer Enumeration' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.52.1.1.2.1.14.1.4]' key: discovery.ike delay: '3600' lifetime: 1d item_prototypes: - uuid: 998a8964002442a4b0c89827bccfbb6b name: 'ikePeerState {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.2636.3.52.1.1.2.1.6.1.4.{#SNMPINDEX}' key: '.1.3.6.1.4.1.2636.3.52.1.1.2.1.6.1.4.[{#SNMPINDEX}]' delay: '30' history: 7d value_type: FLOAT tags: - tag: Application value: IKE - uuid: 0f8d1cf6c7804e4ba5b81bf74b7053a2 name: 'Juniper IPSec Tunnel State Enumeration' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.39.1.5.1.2.1.1.4]' key: discovery.IPSec delay: '3600' lifetime: 1d item_prototypes: - uuid: 82176c2f4f4a4f9691c5f61b1af68914 name: 'IPSec Tunnel State {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '1.3.6.1.4.1.2636.3.39.1.5.1.2.1.1.4.{#SNMPINDEX}' key: '1.3.6.1.4.1.2636.3.39.1.5.1.2.1.1.4.[{#SNMPINDEX}]' delay: '60' value_type: FLOAT tags: - tag: Application value: IPSEC - uuid: e15c6cafb5974a1daee5257db0567bd2 name: 'Juniper OSPF Neighbor State Enumeration' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.2.1.14.10.1.6]' key: discovery.ospf.nbr delay: '3600' lifetime: 1d item_prototypes: - uuid: 90998150b995405d88e1f5c3138ababa name: 'ospfNbrState {#SNMPINDEX}' type: SNMP_AGENT snmp_oid: '.1.3.6.1.2.1.14.10.1.6.{#SNMPINDEX}' key: '.1.3.6.1.2.1.14.10.1.6.[{#SNMPINDEX}]' delay: '60' value_type: FLOAT tags: - tag: Application value: OPSF macros: - macro: '{$SNMP_COMMUNITY}' value: FillMeIn dashboards: - uuid: 2817e021b69a4362828c51c845fbd1ae name: 'Performance screen' pages: - widgets: - type: GRAPH_CLASSIC width: '12' height: '5' fields: - type: INTEGER name: source_type value: '0' - type: GRAPH name: graphid value: name: Temperature host: 'Juniper Total' - type: GRAPH_CLASSIC x: '12' width: '12' height: '5' fields: - type: INTEGER name: source_type value: '0' - type: GRAPH name: graphid value: name: 'CPU Utilization' host: 'Juniper Total' - type: GRAPH_CLASSIC 'y': '5' width: '24' height: '5' fields: - type: INTEGER name: source_type value: '0' - type: GRAPH name: graphid value: name: 'Memory Utilization' host: 'Juniper Total' - type: GRAPH_CLASSIC 'y': '10' width: '12' height: '5' fields: - type: INTEGER name: source_type value: '0' - type: GRAPH name: graphid value: name: 'ICMP Response' host: 'Juniper Total' - type: GRAPH_CLASSIC x: '12' 'y': '10' width: '12' height: '5' fields: - type: INTEGER name: source_type value: '0' - type: GRAPH name: graphid value: name: 'ICMP Time' host: 'Juniper Total' - type: GRAPH_PROTOTYPE 'y': '15' width: '24' height: '5' 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 {#SNMPVALUE} Traffic' host: 'Juniper Total' - type: GRAPH_PROTOTYPE 'y': '20' width: '24' height: '5' 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 {#SNMPVALUE} Discards and Errors' host: 'Juniper Total' graphs: - uuid: 86ed08ebef104158a9551f41f196d3a8 name: 'CPU Utilization' graph_items: - color: 1A7C11 item: host: 'Juniper Total' key: Junos.CPU - uuid: 4f46b6514fb240c49059c8cfa206b27a name: 'ICMP Response' graph_items: - color: 1A7C11 item: host: 'Juniper Total' key: 'icmpping[,,,,]' - uuid: 570eedb84aef426abc4d824994e6dff2 name: 'ICMP Time' graph_items: - drawtype: GRADIENT_LINE color: EE0000 item: host: 'Juniper Total' key: 'icmppingsec[,,,,,]' - uuid: 26f462e342884522bcff33429effa998 name: 'Memory Utilization' graph_items: - color: 1A7C11 item: host: 'Juniper Total' key: Junos.Mem - uuid: 12a7e4f471af4a67adb10fdd7d7bae72 name: Temperature graph_items: - color: EE0000 item: host: 'Juniper Total' key: Junos.Temp