
# Juniper MX by SNMP

## Overview

This template is designed for the effortless deployment of Juniper MX monitoring by Zabbix via SNMP and doesn't require any external scripts.

## Requirements

Zabbix version: 7.0 and higher.

## Tested versions

This template has been tested on:
- Juniper MX204 Edge Router, JUNOS 24.2R1-S1.10

## Configuration

> Zabbix should be configured according to the instructions in the [Templates out of the box](https://www.zabbix.com/documentation/7.0/manual/config/templates_out_of_the_box) section.

## Setup

Refer to the vendor documentation.

### Macros used

|Name|Description|Default|
|----|-----------|-------|
|{$JUNIPER.MX.IF.ERRORS.WARN}|
Warning threshold of error packet rate. Can be used with interface name as context.
|`2`|
|{$JUNIPER.MX.IF.UTIL.MAX}|
Used as a threshold in the interface utilization trigger.
|`90`|
|{$JUNIPER.MX.IFCONTROL}|
Link status trigger will be fired only for interfaces where the context macro equals "1".
|`1`|
|{$JUNIPER.MX.NET.IF.IFNAME.MATCHES}|
Used for network interface discovery. Can be overridden on the host or linked template level.
|`^.*$`|
|{$JUNIPER.MX.NET.IF.IFNAME.NOT_MATCHES}|
Filters out loopbacks, nulls, docker `veth` links, and `docker0 bridge` by default.
|`Macro too long. Please see the template.`|
|{$JUNIPER.MX.NET.IF.IFOPERSTATUS.MATCHES}|
Used for network interface discovery. Can be overridden on the host or linked template level.
|`^.*$`|
|{$JUNIPER.MX.NET.IF.IFOPERSTATUS.NOT_MATCHES}|
Ignores `notPresent(6)`
|`^6$`|
|{$JUNIPER.MX.NET.IF.IFADMINSTATUS.MATCHES}|
Used in network interface discovery rule filters.
|`^.*`|
|{$JUNIPER.MX.NET.IF.IFADMINSTATUS.NOT_MATCHES}|
Ignores `down(2)` administrative status
|`^2$`|
|{$JUNIPER.MX.NET.IF.IFDESCR.MATCHES}|
Used in network interface discovery rule filters.
|`.*`|
|{$JUNIPER.MX.NET.IF.IFDESCR.NOT_MATCHES}|
Used in network interface discovery rule filters.
|`CHANGE_IF_NEEDED`|
|{$JUNIPER.MX.NET.IF.IFALIAS.MATCHES}|
Used in network interface discovery rule filters.
|`.*`|
|{$JUNIPER.MX.NET.IF.IFALIAS.NOT_MATCHES}|
Used in network interface discovery rule filters.
|`CHANGE_IF_NEEDED`|
|{$JUNIPER.MX.NET.IF.IFTYPE.MATCHES}|
Used in network interface discovery rule filters.
|`.*`|
|{$JUNIPER.MX.NET.IF.IFTYPE.NOT_MATCHES}|
Used in network interface discovery rule filters.
|`CHANGE_IF_NEEDED`|
|{$JUNIPER.MX.TEMP_CRIT}|
Threshold of temperature sensor for trigger. Can be used with interface name as context.
|`60`|
|{$JUNIPER.MX.TEMP_CRIT_LOW}|
Threshold of temperature sensor for trigger. Can be used with interface name as context.
|`5`|
|{$JUNIPER.MX.TEMP_WARN}|
Threshold of temperature sensor for trigger. Can be used with interface name as context.
|`50`|
|{$JUNIPER.MX.TEMP_CRIT:"Routing Engine"}|
Threshold of temperature sensor for trigger. Used for Routing Engine.
|`80`|
|{$JUNIPER.MX.TEMP_WARN:"Routing Engine"}|
Threshold of temperature sensor for trigger. Used for Routing Engine.
|`70`|
|{$JUNIPER.MX.FAN_CRIT_STATUS}|
Threshold of status sensor for trigger. All statuses defined in valuemap `JUNIPER-MIB::jnxOperatingState`.
|`6`|
|{$JUNIPER.MX.PSU_CRIT_STATUS}|
Threshold of status sensor for trigger. All statuses defined in valuemap `JUNIPER-MIB::jnxOperatingState`.
|`6`|
|{$JUNIPER.MX.MEMORY.UTIL.MAX}|
Threshold of memory utilization for trigger in %. Can be used with interface name as context.
|`90`|
|{$JUNIPER.MX.CPU.UTIL.CRIT}|
Threshold of CPU utilization for trigger in %. Can be used with interface name as context.
|`90`|
|{$JUNIPER.MX.SNMP.TIMEOUT}|
Time interval for the SNMP availability trigger.
|`5m`|
|{$JUNIPER.MX.ICMP_LOSS_WARN}|
Warning threshold of ICMP packet loss in %.
|`20`|
|{$JUNIPER.MX.ICMP_RESPONSE_TIME_WARN}|
Warning threshold of the average ICMP response time in seconds.
|`0.15`|

### Items

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|ICMP ping||Simple check|icmpping|
|ICMP loss||Simple check|icmppingloss|
|ICMP response time||Simple check|icmppingsec|
|Uptime (network)|
MIB: SNMPv2-MIB

Time (in hundredths of a second) since the network management portion of the system was last re-initialized.
|SNMP agent|juniper.mx.system.net.uptime[sysUpTime.0]
**Preprocessing**

- 
Custom multiplier: `0.01`

|
|Uptime (hardware)|
MIB: HOST-RESOURCES-MIB

The amount of time since this host was last initialized. Note that this is different from `sysUpTime` in the SNMPv2-MIB [RFC1907] because `sysUpTime` is the uptime of the network management portion of the system.
|SNMP agent|juniper.mx.system.hw.uptime[hrSystemUptime.0]
**Preprocessing**

- 
Check for not supported value: `any error`

⛔️Custom on fail: Set value to: `0`

- 
Custom multiplier: `0.01`

|
|SNMP traps (fallback)|
The item is used to collect all SNMP traps unmatched by other `snmptrap` items.
|SNMP trap|snmptrap.fallback|
|System location|
MIB: SNMPv2-MIB

Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string.
|SNMP agent|juniper.mx.system.location[sysLocation.0]
**Preprocessing**

- 
Discard unchanged with heartbeat: `12h`

|
|System contact details|
MIB: SNMPv2-MIB

Name and contact information of the contact person for the node. If not provided, the value is a zero-length string.
|SNMP agent|juniper.mx.system.contact[sysContact.0]
**Preprocessing**

- 
Discard unchanged with heartbeat: `12h`

|
|System object ID|
MIB: SNMPv2-MIB

The vendor's authoritative identification of the entity as part of the vendor's SMI enterprises subtree with the prefix 1.3.6.1.4.1 (e.g., a vendor with the identifier 1.3.6.1.4.1.4242 might assign a system object with the OID 1.3.6.1.4.1.4242.1.1).
|SNMP agent|juniper.mx.system.objectid[sysObjectID.0]
**Preprocessing**

- 
Discard unchanged with heartbeat: `12h`

|
|System name|
MIB: SNMPv2-MIB

An administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is a zero-length string.
|SNMP agent|juniper.mx.system.name
**Preprocessing**

- 
Discard unchanged with heartbeat: `12h`

|
|System description|
MIB: SNMPv2-MIB

A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating system, and networking software.
|SNMP agent|juniper.mx.system.descr[sysDescr.0]
**Preprocessing**

- 
Discard unchanged with heartbeat: `12h`

|
|SNMP agent availability|
Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list.

Possible values:

0 - not available

1 - available

2 - unknown
|Zabbix internal|zabbix[host,snmp,available]|
|Hardware serial number|
MIB: JUNIPER-MIB

The serial number of this subject, blank if unknown or unavailable.
|SNMP agent|juniper.mx.system.hw.serialnumber
**Preprocessing**

- 
Discard unchanged with heartbeat: `1d`

|
|Hardware model name|
MIB: JUNIPER-MIB

The name, model, or detailed description of the device, indicating which product it represents, for example, `M40`.
|SNMP agent|juniper.mx.system.hw.model
**Preprocessing**

- 
Discard unchanged with heartbeat: `1d`

|
|Operating system|
MIB: SNMPv2-MIB
|SNMP agent|juniper.mx.system.sw.os[sysDescr.0]
**Preprocessing**

- 
Regular expression: `kernel (JUNOS [0-9a-zA-Z\.\-]+) \1`

- 
Discard unchanged with heartbeat: `1d`

|
|SNMP walk Operating Table|
Scanning `JUNIPER-MIB::jnxOperatingTable` for CPU, Memory, Temperature, and Fans.
|SNMP agent|juniper.mx.operating.snmp.walk|
|SNMP walk Redundancy Table|
Scanning `JUNIPER-MIB::jnxRedundancyTable` for Router Redundancy.
|SNMP agent|juniper.mx.redundancy.table.snmp.walk|
|SNMP walk EtherLike-MIB interfaces|
Discovery of interfaces from IF-MIB and EtherLike-MIB. Interfaces with operational status `up(1)` are discovered.
|SNMP agent|juniper.mx.net.if.duplex.snmp.walk|
|SNMP walk Multi-lane digital optical monitoring|
Scanning `JUNIPER-DOM-MIB::jnxDomModuleLaneTable` for multi-lane digital optical monitoring.
|SNMP agent|juniper.mx.dom.snmp.walk|
|SNMP walk Network interfaces|
Discovery of interfaces from IF-MIB.
|SNMP agent|juniper.mx.net.if.snmp.walk|
|SNMP walk BGP Peer|
Scanning `BGP4-V2-MIB-JUNIPER::jnxBgpM2PeerData` for BGP Peer Data.
|SNMP agent|juniper.mx.bgp.peer.data.snmp.walk|
|SNMP walk BGP Prefix Counters|
Scanning `BGP4-V2-MIB-JUNIPER::jnxBgpM2PrefixCountersTable` for Prefix Counters.
|SNMP agent|juniper.mx.bgp.prefix.counters.snmp.walk|
|SNMP walk OSPF Neighbors|
Scanning `OSPF-MIB::ospfNbrTable` for OSPF Neighbors.
|SNMP agent|juniper.mx.ospf.nbr.snmp.walk|
|SNMP walk OSPFv3 Neighbors|
Scanning `OSPFV3-MIB-JUNIPER::jnxOspfv3NbrTable` for OSPFv3 Neighbors.
|SNMP agent|juniper.mx.ospfv3.nbr.snmp.walk|

### Triggers

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Juniper MX: Unavailable by ICMP ping|
Last three attempts returned timeout. Please check device connectivity.
|`max(/Juniper MX by SNMP/icmpping,#3)=0`|High||
|Juniper MX: High ICMP ping loss|
ICMP packet loss detected.
|`min(/Juniper MX by SNMP/icmppingloss,5m)>{$JUNIPER.MX.ICMP_LOSS_WARN} and min(/Juniper MX by SNMP/icmppingloss,5m)<100`|Warning|**Depends on**:

- Juniper MX: Unavailable by ICMP ping
|
|Juniper MX: High ICMP ping response time|
Average ICMP response time is too high.
|`avg(/Juniper MX by SNMP/icmppingsec,5m)>{$JUNIPER.MX.ICMP_RESPONSE_TIME_WARN}`|Warning|**Depends on**:

- Juniper MX: High ICMP ping loss
- Juniper MX: Unavailable by ICMP ping
|
|Juniper MX: Host has been restarted|
Uptime is less than 10 minutes.
|`(last(/Juniper MX by SNMP/juniper.mx.system.hw.uptime[hrSystemUptime.0])>0 and last(/Juniper MX by SNMP/juniper.mx.system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Juniper MX by SNMP/juniper.mx.system.hw.uptime[hrSystemUptime.0])=0 and last(/Juniper MX by SNMP/juniper.mx.system.net.uptime[sysUpTime.0])<10m)`|Warning|**Manual close**: Yes
**Depends on**:

- Juniper MX: No SNMP data collection
|
|Juniper MX: System name has changed|
The name of the system has changed. Acknowledge to close the problem manually.
|`last(/Juniper MX by SNMP/juniper.mx.system.name,#1)<>last(/Juniper MX by SNMP/juniper.mx.system.name,#2) and length(last(/Juniper MX by SNMP/juniper.mx.system.name))>0`|Info|**Manual close**: Yes|
|Juniper MX: No SNMP data collection|
SNMP is not available for polling. Please check device connectivity and SNMP settings.
|`max(/Juniper MX by SNMP/zabbix[host,snmp,available],{$JUNIPER.MX.SNMP.TIMEOUT})=0`|Warning|**Depends on**:

- Juniper MX: Unavailable by ICMP ping
|
|Juniper MX: Device has been replaced|
Device serial number has changed. Acknowledge to close the problem manually.
|`last(/Juniper MX by SNMP/juniper.mx.system.hw.serialnumber,#1)<>last(/Juniper MX by SNMP/juniper.mx.system.hw.serialnumber,#2) and length(last(/Juniper MX by SNMP/juniper.mx.system.hw.serialnumber))>0`|Info|**Manual close**: Yes|
|Juniper MX: Operating system description has changed|
Operating system description has changed. Possible reasons - system has been updated or replaced. Acknowledge to close the problem manually.
|`last(/Juniper MX by SNMP/juniper.mx.system.sw.os[sysDescr.0],#1)<>last(/Juniper MX by SNMP/juniper.mx.system.sw.os[sysDescr.0],#2) and length(last(/Juniper MX by SNMP/juniper.mx.system.sw.os[sysDescr.0]))>0`|Info|**Manual close**: Yes
**Depends on**:

- Juniper MX: System name has changed
|

### LLD rule Network interface discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Network interface discovery|
Discovery of interfaces from IF-MIB.
|Dependent item|juniper.mx.net.if.discovery
**Preprocessing**

- 
SNMP walk to JSON

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for Network interface discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Interface [{#IFNAME}][{#IFALIAS}]: Operational status|
MIB: IF-MIB

The current operational state of the interface.

- The `testing(3)` state indicates that no operational packet scan can be passed.

- If `ifAdminStatus` is `down(2)`, then `ifOperStatus` should be `down(2)`.

- If `ifAdminStatus` is changed to `up(1)`, then `ifOperStatus` should change to `up(1)` if the interface is ready to transmit and receive network traffic.

- It should change to `dormant(5)` if the interface is waiting for external actions (such as a serial line waiting for an incoming connection).

- It should remain in the `down(2)` state if and only if there is a fault that prevents it from going to the `up(1)` state.

- It should remain in the `notPresent(6)` state if the interface has missing (typically, hardware) components.
|Dependent item|juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}`

|
|Interface [{#IFNAME}][{#IFALIAS}]: Bits received|
MIB: IF-MIB

The total number of octets received on the interface, including framing characters. This object is a 64-bit version of `ifInOctets`. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`.
|Dependent item|juniper.mx.net.if.in[ifHCInOctets.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}`

- Change per second
- 
Custom multiplier: `8`

|
|Interface [{#IFNAME}][{#IFALIAS}]: Bits sent|
MIB: IF-MIB

The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of `ifOutOctets`. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`.
|Dependent item|juniper.mx.net.if.out[ifHCOutOctets.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}`

- Change per second
- 
Custom multiplier: `8`

|
|Interface [{#IFNAME}][{#IFALIAS}]: Inbound packets with errors|
MIB: IF-MIB

For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.

For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`.
|Dependent item|juniper.mx.net.if.in.errors[ifInErrors.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}`

- Change per second
- 
Discard unchanged with heartbeat: `3m`

|
|Interface [{#IFNAME}][{#IFALIAS}]: Outbound packets with errors|
MIB: IF-MIB

For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.

For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of `ifCounterDiscontinuityTime`.
|Dependent item|juniper.mx.net.if.out.errors[ifOutErrors.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}`

- Change per second
- 
Discard unchanged with heartbeat: `3m`

|
|Interface [{#IFNAME}][{#IFALIAS}]: Outbound packets discarded|
MIB: IF-MIB

The number of outbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol.

One possible reason for discarding such a packet could be to free up buffer space.

Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of `ifCounterDiscontinuityTime`.
|Dependent item|juniper.mx.net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}`

- Change per second
- 
Discard unchanged with heartbeat: `3m`

|
|Interface [{#IFNAME}][{#IFALIAS}]: Inbound packets discarded|
MIB: IF-MIB

The number of inbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol.

One possible reason for discarding such a packet could be to free up buffer space.

Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of `ifCounterDiscontinuityTime`.
|Dependent item|juniper.mx.net.if.in.discards[ifInDiscards.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}`

- Change per second
- 
Discard unchanged with heartbeat: `3m`

|
|Interface [{#IFNAME}][{#IFALIAS}]: Interface type|
MIB: IF-MIB

The type of interface.

Additional values for `ifType` are assigned by the Internet Assigned Numbers Authority (IANA), through updating the syntax of the IANAifType textual convention.
|Dependent item|juniper.mx.net.if.type[ifType.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}`

- 
Discard unchanged with heartbeat: `1d`

|
|Interface [{#IFNAME}][{#IFALIAS}]: Speed|
MIB: IF-MIB

An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`.

For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth.

For a sub-layer which has no concept of bandwidth, this object should be zero.
|Dependent item|juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}`

- 
Custom multiplier: `1000000`

- 
Discard unchanged with heartbeat: `1h`

|

### Trigger prototypes for Network interface discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: Link down|
This trigger expression works as follows:
1. It can be triggered if the operations status is down.
2. `{$JUNIPER.MX.IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down.
3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.)

WARNING: if closed manually - it will not fire again on the next poll, because of `.diff`.
|`{$JUNIPER.MX.IFCONTROL:"{#IFNAME}"}=1 and last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}],#2))`|Average|**Manual close**: Yes|
|Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: High bandwidth usage|
The utilization of the network interface is close to its estimated maximum bandwidth.
|`(avg(/Juniper MX by SNMP/juniper.mx.net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$JUNIPER.MX.IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Juniper MX by SNMP/juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or avg(/Juniper MX by SNMP/juniper.mx.net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$JUNIPER.MX.IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Juniper MX by SNMP/juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and last(/Juniper MX by SNMP/juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0`|Warning|**Manual close**: Yes
**Depends on**:

- Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: Link down
|
|Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: High error rate|
It recovers when it is below 80% of the `{$JUNIPER.MX.IF.ERRORS.WARN:"{#IFNAME}"}` threshold.
|`min(/Juniper MX by SNMP/juniper.mx.net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$JUNIPER.MX.IF.ERRORS.WARN:"{#IFNAME}"} or min(/Juniper MX by SNMP/juniper.mx.net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$JUNIPER.MX.IF.ERRORS.WARN:"{#IFNAME}"}`|Warning|**Manual close**: Yes
**Depends on**:

- Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: Link down
|
|Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: Ethernet has changed to lower speed than it was before|
This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.
|`change(/Juniper MX by SNMP/juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Juniper MX by SNMP/juniper.mx.net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and ( last(/Juniper MX by SNMP/juniper.mx.net.if.type[ifType.{#SNMPINDEX}])=6 or last(/Juniper MX by SNMP/juniper.mx.net.if.type[ifType.{#SNMPINDEX}])=7 or last(/Juniper MX by SNMP/juniper.mx.net.if.type[ifType.{#SNMPINDEX}])=11 or last(/Juniper MX by SNMP/juniper.mx.net.if.type[ifType.{#SNMPINDEX}])=62 or last(/Juniper MX by SNMP/juniper.mx.net.if.type[ifType.{#SNMPINDEX}])=69 or last(/Juniper MX by SNMP/juniper.mx.net.if.type[ifType.{#SNMPINDEX}])=117 ) and (last(/Juniper MX by SNMP/juniper.mx.net.if.status[ifOperStatus.{#SNMPINDEX}])<>2)`|Info|**Manual close**: Yes
**Depends on**:

- Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: Link down
|

### LLD rule CPU and Memory discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|CPU and Memory discovery|
Scanning `JUNIPER-MIB::jnxOperatingTable` for CPU and Memory.

http://kb.juniper.net/InfoCenter/index?page=content&id=KB17526&actp=search. Filter limits results to Routing Engines.
|Dependent item|juniper.mx.cpu.mem.discovery
**Preprocessing**

- 
SNMP walk to JSON

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for CPU and Memory discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|System [{#SNMPVALUE}]: CPU utilization|
MIB: JUNIPER-MIB

The CPU utilization, in percent, of this subject. Zero if unavailable or inapplicable.

Reference: http://kb.juniper.net/library/CUSTOMERSERVICE/GLOBAL_JTAC/BK26199/SRX%20SNMP%20Monitoring%20Guide_v1.1.pdf
|Dependent item|juniper.mx.cpu.util[jnxOperatingCPU.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.3.1.13.1.8.{#SNMPINDEX}`

- 
Discard unchanged with heartbeat: `3m`

|
|System [{#SNMPVALUE}]: Memory utilization|
MIB: JUNIPER-MIB

The buffer pool utilization, in percent, of this subject. Zero if unavailable or inapplicable.

Reference: http://kb.juniper.net/library/CUSTOMERSERVICE/GLOBAL_JTAC/BK26199/SRX%20SNMP%20Monitoring%20Guide_v1.1.pdf
|Dependent item|juniper.mx.memory.util[jnxOperatingBuffer.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.3.1.13.1.11.{#SNMPINDEX}`

- 
Discard unchanged with heartbeat: `3m`

|

### Trigger prototypes for CPU and Memory discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Juniper MX: System [{#SNMPVALUE}]: High CPU utilization|
The CPU utilization is too high. The system might be slow to respond.
|`min(/Juniper MX by SNMP/juniper.mx.cpu.util[jnxOperatingCPU.{#SNMPINDEX}],5m)>{$JUNIPER.MX.CPU.UTIL.CRIT}`|Average||
|Juniper MX: System [{#SNMPVALUE}]: High memory utilization|
The system is running out of free memory.
|`min(/Juniper MX by SNMP/juniper.mx.memory.util[jnxOperatingBuffer.{#SNMPINDEX}],5m)>{$JUNIPER.MX.MEMORY.UTIL.MAX}`|Average||

### LLD rule Redundancy discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Redundancy discovery|
Scanning `JUNIPER-MIB::jnxRedundancyTable`.
|Dependent item|juniper.mx.redundancy.discovery
**Preprocessing**

- 
SNMP walk to JSON

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for Redundancy discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Redundancy [{#SNMPVALUE}][{#CHASSISDESCR}]: Current running state|
MIB: JUNIPER-MIB

The current running state for the `Redundancy [{#SNMPVALUE}][{#CHASSISDESCR}]` subject.
|Dependent item|juniper.mx.redundancy.state["{#SNMPINDEX}"]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.3.1.14.1.7.{#SNMPINDEX}`

- 
Discard unchanged with heartbeat: `3m`

|
|Redundancy [{#SNMPVALUE}][{#CHASSISDESCR}]: Reason of the last switchover|
MIB: JUNIPER-MIB

The reason of the last switchover for the `Redundancy [{#SNMPVALUE}][{#CHASSISDESCR}]` subject.
|Dependent item|juniper.mx.redundancy.switchover.reason["{#SNMPINDEX}"]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.3.1.14.1.10.{#SNMPINDEX}`

- 
Discard unchanged with heartbeat: `3m`

|

### LLD rule Temperature discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Temperature discovery|
Scanning `JUNIPER-MIB::jnxOperatingTable` for Temperature.
|Dependent item|juniper.mx.temperature.discovery
**Preprocessing**

- 
SNMP walk to JSON

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for Temperature discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Sensor [{#SENSOR_INFO}]: Temperature|
MIB: JUNIPER-MIB

The temperature in Celsius of [{#SENSOR_INFO}].
|Dependent item|sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.3.1.13.1.7.{#SNMPINDEX}`

- 
Discard unchanged with heartbeat: `3m`

|

### Trigger prototypes for Temperature discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Juniper MX: Sensor [{#SENSOR_INFO}]: Temperature is above warning threshold|
This trigger uses temperature sensor values as well as the temperature sensor status if available.
|`avg(/Juniper MX by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$JUNIPER.MX.TEMP_WARN:"{#SENSOR_INFO}"}`|Warning|**Depends on**:

- Juniper MX: Sensor [{#SENSOR_INFO}]: Temperature is above critical threshold
|
|Juniper MX: Sensor [{#SENSOR_INFO}]: Temperature is above critical threshold|
This trigger uses temperature sensor values as well as the temperature sensor status if available.
|`avg(/Juniper MX by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$JUNIPER.MX.TEMP_CRIT:"{#SENSOR_INFO}"}`|High||
|Juniper MX: Sensor [{#SENSOR_INFO}]: Temperature is too low|
This trigger uses temperature sensor values as well as the temperature sensor status if available.
|`avg(/Juniper MX by SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$JUNIPER.MX.TEMP_CRIT_LOW:"{#SENSOR_INFO}"}`|Average||

### LLD rule FAN discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|FAN discovery|
Scanning `JUNIPER-MIB::jnxOperatingTable` for Fans.
|Dependent item|juniper.mx.fans.discovery
**Preprocessing**

- 
SNMP walk to JSON

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for FAN discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Sensor [{#SNMPVALUE}]: Fan status|
MIB: JUNIPER-MIB

Current status of the Fan tray.
|Dependent item|juniper.mx.sensor.fan.status[jnxOperatingState.4.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.3.1.13.1.6.4.{#SNMPINDEX}`

- 
Discard unchanged with heartbeat: `3m`

|

### Trigger prototypes for FAN discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Juniper MX: Sensor [{#SNMPVALUE}]: Fan is in critical state|
Please check the Fan unit.
|`count(/Juniper MX by SNMP/juniper.mx.sensor.fan.status[jnxOperatingState.4.{#SNMPINDEX}],#1,"eq","{$JUNIPER.MX.FAN_CRIT_STATUS}")=1`|Average||

### LLD rule PSU discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|PSU discovery|
Scanning `JUNIPER-MIB::jnxOperatingTable` for Power Supplies.
|Dependent item|juniper.mx.psu.discovery
**Preprocessing**

- 
SNMP walk to JSON

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for PSU discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Sensor [{#SNMPVALUE}]: Power supply status|
MIB: JUNIPER-MIB

If are using DC power supplies, there is a known issue on PR 1064039 where the fans do not detect the temperature correctly and fail to cool the power supply causing shutdown to occur.

This is fixed in Junos 13.3R7 https://forums.juniper.net/t5/Routing/PEM-0-not-OK-MX104/m-p/289644#M14122
|Dependent item|juniper.mx.sensor.psu.status["{#SNMPINDEX}"]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.3.1.13.1.6.2.{#SNMPINDEX}`

- 
Discard unchanged with heartbeat: `3m`

|

### Trigger prototypes for PSU discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Juniper MX: Sensor [{#SNMPVALUE}]: Power supply is in critical state|
Please check the power supply unit for errors.
|`count(/Juniper MX by SNMP/juniper.mx.sensor.psu.status["{#SNMPINDEX}"],#1,"eq","{$JUNIPER.MX.PSU_CRIT_STATUS}")=1`|Average||

### LLD rule EtherLike-MIB discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|EtherLike-MIB discovery|
Discovery of interfaces from IF-MIB and EtherLike-MIB. Interfaces with the `up(1)` operational status are discovered.
|Dependent item|juniper.mx.net.if.duplex.discovery
**Preprocessing**

- 
SNMP walk to JSON

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for EtherLike-MIB discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Interface [{#IFNAME}][{#IFALIAS}]: Duplex status|
MIB: EtherLike-MIB

The current mode of operation of the MAC entity. `unknown` indicates that the current duplex mode could not be determined.

Management control of the duplex mode is accomplished through the MAU MIB. When an interface does not support autonegotiation or when autonegotiation is not enabled, the duplex mode is controlled using `ifMauDefaultType`. When autonegotiation is supported and enabled, duplex mode is controlled using `ifMauAutoNegAdvertisedBits`. In either case, the currently operating duplex mode in reflected both in this object and in `ifMauType`.

Note that this object provides redundant information with `ifMauType`. Normally, redundant objects are discouraged. However, in this instance, it allows a management application to determine the duplex status of an interface without having to know every possible value of `ifMauType`. This was felt to be sufficiently valuable to justify the redundancy.

Reference: [IEEE 802.3 Std.], 30.3.1.1.32,aDuplexStatus.
|Dependent item|juniper.mx.net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}`

|

### Trigger prototypes for EtherLike-MIB discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Juniper MX: Interface [{#IFNAME}][{#IFALIAS}]: In half-duplex mode|
Please check autonegotiation settings and cabling.
|`last(/Juniper MX by SNMP/juniper.mx.net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2`|Warning|**Manual close**: Yes|

### LLD rule Multi-lane DOM discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Multi-lane DOM discovery|
Used for information about Digital Optical Monitoring for a Lane of an SFF optical module, as defined in JUNIPER-DOM-MIB.
|Dependent item|juniper.mx.dom.lane.discovery
**Preprocessing**

- 
SNMP walk to JSON

⛔️Custom on fail: Discard value

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for Multi-lane DOM discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|SFP [{#IFNAME}][{#IFALIAS}]: Rx optical power lane [{#LANEINDEX}]|
Receiver laser power on a particular Lane of an SFF physical interface.
|Dependent item|juniper.mx.dom.rx.lane.laser[jnxDomCurrentLaneRxLaserPower.{#SNMPINDEX}.{#LANEINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.3.60.1.2.1.1.6.{#PORTINDEX}.{#LANEINDEX}`

- 
Custom multiplier: `0.01`

|
|SFP [{#IFNAME}][{#IFALIAS}]: Tx optical power lane [{#LANEINDEX}]|
Transmitter laser power on a particular Lane of an SFF physical interface.
|Dependent item|juniper.mx.dom.tx.lane.laser[jnxDomCurrentLaneTxLaserOutputPower.{#SNMPINDEX}.{#LANEINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.3.60.1.2.1.1.8.{#PORTINDEX}.{#LANEINDEX}`

- 
Custom multiplier: `0.01`

|
|SFP [{#IFNAME}][{#IFALIAS}]: Module lane [{#LANEINDEX}] alarms|
This item identifies all the active DOM alarms on a particular Lane of an SFF physical interface.
|Dependent item|juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.3.60.1.2.1.1.2.{#PORTINDEX}.{#LANEINDEX}`

- 
JavaScript: `The text is too long. Please see the template.`

|

### Trigger prototypes for Multi-lane DOM discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Rx power high|
Receiver laser power - high alarm threshold.
|`jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneRxLaserPowerHighAlarm")="true"`|Warning||
|Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Rx power low|
Receiver laser power - low alarm threshold.
|`jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneRxLaserPowerLowAlarm")="true"`|Warning||
|Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Tx bias high|
Transmitter laser bias current - high alarm threshold.
|`jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneTxLaserBiasCurrentHighAlarm")="true"`|Warning||
|Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Tx bias low|
Transmitter laser bias current - low alarm threshold.
|`jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneTxLaserBiasCurrentLowAlarm")="true"`|Warning||
|Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Tx power high|
Transmitter laser power - high alarm threshold.
|`jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneTxLaserOutputPowerHighAlarm")="true"`|Warning||
|Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Tx power low|
Transmitter laser power - low alarm threshold.
|`jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneTxLaserOutputPowerLowAlarm")="true"`|Warning||
|Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Temperature High|
Module temperature - high alarm threshold.
|`jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneLaserTemperatureHighAlarm")="true"`|Warning||
|Juniper MX: SFP [{#IFNAME}][{#IFALIAS}]: Temperature Low|
Module temperature - low alarm threshold.
|`jsonpath(last(/Juniper MX by SNMP/juniper.mx.dom.alarms.lane.laser[jnxDomCurrentLaneAlarms.{#SNMPINDEX}.{#LANEINDEX}]),"$.domLaneLaserTemperatureLowAlarm")="true"`|Warning||

### LLD rule BGP Prefix counter discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|BGP Prefix counter discovery|
Scanning `BGP4-V2-MIB-JUNIPER::jnxBgpM2PrefixCountersTable` for Prefix Counters.
|Dependent item|juniper.mx.bgp.prefix.discovery
**Preprocessing**

- 
SNMP walk to JSON

⛔️Custom on fail: Set error to: `BGP instance is not running`

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for BGP Prefix counter discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|BGP [{#BGPM2_AFI_SAFI}]: Accepted prefixes|
The number of prefixes for a peer that are installed in the Adj-Ribs-In and are eligible to become active in the Loc-Rib.
|Dependent item|juniper.mx.bgp.prefix.accepted[jnxBgpM2PrefixInPrefixesAccepted.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.5.1.1.2.6.2.1.8.{#SNMPINDEX}`

|
|BGP [{#BGPM2_AFI_SAFI}]: Advertised prefixes|
The number of prefixes for a peer that are installed in the peer's Adj-Ribs-Out.
|Dependent item|juniper.mx.bgp.prefix.advertised[jnxBgpM2PrefixOutPrefixes.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.5.1.1.2.6.2.1.10.{#SNMPINDEX}`

|
|BGP [{#BGPM2_AFI_SAFI}]: Received prefixes|
The number of prefixes received from a peer and stored in the Adj-Ribs-In for that peer.
|Dependent item|juniper.mx.bgp.prefix.received[jnxBgpM2PrefixInPrefixes.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.5.1.1.2.6.2.1.7.{#SNMPINDEX}`

|
|BGP [{#BGPM2_AFI_SAFI}]: Rejected prefixes|
The number of prefixes for a peer that are installed in the Adj-Ribs-In and are NOT eligible to become active in the Loc-Rib.
|Dependent item|juniper.mx.bgp.prefix.rejected[jnxBgpM2PrefixInPrefixesRejected.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.5.1.1.2.6.2.1.9.{#SNMPINDEX}`

|
|BGP [{#BGPM2_AFI_SAFI}]: Active prefixes|
The number of prefixes for a peer that are installed in the Adj-Ribs-In and are the active route in the Loc-Rib.
|Dependent item|juniper.mx.bgp.prefix.active[jnxBgpM2PrefixInPrefixesActive.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.5.1.1.2.6.2.1.11.{#SNMPINDEX}`

|

### LLD rule BGP Peer discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|BGP Peer discovery|
Scanning `BGP4-V2-MIB-JUNIPER::jnxBgpM2PeerData` for BGP Peer.
|Dependent item|juniper.mx.bgp.peer.discovery
**Preprocessing**

- 
SNMP walk to JSON

⛔️Custom on fail: Set error to: `BGP instance is not running`

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for BGP Peer discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|BGP AS [{#BGPM2_PEER_REMOTE_AS}] Peer [{#BGPM2_PEER_REMOTE_ADDR}]: State|
The remote BGP peer's FSM state.
|Dependent item|juniper.mx.bgp.state[jnxBgpM2PeerState.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.5.1.1.2.1.1.1.2.{#SNMPINDEX}`

|
|BGP AS [{#BGPM2_PEER_REMOTE_AS}] Peer [{#BGPM2_PEER_REMOTE_ADDR}]: Status|
Whether or not the BGP FSM for this remote peer is halted or running. The BGP FSM for a remote peer is halted after processing a Stop event. Likewise, it is in the running state after a Start event. The `jnxBgpM2PeerState` will generally be in the idle state when the FSM is halted, although some extensions such as Graceful Restart will leave the peer in the Idle state but with the FSM running.
|Dependent item|juniper.mx.bgp.status[jnxBgpM2PeerStatus.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.5.1.1.2.1.1.1.3.{#SNMPINDEX}`

|
|BGP AS [{#BGPM2_PEER_REMOTE_AS}] Peer [{#BGPM2_PEER_REMOTE_ADDR}]: Established time|
This timer indicates how long (in seconds) this peer has been in the Established state or how long since this peer was last in the Established state. It is set to zero when a new peer is configured or the router is booted.
|Dependent item|juniper.mx.bgp.established.time[jnxBgpM2PeerFsmEstablishedTime.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.5.1.1.2.4.1.1.1.{#SNMPINDEX}`

|

### Trigger prototypes for BGP Peer discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Juniper MX: BGP AS [{#BGPM2_PEER_REMOTE_AS}] Peer [{#BGPM2_PEER_REMOTE_ADDR}]: is down|
Session [BGP AS [{#BGPM2_PEER_REMOTE_AS}] Peer [{#BGPM2_PEER_REMOTE_ADDR}]] is down, check the BGP configuration. For information on checking the BGP configuration, see https://www.juniper.net/documentation/us/en/software/junos/bgp/topics/topic-map/troubleshooting-bgp-sessions.html.
|`last(/Juniper MX by SNMP/juniper.mx.bgp.state[jnxBgpM2PeerState.{#SNMPINDEX}],#3)<>6 and last(/Juniper MX by SNMP/juniper.mx.bgp.status[jnxBgpM2PeerStatus.{#SNMPINDEX}])=2`|High||

### LLD rule OSPF Neighbor discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|OSPF Neighbor discovery|
Scanning `OSPF-MIB::ospfNbrTable` for OSPF Neighbors.
|Dependent item|juniper.mx.ospf.neighbor.discovery
**Preprocessing**

- 
SNMP walk to JSON

⛔️Custom on fail: Set error to: `OSPF instance is not running`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for OSPF Neighbor discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|OSPF Neighbor [{#OSPF_IP_ADDR}]: State|
The state of the relationship with this neighbor.
|Dependent item|juniper.mx.ospf.state[ospfNbrState.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.2.1.14.10.1.6.{#SNMPINDEX}`

|
|OSPF Neighbor [{#OSPF_IP_ADDR}]: Hello suppressed|
Indicates whether Hellos are being suppressed to the neighbor.
|Dependent item|juniper.mx.ospf.hello.suppressed[ospfNbrHelloSuppressed.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.2.1.14.10.1.11.{#SNMPINDEX}`

|
|OSPF Neighbor [{#OSPF_IP_ADDR}]: Router Id|
A 32-bit integer (represented as a type `IpAddress`) uniquely identifying the neighboring router in the Autonomous System.
|Dependent item|juniper.mx.ospf.rtr.id[ospfNbrRtrId.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.2.1.14.10.1.3.{#SNMPINDEX}`

|
|OSPF Neighbor [{#OSPF_IP_ADDR}]: Events|
The number of times this neighbor relationship has changed state, or an error has occurred.
|Dependent item|juniper.mx.ospf.events[ospfNbrEvents.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.2.1.14.10.1.7.{#SNMPINDEX}`

|

### Trigger prototypes for OSPF Neighbor discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Juniper MX: OSPF Neighbor [{#OSPF_IP_ADDR}]: State down|
OSPF neighbor [{#OSPF_IP_ADDR}] in operational state `down`.
|`last(/Juniper MX by SNMP/juniper.mx.ospf.state[ospfNbrState.{#SNMPINDEX}]) = 1`|Average||
|Juniper MX: OSPF Neighbor [{#OSPF_IP_ADDR}]: State init|
OSPF neighbor [{#OSPF_IP_ADDR}] in operational state `init`.
|`last(/Juniper MX by SNMP/juniper.mx.ospf.state[ospfNbrState.{#SNMPINDEX}]) = 3`|Average||
|Juniper MX: OSPF Neighbor [{#OSPF_IP_ADDR}]: Number of relationship has changed|
The number of times the [{#OSPF_IP_ADDR}] neighbor relationship has changed.
|`last(/Juniper MX by SNMP/juniper.mx.ospf.events[ospfNbrEvents.{#SNMPINDEX}],#1)<>last(/Juniper MX by SNMP/juniper.mx.ospf.events[ospfNbrEvents.{#SNMPINDEX}],#2)`|Warning||

### LLD rule OSPFv3 Neighbor discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|OSPFv3 Neighbor discovery|
Scanning `OSPFV3-MIB-JUNIPER::jnxOspfv3NbrTable` for OSPFv3 Neighbors.
|Dependent item|juniper.mx.ospfv3.neighbor.discovery
**Preprocessing**

- 
SNMP walk to JSON

⛔️Custom on fail: Set error to: `OSPF instance is not running`

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for OSPFv3 Neighbor discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|OSPFv3 Neighbor [{#OSPFV3_IP_ADDR}]: State|
The state of the relationship with this neighbor.
|Dependent item|juniper.mx.ospfv3.state[jnxOspfv3NbrState.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.5.4.1.1.9.1.8.{#SNMPINDEX}`

|
|OSPFv3 Neighbor [{#OSPFV3_IP_ADDR}]: Hello suppressed|
Indicates whether Hellos are being suppressed to the neighbor.
|Dependent item|juniper.mx.ospfv3.hello.suppressed[jnxOspfv3NbrHelloSuppressed.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.5.4.1.1.9.1.11.{#SNMPINDEX}`

|
|OSPFv3 Neighbor [{#OSPFV3_IP_ADDR}]: Priority|
The priority of this neighbor in the designated router election algorithm. The value `0` signifies that the neighbor is not eligible to become the designated router on this particular network.
|Dependent item|juniper.mx.ospfv3.priority[jnxOspfv3NbrPriority.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.5.4.1.1.9.1.7.{#SNMPINDEX}`

|
|OSPFv3 Neighbor [{#OSPFV3_IP_ADDR}]: Events|
The number of times the [{#OSPFV3_IP_ADDR}] neighbor relationship has changed state, or an error has occurred.
|Dependent item|juniper.mx.ospfv3.events[jnxOspfv3NbrEvents.{#SNMPINDEX}]
**Preprocessing**

- 
SNMP walk value: `1.3.6.1.4.1.2636.5.4.1.1.9.1.9.{#SNMPINDEX}`

|

### Trigger prototypes for OSPFv3 Neighbor discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Juniper MX: OSPFv3 Neighbor [{#OSPFV3_IP_ADDR}]: State down|
OSPF neighbor [{#OSPFV3_IP_ADDR}] in operational state `down`.
|`last(/Juniper MX by SNMP/juniper.mx.ospfv3.state[jnxOspfv3NbrState.{#SNMPINDEX}]) = 1`|Average||
|Juniper MX: OSPFv3 Neighbor [{#OSPFV3_IP_ADDR}]: State init|
OSPFv3 neighbor [{#OSPFV3_IP_ADDR}] in operational state `init`.
|`last(/Juniper MX by SNMP/juniper.mx.ospfv3.state[jnxOspfv3NbrState.{#SNMPINDEX}]) = 3`|Average||
|Juniper MX: OSPFv3 Neighbor [{#OSPFV3_IP_ADDR}]: relationship has changed|
The number of times the [{#OSPFV3_IP_ADDR}] neighbor relationship has changed.
|`last(/Juniper MX by SNMP/juniper.mx.ospfv3.events[jnxOspfv3NbrEvents.{#SNMPINDEX}],#1)<>last(/Juniper MX by SNMP/juniper.mx.ospfv3.events[jnxOspfv3NbrEvents.{#SNMPINDEX}],#2)`|Warning||

## Feedback

Please report any issues with the template at [`https://support.zabbix.com`](https://support.zabbix.com)

You can also provide feedback, discuss the template, or ask for help at [`ZABBIX forums`](https://www.zabbix.com/forum/zabbix-suggestions-and-feedback)

