<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export><version>5.0</version><date>2021-11-21T21:53:56Z</date><groups><group><name>Juniper Optical  Interfaces</name></group></groups><templates><template><template>Juniper-Optical-Interfaces</template><name>Juniper-Optical-Interfaces</name><description>## Description

Based on Zabbix's official Template Net Juniper SNMPv2, only minor modifications have been made. 1.The interfaces in the down and shutdown states have been filtered,virtual interfaces have also been filtered 2.The trigger threshold seting is -19dbm or 0dbm. 3.only RxLaserPower items,if you need TxLaserPower items but don’t know how to do it, please email me. whye1700#gmail.com(replace # with @)

## Overview

  2020-06-09-update


* The template was modified suitable for version 3.4


~~~~~~~~~~~~~~~~~


2020-03-20-update


* Add TxLaserPower item,If you need please download &quot;template-add\_TxLaserPower.xml&quot;
* TxLaserPower-Trigger,set Tx threshold on -10dbm or 0dbm,
* Added lsi-interfaces in to filters,you can change in filters seting page.


~~~~~~~~~~~~~~~~~


 


Based on Zabbix's official template Net Juniper SNMPv2, only a few modifications have been made， 


This template can monitor RxLaserPower of the optical interface. 


 


* The interfaces in the down and shutdown states have been filtered.
* The virtual interfaces have also been filtered, (vme|lsi|pfe|pfh|.0|bme|gr|gre|tap|irb|dsc|ipip|pimd|pime|mtun|em0|em1|em2|esi|jsrv|vtep|me|lt|ip|lc|ut|mt|vt|pe|cbp|ud|fxp|dem|pip|pp|et|ae)
* The trigger threshold seting is -19dbm or 0dbm.

&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25

</description><groups><group><name>Juniper Optical  Interfaces</name></group></groups><applications><application><name>Juniper Optical Interfaces</name></application></applications><discovery_rules><discovery_rule><name>Juniper Optical Interfaces Discovery</name><type>SNMP_AGENT</type><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,{#JNXDOMCURRENTTABLE},1.3.6.1.4.1.2636.3.60.1.1.1]</snmp_oid><key>net.if.optical.discovery</key><delay>12h</delay><filter><evaltype>AND</evaltype><conditions><condition><macro>{#IFADMINSTATUS}</macro><value>(1|3)</value><formulaid>A</formulaid></condition><condition><macro>{#IFOPERSTATUS}</macro><value>(1|3|4|5|7)</value><formulaid>B</formulaid></condition><condition><macro>{#IFTYPE}</macro><value>6</value><formulaid>C</formulaid></condition><condition><macro>{#IFTYPE}</macro><value>(ge|xe)</value><formulaid>D</formulaid></condition></conditions></filter><lifetime>6h</lifetime><item_prototypes><item_prototype><name>Interface {#IFNAME}({#IFALIAS}): RxLaserPower</name><type>SNMP_AGENT</type><snmp_oid>1.3.6.1.4.1.2636.3.60.1.1.1.1.5.{#SNMPINDEX}</snmp_oid><key>jnxDomCurrentRxLaserPower[ifDescr.{#SNMPINDEX}]</key><delay>60s</delay><value_type>FLOAT</value_type><units>dbm</units><applications><application><name>Juniper Optical Interfaces</name></application></applications><preprocessing><step><type>MULTIPLIER</type><params>0.01</params></step></preprocessing><trigger_prototypes><trigger_prototype><expression>{last()}&lt;-19 or   {last()}=0</expression><recovery_mode>RECOVERY_EXPRESSION</recovery_mode><recovery_expression>{last()}&gt;-19 and {last()}&lt;&gt;0</recovery_expression><name>({#IFALIAS}){#IFNAME}-RxLaser-lower-then-19db</name><priority>WARNING</priority><manual_close>YES</manual_close></trigger_prototype></trigger_prototypes></item_prototype></item_prototypes><graph_prototypes><graph_prototype><name>Interface {#IFNAME}({#IFALIAS}): RxLaserPower</name><graph_items><graph_item><color>4000FF</color><calc_fnc>ALL</calc_fnc><item><host>Juniper-Optical-Interfaces</host><key>jnxDomCurrentRxLaserPower[ifDescr.{#SNMPINDEX}]</key></item></graph_item></graph_items></graph_prototype></graph_prototypes></discovery_rule></discovery_rules></template></templates></zabbix_export>
