<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>6.0</version>
    <date>2023-02-27T23:44:02Z</date>
    <groups>
        <group>
            <uuid>4918b88734c54bd094cff7585b5d71fc</uuid>
            <name>Templates/Network Devices</name>
        </group>
        <group>
            <uuid>36bff6c29af64692839d077febfc7079</uuid>
            <name>Templates/Network devices</name>
        </group>
    </groups>
    <templates>
        <template>
            <uuid>8eed833d71d34cd7946883d1d7597d57</uuid>
            <template>_ Template Juniper BGP</template>
            <name>_ Template Juniper BGP</name>
            <description>External script discovery BGP4: 
LLD.py[&quot;-h&quot;, {HOST.CONN}, &quot;-c&quot;, &quot;{$SNMP_COMMUNITY}&quot;, &quot;-mi&quot;, &quot;{#PEERADDR}&quot;, &quot;-m&quot;, &quot;{#PREFXTBL}&quot;, &quot;{#ADDRTYPE}&quot;, &quot;{#ASNUM}&quot;]


Built-in BGP4 discovery: discovery[{#PEERADDR}, .1.3.6.1.4.1.2636.5.1.1.2.1.1.1.11, {#PREFXTBL}, .1.3.6.1.4.1.2636.5.1.1.2.1.1.1.14, {#ADDRTYPE}, .1.3.6.1.4.1.2636.5.1.1.2.1.1.1.10, {#ASNUM}, .1.3.6.1.4.1.2636.5.1.1.2.1.1.1.13]</description>
            <groups>
                <group>
                    <name>Templates/Network Devices</name>
                </group>
            </groups>
            <items>
                <item>
                    <uuid>f07efec1d9a24fd2b22ba2545307c7db</uuid>
                    <name>Ping check</name>
                    <type>SIMPLE</type>
                    <key>icmpping</key>
                    <delay>30</delay>
                    <units>Binary</units>
                    <tags>
                        <tag>
                            <tag>Application</tag>
                            <value>Device Health</value>
                        </tag>
                    </tags>
                    <triggers>
                        <trigger>
                            <uuid>43975eedd60e42ceb0f4146aa31f3eaa</uuid>
                            <expression>sum(/_ Template Juniper BGP/icmpping,#3)=0 or ({TRIGGER.VALUE}=1 and sum(/_ Template Juniper BGP/icmpping,#3)&lt;&gt;3)</expression>
                            <name>Ping check</name>
                            <priority>DISASTER</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <uuid>2c23aef282a54199b086aea1dbdc9856</uuid>
                    <name>jnxRedAlarmState</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2636.3.4.2.3.1.0</snmp_oid>
                    <key>jnxRedAlarmState</key>
                    <delay>30</delay>
                    <tags>
                        <tag>
                            <tag>Application</tag>
                            <value>Device Health</value>
                        </tag>
                    </tags>
                    <triggers>
                        <trigger>
                            <uuid>d4632ef87b594771ae10aebdfe9d0591</uuid>
                            <expression>last(/_ Template Juniper BGP/jnxRedAlarmState)&lt;&gt;2</expression>
                            <name>Red Alarm on router {HOSTNAME}</name>
                            <status>DISABLED</status>
                            <priority>HIGH</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <uuid>7da222bd64084f1da36aa23b48559ef4</uuid>
                    <name>jnxYellowAlarmState</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.4.1.2636.3.4.2.2.1.0</snmp_oid>
                    <key>jnxYellowAlarmState</key>
                    <delay>60</delay>
                    <tags>
                        <tag>
                            <tag>Application</tag>
                            <value>Device Health</value>
                        </tag>
                    </tags>
                    <triggers>
                        <trigger>
                            <uuid>4f1d39cbb12b40b6b7f1265a026c9450</uuid>
                            <expression>last(/_ Template Juniper BGP/jnxYellowAlarmState)&lt;&gt;2</expression>
                            <name>Yellow Alarm on router {HOSTNAME}</name>
                            <status>DISABLED</status>
                            <priority>AVERAGE</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <uuid>f30b26eca4a54e8ab864aa67ad1b983b</uuid>
                    <name>Uptime</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>.1.3.6.1.2.1.1.3.0</snmp_oid>
                    <key>Uptime</key>
                    <delay>60</delay>
                    <units>s</units>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <parameters>
                                <parameter>0.01</parameter>
                            </parameters>
                        </step>
                    </preprocessing>
                    <tags>
                        <tag>
                            <tag>Application</tag>
                            <value>Device Health</value>
                        </tag>
                    </tags>
                    <triggers>
                        <trigger>
                            <uuid>18b11df7017f4d7793adc0478736a6d7</uuid>
                            <expression>last(/_ Template Juniper BGP/Uptime)&lt;600</expression>
                            <name>{HOSTNAME} Has just been restarted</name>
                            <priority>AVERAGE</priority>
                        </trigger>
                    </triggers>
                </item>
            </items>
            <discovery_rules>
                <discovery_rule>
                    <uuid>694e3703afc54a3da105a7fdf1ee4720</uuid>
                    <name>JunOS BGP4</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#PEERADDR}, .1.3.6.1.4.1.2636.5.1.1.2.1.1.1.11, {#PREFXTBL}, .1.3.6.1.4.1.2636.5.1.1.2.1.1.1.14, {#ADDRTYPE}, .1.3.6.1.4.1.2636.5.1.1.2.1.1.1.10, {#ASNUM}, .1.3.6.1.4.1.2636.5.1.1.2.1.1.1.13]</snmp_oid>
                    <key>discovery-JunOS-BGP</key>
                    <lifetime>5d</lifetime>
                    <item_prototypes>
                        <item_prototype>
                            <uuid>69bf7d7512a24212a9acaf7df36816d7</uuid>
                            <name>Established time {#PEERADDR}//{#ASNUM}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.2636.5.1.1.2.4.1.1.1.{#SNMPINDEX}</snmp_oid>
                            <key>jnxBgpM2PeerFsmEstablishedTime[{#ASNUM}, {#PEERADDR}]</key>
                            <delay>300</delay>
                            <units>uptime</units>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>BGP4</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>3f6cfc7f1a6c4696b04d1c8e95f1da87</uuid>
                            <name>Last recieved error {#PEERADDR}{#ASNUM}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.2636.5.1.1.2.2.1.1.1.{#SNMPINDEX}</snmp_oid>
                            <key>jnxBgpM2PeerLastErrorReceived[{#ASNUM}, {#PEERADDR}]</key>
                            <delay>300</delay>
                            <discover>NO_DISCOVER</discover>
                            <valuemap>
                                <name>BgpPeerError</name>
                            </valuemap>
                            <preprocessing>
                                <step>
                                    <type>HEX_TO_DECIMAL</type>
                                    <parameters>
                                        <parameter/>
                                    </parameters>
                                </step>
                            </preprocessing>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>BGP4</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>97717163af5d48718495e09f29e813cd</uuid>
                            <name>Last sent error {#PEERADDR}{#ASNUM}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.2636.5.1.1.2.2.1.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>jnxBgpM2PeerLastErrorSent[{#ASNUM}, {#PEERADDR}]</key>
                            <delay>300</delay>
                            <discover>NO_DISCOVER</discover>
                            <valuemap>
                                <name>BgpPeerError</name>
                            </valuemap>
                            <preprocessing>
                                <step>
                                    <type>HEX_TO_DECIMAL</type>
                                    <parameters>
                                        <parameter/>
                                    </parameters>
                                </step>
                            </preprocessing>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>BGP4</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>8ee9b46b598b4f4c8c711f25c9c02723</uuid>
                            <name>Remote AS for peer {#PEERADDR}//{#ASNUM}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.2636.5.1.1.2.1.1.1.13.{#SNMPINDEX}</snmp_oid>
                            <key>jnxBgpM2PeerRemoteAs[{#ASNUM}, {#PEERADDR}]</key>
                            <delay>120</delay>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>BGP4</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>f8cac716657a4a0a8fd0788a0acab67e</uuid>
                            <name>Operational status {#PEERADDR}//{#ASNUM}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.2636.5.1.1.2.1.1.1.2.{#SNMPINDEX}</snmp_oid>
                            <key>jnxBgpM2PeerState[{#ASNUM}, {#PEERADDR}]</key>
                            <delay>120</delay>
                            <valuemap>
                                <name>BgpPeerState</name>
                            </valuemap>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>BGP4</value>
                                </tag>
                            </tags>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <uuid>7bf1872c6d9744b6b3d7c3b800821789</uuid>
                                    <expression>last(/_ Template Juniper BGP/jnxBgpM2PeerState[{#ASNUM}, {#PEERADDR}],#3)&lt;&gt;6</expression>
                                    <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                                    <recovery_expression>last(/_ Template Juniper BGP/jnxBgpM2PeerState[{#ASNUM}, {#PEERADDR}],#3)=6</recovery_expression>
                                    <name>{HOSTNAME} BGP AS{#ASNUM} peer {#PEERADDR} is DOWN</name>
                                    <priority>AVERAGE</priority>
                                    <manual_close>YES</manual_close>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <uuid>891fd8762bb8472e9df9cb407d54dda8</uuid>
                            <name>Active receiving prefixes {#PEERADDR}{#ASNUM}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.2636.5.1.1.2.1.1.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>jnxBgpM2PeerStatus[{#ASNUM}, {#PEERADDR}]</key>
                            <delay>300</delay>
                            <discover>NO_DISCOVER</discover>
                            <valuemap>
                                <name>BgpPeerAdminStatus</name>
                            </valuemap>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>BGP4</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>2fbc7f9a96f94d24a951f9f268491411</uuid>
                            <name>Accepted receiving prefixes {#PEERADDR}//{#ASNUM}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.2636.5.1.1.2.6.2.1.8.{#PREFXTBL}.{#ADDRTYPE}.1</snmp_oid>
                            <key>jnxBgpM2PrefixInPrefixesAccepted[{#ASNUM}, {#PEERADDR}]</key>
                            <delay>120</delay>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>BGP4</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>dce4267be3a140668664c05d0ad864c1</uuid>
                            <name>Active receiving prefixes {#PEERADDR}{#ASNUM}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.2636.5.1.1.2.6.2.1.11.{#PREFXTBL}.{#ADDRTYPE}.1</snmp_oid>
                            <key>jnxBgpM2PrefixInPrefixesActive[{#ASNUM}, {#PEERADDR}]</key>
                            <delay>120</delay>
                            <discover>NO_DISCOVER</discover>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>BGP4</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>70cf30923dcd4aeeb36376c3fc3de1bd</uuid>
                            <name>Rejected receiving prefixes {#PEERADDR}{#ASNUM}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.2636.5.1.1.2.6.2.1.9.{#PREFXTBL}.{#ADDRTYPE}.1</snmp_oid>
                            <key>jnxBgpM2PrefixInPrefixesRejected[{#ASNUM}, {#PEERADDR}]</key>
                            <delay>120</delay>
                            <discover>NO_DISCOVER</discover>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>BGP4</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>8a8ab4cd6dbd40179cddc7b546f8f0a0</uuid>
                            <name>All receiving prefixes {#PEERADDR}{#ASNUM}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.2636.5.1.1.2.6.2.1.7.{#PREFXTBL}.{#ADDRTYPE}.1</snmp_oid>
                            <key>jnxBgpM2PrefixInPrefixes[{#ASNUM}, {#PEERADDR}]</key>
                            <delay>120</delay>
                            <discover>NO_DISCOVER</discover>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>BGP4</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>63bc9801112f416e85b252e1d07b97ae</uuid>
                            <name>All advertising prefixes {#PEERADDR}//{#ASNUM}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>.1.3.6.1.4.1.2636.5.1.1.2.6.2.1.10.{#PREFXTBL}.{#ADDRTYPE}.1</snmp_oid>
                            <key>jnxBgpM2PrefixOutPrefixes[{#ASNUM}, {#PEERADDR}]</key>
                            <delay>120</delay>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>BGP4</value>
                                </tag>
                            </tags>
                        </item_prototype>
                    </item_prototypes>
                    <trigger_prototypes>
                        <trigger_prototype>
                            <uuid>0a04137dd5dd49e19d14e7f8be5af4a0</uuid>
                            <expression>find(/_ Template Juniper BGP/jnxBgpM2PeerRemoteAs[{#ASNUM}, {#PEERADDR}],,&quot;regexp&quot;,&quot;{$BGP_PEER_AS}&quot;)=0 and last(/_ Template Juniper BGP/jnxBgpM2PeerState[{#ASNUM}, {#PEERADDR}])=6 and last(/_ Template Juniper BGP/jnxBgpM2PrefixOutPrefixes[{#ASNUM}, {#PEERADDR}])&lt;0.8*avg(/_ Template Juniper BGP/jnxBgpM2PrefixOutPrefixes[{#ASNUM}, {#PEERADDR}],86400s)</expression>
                            <name>{HOSTNAME} BGP AS{#ASNUM} peer {#PEERADDR} has lost more than 20% of advertising prefixes</name>
                            <status>DISABLED</status>
                            <discover>NO_DISCOVER</discover>
                            <priority>WARNING</priority>
                        </trigger_prototype>
                        <trigger_prototype>
                            <uuid>027c50b2f7da490fa9bcb3c07c2faf8a</uuid>
                            <expression>find(/_ Template Juniper BGP/jnxBgpM2PeerRemoteAs[{#ASNUM}, {#PEERADDR}],,&quot;regexp&quot;,&quot;{$BGP_PEER_AS}&quot;)=1 and last(/_ Template Juniper BGP/jnxBgpM2PeerState[{#ASNUM}, {#PEERADDR}])=6 and last(/_ Template Juniper BGP/jnxBgpM2PrefixOutPrefixes[{#ASNUM}, {#PEERADDR}])&lt;0.8*avg(/_ Template Juniper BGP/jnxBgpM2PrefixOutPrefixes[{#ASNUM}, {#PEERADDR}],86400s)</expression>
                            <name>{HOSTNAME} BGP AS{#ASNUM} peer {#PEERADDR} has lost more than 20% of advertising prefixes</name>
                            <status>DISABLED</status>
                            <discover>NO_DISCOVER</discover>
                            <priority>AVERAGE</priority>
                        </trigger_prototype>
                        <trigger_prototype>
                            <uuid>da840240641c46a3be551da9ec9eb3d4</uuid>
                            <expression>find(/_ Template Juniper BGP/jnxBgpM2PeerRemoteAs[{#ASNUM}, {#PEERADDR}],,&quot;regexp&quot;,&quot;{$BGP_PEER_AS}&quot;)=0 and last(/_ Template Juniper BGP/jnxBgpM2PeerState[{#ASNUM}, {#PEERADDR}])=6 and last(/_ Template Juniper BGP/jnxBgpM2PrefixInPrefixesAccepted[{#ASNUM}, {#PEERADDR}])&lt;0.8*avg(/_ Template Juniper BGP/jnxBgpM2PrefixInPrefixesAccepted[{#ASNUM}, {#PEERADDR}],86400s)</expression>
                            <name>{HOSTNAME} BGP AS{#ASNUM} peer {#PEERADDR} has lost more than 20% of receiving prefixes</name>
                            <status>DISABLED</status>
                            <discover>NO_DISCOVER</discover>
                            <priority>WARNING</priority>
                        </trigger_prototype>
                        <trigger_prototype>
                            <uuid>942e504275db4190a17215afe4223eee</uuid>
                            <expression>find(/_ Template Juniper BGP/jnxBgpM2PeerRemoteAs[{#ASNUM}, {#PEERADDR}],,&quot;regexp&quot;,&quot;{$BGP_PEER_AS}&quot;)=1 and last(/_ Template Juniper BGP/jnxBgpM2PeerState[{#ASNUM}, {#PEERADDR}])=6 and last(/_ Template Juniper BGP/jnxBgpM2PrefixInPrefixesAccepted[{#ASNUM}, {#PEERADDR}])&lt;0.8*avg(/_ Template Juniper BGP/jnxBgpM2PrefixInPrefixesAccepted[{#ASNUM}, {#PEERADDR}],86400s)</expression>
                            <name>{HOSTNAME} BGP AS{#ASNUM} peer {#PEERADDR} has lost more than 20% of receiving prefixes</name>
                            <status>DISABLED</status>
                            <discover>NO_DISCOVER</discover>
                            <priority>AVERAGE</priority>
                        </trigger_prototype>
                        <trigger_prototype>
                            <uuid>617bc9017af84033bfdfb0fe896d9481</uuid>
                            <expression>find(/_ Template Juniper BGP/jnxBgpM2PeerRemoteAs[{#ASNUM}, {#PEERADDR}],,&quot;regexp&quot;,&quot;{$BGP_PEER_AS}&quot;)=0 and last(/_ Template Juniper BGP/jnxBgpM2PeerState[{#ASNUM}, {#PEERADDR}],#3)&lt;&gt;6 and last(/_ Template Juniper BGP/jnxBgpM2PeerStatus[{#ASNUM}, {#PEERADDR}])=2</expression>
                            <name>{HOSTNAME} BGP AS{#ASNUM} peer {#PEERADDR} is DOWN</name>
                            <status>DISABLED</status>
                            <discover>NO_DISCOVER</discover>
                            <priority>WARNING</priority>
                            <description>Trigger for peer that has a remote AS not matching {$BGP_PEER_AS} macro.</description>
                        </trigger_prototype>
                        <trigger_prototype>
                            <uuid>d6b6d88737ae4b288c8597093e31db2a</uuid>
                            <expression>find(/_ Template Juniper BGP/jnxBgpM2PeerRemoteAs[{#ASNUM}, {#PEERADDR}],,&quot;regexp&quot;,&quot;{$BGP_PEER_AS}&quot;)=0 and last(/_ Template Juniper BGP/jnxBgpM2PeerState[{#ASNUM}, {#PEERADDR}])=6 and last(/_ Template Juniper BGP/jnxBgpM2PrefixInPrefixes[{#ASNUM}, {#PEERADDR}])=0</expression>
                            <name>{HOSTNAME} No prefixes received for AS{#ASNUM} peer {#PEERADDR}</name>
                            <status>DISABLED</status>
                            <discover>NO_DISCOVER</discover>
                            <priority>WARNING</priority>
                        </trigger_prototype>
                        <trigger_prototype>
                            <uuid>4db06045e5ec4b5e9582da6ef65b71a9</uuid>
                            <expression>find(/_ Template Juniper BGP/jnxBgpM2PeerRemoteAs[{#ASNUM}, {#PEERADDR}],,&quot;regexp&quot;,&quot;{$BGP_PEER_AS}&quot;)=1 and last(/_ Template Juniper BGP/jnxBgpM2PeerState[{#ASNUM}, {#PEERADDR}])=6 and last(/_ Template Juniper BGP/jnxBgpM2PrefixInPrefixes[{#ASNUM}, {#PEERADDR}])=0</expression>
                            <name>{HOSTNAME} No prefixes received for AS{#ASNUM} peer {#PEERADDR}</name>
                            <status>DISABLED</status>
                            <discover>NO_DISCOVER</discover>
                            <priority>AVERAGE</priority>
                        </trigger_prototype>
                    </trigger_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <uuid>5987c998639c43faab77986cc951a54e</uuid>
                            <name>AS{#ASNUM} prefix peer {#PEERADDR}</name>
                            <graph_items>
                                <graph_item>
                                    <drawtype>BOLD_LINE</drawtype>
                                    <color>CCCC00</color>
                                    <item>
                                        <host>_ Template Juniper BGP</host>
                                        <key>jnxBgpM2PrefixInPrefixes[{#ASNUM}, {#PEERADDR}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <drawtype>BOLD_LINE</drawtype>
                                    <color>66FF66</color>
                                    <item>
                                        <host>_ Template Juniper BGP</host>
                                        <key>jnxBgpM2PrefixInPrefixesAccepted[{#ASNUM}, {#PEERADDR}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>2</sortorder>
                                    <drawtype>BOLD_LINE</drawtype>
                                    <color>FF3333</color>
                                    <item>
                                        <host>_ Template Juniper BGP</host>
                                        <key>jnxBgpM2PrefixInPrefixesRejected[{#ASNUM}, {#PEERADDR}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>3</sortorder>
                                    <drawtype>BOLD_LINE</drawtype>
                                    <color>0000CC</color>
                                    <item>
                                        <host>_ Template Juniper BGP</host>
                                        <key>jnxBgpM2PrefixOutPrefixes[{#ASNUM}, {#PEERADDR}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>4</sortorder>
                                    <drawtype>FILLED_REGION</drawtype>
                                    <color>006600</color>
                                    <item>
                                        <host>_ Template Juniper BGP</host>
                                        <key>jnxBgpM2PrefixInPrefixesActive[{#ASNUM}, {#PEERADDR}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                            <discover>NO_DISCOVER</discover>
                        </graph_prototype>
                    </graph_prototypes>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <parameters>
                                <parameter>json = JSON.parse(value);

json.forEach(function (item, index, array) {
    var ip = item[&quot;{#PEERADDR}&quot;];

    parts = ip.trim().split(' ');

    if (parts.length === 4) {
        for (var i = 0; i &lt; parts.length; ++i) {
            parts[i] = parseInt(parts[i], 16);
        }

        ip = parts.join('.');
    } else {
        var str = parts.join('');
        var parts = str.match(/.{1,4}/g);
        ip = parts.join(&quot;:&quot;);
        ip = ip.replace(/\b(?:0+:){2,}/, ':')
               .split(':')
	       .map(function(octet) {
                   return  octet.replace(/\b0+/g, '');
               })
               .join(':')
               .toLowerCase();
    }

    array[index][&quot;{#PEERADDR}&quot;] = ip;
});

return JSON.stringify(json);</parameter>
                            </parameters>
                        </step>
                    </preprocessing>
                </discovery_rule>
            </discovery_rules>
            <tags>
                <tag>
                    <tag>class</tag>
                    <value>network</value>
                </tag>
                <tag>
                    <tag>target</tag>
                    <value>juniper</value>
                </tag>
            </tags>
            <macros>
                <macro>
                    <macro>{$BGP_PEER_AS}</macro>
                    <value>{#ASNUM}</value>
                </macro>
                <macro>
                    <macro>{$SNMP_COMMUNITY}</macro>
                    <value>brcsnmp</value>
                </macro>
            </macros>
            <dashboards>
                <dashboard>
                    <uuid>d9394d12d7434ae3ae5f3c7f9a29f155</uuid>
                    <name>MX</name>
                    <pages>
                        <page>
                            <widgets>
                                <widget>
                                    <type>GRAPH_PROTOTYPE</type>
                                    <width>24</width>
                                    <height>5</height>
                                    <fields>
                                        <field>
                                            <type>INTEGER</type>
                                            <name>source_type</name>
                                            <value>2</value>
                                        </field>
                                        <field>
                                            <type>INTEGER</type>
                                            <name>columns</name>
                                            <value>1</value>
                                        </field>
                                        <field>
                                            <type>INTEGER</type>
                                            <name>rows</name>
                                            <value>1</value>
                                        </field>
                                        <field>
                                            <type>GRAPH_PROTOTYPE</type>
                                            <name>graphid</name>
                                            <value>
                                                <host>_ Template Juniper BGP</host>
                                                <name>AS{#ASNUM} prefix peer {#PEERADDR}</name>
                                            </value>
                                        </field>
                                    </fields>
                                </widget>
                            </widgets>
                        </page>
                    </pages>
                </dashboard>
            </dashboards>
            <valuemaps>
                <valuemap>
                    <uuid>0943d45f9f80419590f93ec75d0e735b</uuid>
                    <name>BgpPeerAdminStatus</name>
                    <mappings>
                        <mapping>
                            <value>1</value>
                            <newvalue>stop</newvalue>
                        </mapping>
                        <mapping>
                            <value>2</value>
                            <newvalue>start</newvalue>
                        </mapping>
                    </mappings>
                </valuemap>
                <valuemap>
                    <uuid>a2e0ef21004b44f0b0a020c4e1f8fade</uuid>
                    <name>BgpPeerError</name>
                    <mappings>
                        <mapping>
                            <value>0</value>
                            <newvalue>None</newvalue>
                        </mapping>
                        <mapping>
                            <value>256</value>
                            <newvalue>Message Header Error</newvalue>
                        </mapping>
                        <mapping>
                            <value>257</value>
                            <newvalue>Connection Not Synchronized</newvalue>
                        </mapping>
                        <mapping>
                            <value>258</value>
                            <newvalue>Bad Message Length</newvalue>
                        </mapping>
                        <mapping>
                            <value>259</value>
                            <newvalue>Bad Message Type</newvalue>
                        </mapping>
                        <mapping>
                            <value>512</value>
                            <newvalue>Open Message Error</newvalue>
                        </mapping>
                        <mapping>
                            <value>513</value>
                            <newvalue>Unsupported Version Number</newvalue>
                        </mapping>
                        <mapping>
                            <value>514</value>
                            <newvalue>Bad Peer AS</newvalue>
                        </mapping>
                        <mapping>
                            <value>515</value>
                            <newvalue>Bad BGP Identifier</newvalue>
                        </mapping>
                        <mapping>
                            <value>516</value>
                            <newvalue>Unsupported Optional Parameter</newvalue>
                        </mapping>
                        <mapping>
                            <value>517</value>
                            <newvalue>Authentication Failure</newvalue>
                        </mapping>
                        <mapping>
                            <value>518</value>
                            <newvalue>Unacceptable Hold Time</newvalue>
                        </mapping>
                        <mapping>
                            <value>768</value>
                            <newvalue>Update Message Error</newvalue>
                        </mapping>
                        <mapping>
                            <value>769</value>
                            <newvalue>Malformed Attribute List</newvalue>
                        </mapping>
                        <mapping>
                            <value>770</value>
                            <newvalue>Unrecognized Well-Known Attribute</newvalue>
                        </mapping>
                        <mapping>
                            <value>771</value>
                            <newvalue>Missing Well-Known Attribute</newvalue>
                        </mapping>
                        <mapping>
                            <value>772</value>
                            <newvalue>Attribute Flags Error</newvalue>
                        </mapping>
                        <mapping>
                            <value>773</value>
                            <newvalue>Attribute Length Error</newvalue>
                        </mapping>
                        <mapping>
                            <value>774</value>
                            <newvalue>Invalid Origin Attribute</newvalue>
                        </mapping>
                        <mapping>
                            <value>775</value>
                            <newvalue>AS Routing Loop</newvalue>
                        </mapping>
                        <mapping>
                            <value>776</value>
                            <newvalue>Invalid Next_Hop Attribute</newvalue>
                        </mapping>
                        <mapping>
                            <value>777</value>
                            <newvalue>Optional Attribute Error</newvalue>
                        </mapping>
                        <mapping>
                            <value>778</value>
                            <newvalue>Invalid Network Field</newvalue>
                        </mapping>
                        <mapping>
                            <value>779</value>
                            <newvalue>Malformed AS_Path</newvalue>
                        </mapping>
                        <mapping>
                            <value>1024</value>
                            <newvalue>Hold Timer Expired</newvalue>
                        </mapping>
                        <mapping>
                            <value>1280</value>
                            <newvalue>Finite State Machine Error</newvalue>
                        </mapping>
                        <mapping>
                            <value>1281</value>
                            <newvalue>Receive Unexpected Message in OpenSent State</newvalue>
                        </mapping>
                        <mapping>
                            <value>1282</value>
                            <newvalue>Receive Unexpected Message in OpenConfirm State</newvalue>
                        </mapping>
                        <mapping>
                            <value>1283</value>
                            <newvalue>Receive Unexpected Message in Established State</newvalue>
                        </mapping>
                        <mapping>
                            <value>1536</value>
                            <newvalue>Cease</newvalue>
                        </mapping>
                        <mapping>
                            <value>1537</value>
                            <newvalue>Maximum Number of Prefixes Reached</newvalue>
                        </mapping>
                        <mapping>
                            <value>1538</value>
                            <newvalue>Administrative Shutdown</newvalue>
                        </mapping>
                        <mapping>
                            <value>1539</value>
                            <newvalue>Peer De-configured</newvalue>
                        </mapping>
                        <mapping>
                            <value>1540</value>
                            <newvalue>Administrative Reset</newvalue>
                        </mapping>
                        <mapping>
                            <value>1541</value>
                            <newvalue>Connection Rejected</newvalue>
                        </mapping>
                        <mapping>
                            <value>1542</value>
                            <newvalue>Other Configuration Change</newvalue>
                        </mapping>
                        <mapping>
                            <value>1543</value>
                            <newvalue>Connection Collision Resolution</newvalue>
                        </mapping>
                        <mapping>
                            <value>1544</value>
                            <newvalue>Out of Resources</newvalue>
                        </mapping>
                    </mappings>
                </valuemap>
                <valuemap>
                    <uuid>9e7f6892cca7484eac90fe242e81431b</uuid>
                    <name>BgpPeerState</name>
                    <mappings>
                        <mapping>
                            <value>1</value>
                            <newvalue>Idle</newvalue>
                        </mapping>
                        <mapping>
                            <value>2</value>
                            <newvalue>Connect</newvalue>
                        </mapping>
                        <mapping>
                            <value>3</value>
                            <newvalue>Active</newvalue>
                        </mapping>
                        <mapping>
                            <value>4</value>
                            <newvalue>OpenSent</newvalue>
                        </mapping>
                        <mapping>
                            <value>5</value>
                            <newvalue>OpenConfirm</newvalue>
                        </mapping>
                        <mapping>
                            <value>6</value>
                            <newvalue>Established</newvalue>
                        </mapping>
                    </mappings>
                </valuemap>
            </valuemaps>
        </template>
        <template>
            <uuid>47a94a664234401f8f66fab00f982847</uuid>
            <template>_ Template Net Juniper-SW</template>
            <name>_ Template Net Juniper-SW</name>
            <description>Template Net Juniper

MIBs used:
EtherLike-MIB
JUNIPER-ALARM-MIB
HOST-RESOURCES-MIB
SNMPv2-MIB
JUNIPER-MIB
IF-MIB

Template tooling version used: 0.41</description>
            <groups>
                <group>
                    <name>Templates/Network devices</name>
                </group>
            </groups>
            <items>
                <item>
                    <uuid>a998c995ba8a4333ad96d9452f5db128</uuid>
                    <name>ICMP ping</name>
                    <type>SIMPLE</type>
                    <key>icmpping</key>
                    <history>1w</history>
                    <valuemap>
                        <name>Service state</name>
                    </valuemap>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>health</value>
                        </tag>
                        <tag>
                            <tag>component</tag>
                            <value>network</value>
                        </tag>
                    </tags>
                    <triggers>
                        <trigger>
                            <uuid>62958e2f23774973953173e867f2c500</uuid>
                            <expression>max(/_ Template Net Juniper-SW/icmpping,#3)=0</expression>
                            <name>Unavailable by ICMP ping</name>
                            <priority>HIGH</priority>
                            <description>Last three attempts returned timeout.  Please check device connectivity.</description>
                            <tags>
                                <tag>
                                    <tag>scope</tag>
                                    <value>availability</value>
                                </tag>
                            </tags>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <uuid>47da006167f54c03a2daa77597e1b74d</uuid>
                    <name>ICMP loss</name>
                    <type>SIMPLE</type>
                    <key>icmppingloss</key>
                    <history>1w</history>
                    <value_type>FLOAT</value_type>
                    <units>%</units>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>health</value>
                        </tag>
                        <tag>
                            <tag>component</tag>
                            <value>network</value>
                        </tag>
                    </tags>
                    <triggers>
                        <trigger>
                            <uuid>f72c589e04644078b1e2e7edc8eecbf0</uuid>
                            <expression>min(/_ Template Net Juniper-SW/icmppingloss,5m)&gt;{$ICMP_LOSS_WARN} and min(/_ Template Net Juniper-SW/icmppingloss,5m)&lt;100</expression>
                            <name>High ICMP ping loss</name>
                            <opdata>Loss: {ITEM.LASTVALUE1}</opdata>
                            <priority>WARNING</priority>
                            <dependencies>
                                <dependency>
                                    <name>Unavailable by ICMP ping</name>
                                    <expression>max(/_ Template Net Juniper-SW/icmpping,#3)=0</expression>
                                </dependency>
                            </dependencies>
                            <tags>
                                <tag>
                                    <tag>scope</tag>
                                    <value>availability</value>
                                </tag>
                                <tag>
                                    <tag>scope</tag>
                                    <value>performance</value>
                                </tag>
                            </tags>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <uuid>d06aabd402f848c5aac1a5fbe7bb2e52</uuid>
                    <name>ICMP response time</name>
                    <type>SIMPLE</type>
                    <key>icmppingsec</key>
                    <history>1w</history>
                    <value_type>FLOAT</value_type>
                    <units>s</units>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>health</value>
                        </tag>
                        <tag>
                            <tag>component</tag>
                            <value>network</value>
                        </tag>
                    </tags>
                    <triggers>
                        <trigger>
                            <uuid>b9f2b423df0a4fe89dd6ea4932939dc4</uuid>
                            <expression>avg(/_ Template Net Juniper-SW/icmppingsec,5m)&gt;{$ICMP_RESPONSE_TIME_WARN}</expression>
                            <name>High ICMP ping response time</name>
                            <opdata>Value: {ITEM.LASTVALUE1}</opdata>
                            <priority>WARNING</priority>
                            <dependencies>
                                <dependency>
                                    <name>High ICMP ping loss</name>
                                    <expression>min(/_ Template Net Juniper-SW/icmppingloss,5m)&gt;{$ICMP_LOSS_WARN} and min(/_ Template Net Juniper-SW/icmppingloss,5m)&lt;100</expression>
                                </dependency>
                                <dependency>
                                    <name>Unavailable by ICMP ping</name>
                                    <expression>max(/_ Template Net Juniper-SW/icmpping,#3)=0</expression>
                                </dependency>
                            </dependencies>
                            <tags>
                                <tag>
                                    <tag>scope</tag>
                                    <value>availability</value>
                                </tag>
                                <tag>
                                    <tag>scope</tag>
                                    <value>performance</value>
                                </tag>
                            </tags>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <uuid>6ba9a8dec09849fba3ffe92ae3a11da3</uuid>
                    <name>SNMP traps (fallback)</name>
                    <type>SNMP_TRAP</type>
                    <key>snmptrap.fallback</key>
                    <history>2w</history>
                    <trends>0</trends>
                    <value_type>LOG</value_type>
                    <description>The item is used to collect all SNMP traps unmatched by other snmptrap items</description>
                    <logtimefmt>hh:mm:sszyyyy/MM/dd</logtimefmt>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>network</value>
                        </tag>
                    </tags>
                </item>
                <item>
                    <uuid>8b0a70aec8a54066b0adba471e4e4d77</uuid>
                    <name>System contact details</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.2.1.1.4.0</snmp_oid>
                    <key>system.contact[sysContact.0]</key>
                    <delay>15m</delay>
                    <history>2w</history>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <description>MIB: SNMPv2-MIB
The textual identification of the contact person for this managed node, together with information on how to contact this person.  If no contact information is known, the value is the zero-length string.</description>
                    <inventory_link>CONTACT</inventory_link>
                    <preprocessing>
                        <step>
                            <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                            <parameters>
                                <parameter>12h</parameter>
                            </parameters>
                        </step>
                    </preprocessing>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>system</value>
                        </tag>
                    </tags>
                </item>
                <item>
                    <uuid>2d0b70b3ead546bca755321ec998df2b</uuid>
                    <name>System description</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.2.1.1.1.0</snmp_oid>
                    <key>system.descr[sysDescr.0]</key>
                    <delay>15m</delay>
                    <history>2w</history>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <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.</description>
                    <preprocessing>
                        <step>
                            <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                            <parameters>
                                <parameter>12h</parameter>
                            </parameters>
                        </step>
                    </preprocessing>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>system</value>
                        </tag>
                    </tags>
                </item>
                <item>
                    <uuid>e0b275babbb7461bb2cd195a21855a5d</uuid>
                    <name>Hardware model name</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.2636.3.1.2.0</snmp_oid>
                    <key>system.hw.model</key>
                    <delay>1h</delay>
                    <history>2w</history>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <description>MIB: JUNIPER-MIB
The name, model, or detailed description of the box,indicating which product the box is about, for example 'M40'.</description>
                    <inventory_link>MODEL</inventory_link>
                    <preprocessing>
                        <step>
                            <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                            <parameters>
                                <parameter>1d</parameter>
                            </parameters>
                        </step>
                    </preprocessing>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>system</value>
                        </tag>
                    </tags>
                </item>
                <item>
                    <uuid>8bdf5dd7b92e4c69ba6ec56928ac05e1</uuid>
                    <name>Hardware serial number</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.2636.3.1.3.0</snmp_oid>
                    <key>system.hw.serialnumber</key>
                    <delay>1h</delay>
                    <history>2w</history>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <description>MIB: JUNIPER-MIB
The serial number of this subject, blank if unknown or unavailable.</description>
                    <inventory_link>SERIALNO_A</inventory_link>
                    <preprocessing>
                        <step>
                            <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                            <parameters>
                                <parameter>1d</parameter>
                            </parameters>
                        </step>
                    </preprocessing>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>system</value>
                        </tag>
                    </tags>
                    <triggers>
                        <trigger>
                            <uuid>daeb59f56ebf4276a6fcd036d6382df0</uuid>
                            <expression>last(/_ Template Net Juniper-SW/system.hw.serialnumber,#1)&lt;&gt;last(/_ Template Net Juniper-SW/system.hw.serialnumber,#2) and length(last(/_ Template Net Juniper-SW/system.hw.serialnumber))&gt;0</expression>
                            <name>Device has been replaced</name>
                            <event_name>Device has been replaced (new serial number received)</event_name>
                            <priority>INFO</priority>
                            <description>Device serial number has changed. Ack to close</description>
                            <manual_close>YES</manual_close>
                            <tags>
                                <tag>
                                    <tag>scope</tag>
                                    <value>notice</value>
                                </tag>
                            </tags>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <uuid>37eed668081547f1b1301c9ce75613dd</uuid>
                    <name>Uptime (hardware)</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.2.1.25.1.1.0</snmp_oid>
                    <key>system.hw.uptime[hrSystemUptime.0]</key>
                    <delay>30s</delay>
                    <history>2w</history>
                    <trends>0d</trends>
                    <units>uptime</units>
                    <description>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.</description>
                    <preprocessing>
                        <step>
                            <type>CHECK_NOT_SUPPORTED</type>
                            <parameters>
                                <parameter/>
                            </parameters>
                            <error_handler>CUSTOM_VALUE</error_handler>
                            <error_handler_params>0</error_handler_params>
                        </step>
                        <step>
                            <type>MULTIPLIER</type>
                            <parameters>
                                <parameter>0.01</parameter>
                            </parameters>
                        </step>
                    </preprocessing>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>system</value>
                        </tag>
                    </tags>
                </item>
                <item>
                    <uuid>b01cb727720448dd8a3f81b030e6da8a</uuid>
                    <name>System location</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.2.1.1.6.0</snmp_oid>
                    <key>system.location[sysLocation.0]</key>
                    <delay>15m</delay>
                    <history>2w</history>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <description>MIB: SNMPv2-MIB
The physical location of this node (e.g., `telephone closet, 3rd floor').  If the location is unknown, the value is the zero-length string.</description>
                    <inventory_link>LOCATION</inventory_link>
                    <preprocessing>
                        <step>
                            <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                            <parameters>
                                <parameter>12h</parameter>
                            </parameters>
                        </step>
                    </preprocessing>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>system</value>
                        </tag>
                    </tags>
                </item>
                <item>
                    <uuid>4474d6a825c84b66a01c3a5ae6476163</uuid>
                    <name>System name</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.2.1.1.5.0</snmp_oid>
                    <key>system.name</key>
                    <delay>15m</delay>
                    <history>2w</history>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <description>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 the zero-length string.</description>
                    <inventory_link>NAME</inventory_link>
                    <preprocessing>
                        <step>
                            <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                            <parameters>
                                <parameter>12h</parameter>
                            </parameters>
                        </step>
                    </preprocessing>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>system</value>
                        </tag>
                    </tags>
                    <triggers>
                        <trigger>
                            <uuid>fd2500c98d304ebf8a0965cf2be6eab9</uuid>
                            <expression>last(/_ Template Net Juniper-SW/system.name,#1)&lt;&gt;last(/_ Template Net Juniper-SW/system.name,#2) and length(last(/_ Template Net Juniper-SW/system.name))&gt;0</expression>
                            <name>System name has changed</name>
                            <event_name>System name has changed (new name: {ITEM.VALUE})</event_name>
                            <priority>INFO</priority>
                            <description>System name has changed. Ack to close.</description>
                            <manual_close>YES</manual_close>
                            <tags>
                                <tag>
                                    <tag>scope</tag>
                                    <value>notice</value>
                                </tag>
                                <tag>
                                    <tag>scope</tag>
                                    <value>security</value>
                                </tag>
                            </tags>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <uuid>52f9bb275300474e9f03da1142852173</uuid>
                    <name>Uptime (network)</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.2.1.1.3.0</snmp_oid>
                    <key>system.net.uptime[sysUpTime.0]</key>
                    <delay>30s</delay>
                    <history>2w</history>
                    <trends>0d</trends>
                    <units>uptime</units>
                    <description>MIB: SNMPv2-MIB
The time (in hundredths of a second) since the network management portion of the system was last re-initialized.</description>
                    <preprocessing>
                        <step>
                            <type>MULTIPLIER</type>
                            <parameters>
                                <parameter>0.01</parameter>
                            </parameters>
                        </step>
                    </preprocessing>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>system</value>
                        </tag>
                    </tags>
                </item>
                <item>
                    <uuid>ad29c55e495447158ff1f00ef5f88a7c</uuid>
                    <name>System object ID</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.2.1.1.2.0</snmp_oid>
                    <key>system.objectid[sysObjectID.0]</key>
                    <delay>15m</delay>
                    <history>2w</history>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <description>MIB: SNMPv2-MIB
The vendor's authoritative identification of the network management subsystem contained in the entity.  This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed.  For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'.</description>
                    <preprocessing>
                        <step>
                            <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                            <parameters>
                                <parameter>12h</parameter>
                            </parameters>
                        </step>
                    </preprocessing>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>system</value>
                        </tag>
                    </tags>
                </item>
                <item>
                    <uuid>16e765cec5d84e4797add3f4863ca132</uuid>
                    <name>Overall system health status</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.2636.3.4.2.3.1.0</snmp_oid>
                    <key>system.status[jnxRedAlarmState.0]</key>
                    <delay>30s</delay>
                    <history>2w</history>
                    <trends>0d</trends>
                    <description>MIB: JUNIPER-ALARM-MIB
The red alarm indication on the craft interface panel.
The red alarm is on when there is some system
failure or power supply failure or the system
is experiencing a hardware malfunction or some
threshold is being exceeded.

This red alarm state could be turned off by the
ACO/LT (Alarm Cut Off / Lamp Test) button on the
front panel module.</description>
                    <valuemap>
                        <name>JUNIPER-ALARM-MIB::jnxRedAlarmState</name>
                    </valuemap>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>system</value>
                        </tag>
                    </tags>
                    <triggers>
                        <trigger>
                            <uuid>92dbe395faf84af088ab6af968f7bb5f</uuid>
                            <expression>count(/_ Template Net Juniper-SW/system.status[jnxRedAlarmState.0],#1,&quot;eq&quot;,&quot;{$HEALTH_CRIT_STATUS}&quot;)=1</expression>
                            <name>System status is in critical state</name>
                            <opdata>Current state: {ITEM.LASTVALUE1}</opdata>
                            <priority>HIGH</priority>
                            <description>Please check the device for errors</description>
                            <tags>
                                <tag>
                                    <tag>scope</tag>
                                    <value>availability</value>
                                </tag>
                                <tag>
                                    <tag>scope</tag>
                                    <value>performance</value>
                                </tag>
                            </tags>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <uuid>541c557703754ab1b80cce20c0ac7bdf</uuid>
                    <name>Operating system</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.2.1.1.1.0</snmp_oid>
                    <key>system.sw.os[sysDescr.0]</key>
                    <delay>1h</delay>
                    <history>2w</history>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <description>MIB: SNMPv2-MIB</description>
                    <inventory_link>OS</inventory_link>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <parameters>
                                <parameter>kernel (JUNOS [0-9a-zA-Z\.\-]+)</parameter>
                                <parameter>\1</parameter>
                            </parameters>
                        </step>
                        <step>
                            <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                            <parameters>
                                <parameter>1d</parameter>
                            </parameters>
                        </step>
                    </preprocessing>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>os</value>
                        </tag>
                    </tags>
                    <triggers>
                        <trigger>
                            <uuid>3b081d3a47e640809f1a85735c4d8d78</uuid>
                            <expression>last(/_ Template Net Juniper-SW/system.sw.os[sysDescr.0],#1)&lt;&gt;last(/_ Template Net Juniper-SW/system.sw.os[sysDescr.0],#2) and length(last(/_ Template Net Juniper-SW/system.sw.os[sysDescr.0]))&gt;0</expression>
                            <name>Operating system description has changed</name>
                            <priority>INFO</priority>
                            <description>Operating system description has changed. Possible reasons that system has been updated or replaced. Ack to close.</description>
                            <manual_close>YES</manual_close>
                            <dependencies>
                                <dependency>
                                    <name>System name has changed</name>
                                    <expression>last(/_ Template Net Juniper-SW/system.name,#1)&lt;&gt;last(/_ Template Net Juniper-SW/system.name,#2) and length(last(/_ Template Net Juniper-SW/system.name))&gt;0</expression>
                                </dependency>
                            </dependencies>
                            <tags>
                                <tag>
                                    <tag>scope</tag>
                                    <value>notice</value>
                                </tag>
                            </tags>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <uuid>78e8ccf8aeb646759b4fa967164d385e</uuid>
                    <name>SNMP agent availability</name>
                    <type>INTERNAL</type>
                    <key>zabbix[host,snmp,available]</key>
                    <history>7d</history>
                    <description>Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list.
Possible value:
0 - not available
1 - available
2 - unknown</description>
                    <valuemap>
                        <name>zabbix.host.available</name>
                    </valuemap>
                    <tags>
                        <tag>
                            <tag>component</tag>
                            <value>health</value>
                        </tag>
                        <tag>
                            <tag>component</tag>
                            <value>network</value>
                        </tag>
                    </tags>
                    <triggers>
                        <trigger>
                            <uuid>4a0c1cae6625463a8f06fe8f82da2f05</uuid>
                            <expression>max(/_ Template Net Juniper-SW/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0</expression>
                            <name>No SNMP data collection</name>
                            <opdata>Current state: {ITEM.LASTVALUE1}</opdata>
                            <priority>WARNING</priority>
                            <description>SNMP is not available for polling. Please check device connectivity and SNMP settings.</description>
                            <dependencies>
                                <dependency>
                                    <name>Unavailable by ICMP ping</name>
                                    <expression>max(/_ Template Net Juniper-SW/icmpping,#3)=0</expression>
                                </dependency>
                            </dependencies>
                            <tags>
                                <tag>
                                    <tag>scope</tag>
                                    <value>availability</value>
                                </tag>
                            </tags>
                        </trigger>
                    </triggers>
                </item>
            </items>
            <discovery_rules>
                <discovery_rule>
                    <uuid>c922e57cb0b14f2c86acb415313994ec</uuid>
                    <name>CPU and Memory Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.5]</snmp_oid>
                    <key>jnxOperatingTable.discovery</key>
                    <delay>1h</delay>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#SNMPVALUE}</macro>
                                <value>Routing Engine.*</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>Scanning JUNIPER-MIB::jnxOperatingTable for CPU and Memory
http://kb.juniper.net/InfoCenter/index?page=content&amp;id=KB17526&amp;actp=search. Filter limits results to Routing Engines</description>
                    <item_prototypes>
                        <item_prototype>
                            <uuid>08d9da25fb494f868f133734926fc457</uuid>
                            <name>{#SNMPVALUE}: CPU utilization</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.2636.3.1.13.1.8.{#SNMPINDEX}</snmp_oid>
                            <key>system.cpu.util[jnxOperatingCPU.{#SNMPINDEX}]</key>
                            <history>7d</history>
                            <value_type>FLOAT</value_type>
                            <units>%</units>
                            <description>MIB: JUNIPER-MIB
The CPU utilization in percentage 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</description>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>cpu</value>
                                </tag>
                            </tags>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <uuid>8ecdc9dee4bc42fb877351e2a6a01f5c</uuid>
                                    <expression>min(/_ Template Net Juniper-SW/system.cpu.util[jnxOperatingCPU.{#SNMPINDEX}],5m)&gt;{$CPU.UTIL.CRIT}</expression>
                                    <name>{#SNMPVALUE}: High CPU utilization</name>
                                    <event_name>{#SNMPVALUE}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)</event_name>
                                    <opdata>Current utilization: {ITEM.LASTVALUE1}</opdata>
                                    <priority>WARNING</priority>
                                    <description>CPU utilization is too high. The system might be slow to respond.</description>
                                    <tags>
                                        <tag>
                                            <tag>scope</tag>
                                            <value>performance</value>
                                        </tag>
                                    </tags>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <uuid>075c5271e6894c6eaae7574a6f6ff99a</uuid>
                            <name>{#SNMPVALUE}: Memory utilization</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.2636.3.1.13.1.11.{#SNMPINDEX}</snmp_oid>
                            <key>vm.memory.util[jnxOperatingBuffer.{#SNMPINDEX}]</key>
                            <history>7d</history>
                            <value_type>FLOAT</value_type>
                            <units>%</units>
                            <description>MIB: JUNIPER-MIB
The buffer pool utilization in percentage 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</description>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>memory</value>
                                </tag>
                            </tags>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <uuid>badddb88cc6b453992ebfcaeecc2a72e</uuid>
                                    <expression>min(/_ Template Net Juniper-SW/vm.memory.util[jnxOperatingBuffer.{#SNMPINDEX}],5m)&gt;{$MEMORY.UTIL.MAX}</expression>
                                    <name>{#SNMPVALUE}: High memory utilization</name>
                                    <event_name>{#SNMPVALUE}: High memory utilization (&gt;{$MEMORY.UTIL.MAX}% for 5m)</event_name>
                                    <priority>AVERAGE</priority>
                                    <description>The system is running out of free memory.</description>
                                    <tags>
                                        <tag>
                                            <tag>scope</tag>
                                            <value>capacity</value>
                                        </tag>
                                        <tag>
                                            <tag>scope</tag>
                                            <value>performance</value>
                                        </tag>
                                    </tags>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <uuid>526d4e8f17b74f6fbcc16461120e07f7</uuid>
                            <name>{#SNMPVALUE}: CPU utilization</name>
                            <ymin_type_1>FIXED</ymin_type_1>
                            <ymax_type_1>FIXED</ymax_type_1>
                            <graph_items>
                                <graph_item>
                                    <drawtype>GRADIENT_LINE</drawtype>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>_ Template Net Juniper-SW</host>
                                        <key>system.cpu.util[jnxOperatingCPU.{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                        <graph_prototype>
                            <uuid>340662da722742cf83ff9b8715851836</uuid>
                            <name>{#SNMPVALUE}: Memory utilization</name>
                            <ymin_type_1>FIXED</ymin_type_1>
                            <ymax_type_1>FIXED</ymax_type_1>
                            <graph_items>
                                <graph_item>
                                    <drawtype>GRADIENT_LINE</drawtype>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>_ Template Net Juniper-SW</host>
                                        <key>vm.memory.util[jnxOperatingBuffer.{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <uuid>ac0939af12e743ad814e00c095f4c576</uuid>
                    <name>FAN Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.5.4]</snmp_oid>
                    <key>jnxOperatingTable.discovery.fans</key>
                    <delay>1h</delay>
                    <description>Scanning JUNIPER-MIB::jnxOperatingTable for Fans</description>
                    <item_prototypes>
                        <item_prototype>
                            <uuid>511808d6e614457192bac97f6ba71f69</uuid>
                            <name>{#SNMPVALUE}: Fan status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.2636.3.1.13.1.6.4.{#SNMPINDEX}</snmp_oid>
                            <key>sensor.fan.status[jnxOperatingState.4.{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <history>2w</history>
                            <trends>0d</trends>
                            <description>MIB: JUNIPER-MIB</description>
                            <valuemap>
                                <name>JUNIPER-ALARM-MIB::jnxOperatingState</name>
                            </valuemap>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>fan</value>
                                </tag>
                            </tags>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <uuid>ae35f1c5cae54c5a955e2eb548f02d9e</uuid>
                                    <expression>count(/_ Template Net Juniper-SW/sensor.fan.status[jnxOperatingState.4.{#SNMPINDEX}],#1,&quot;eq&quot;,&quot;{$FAN_CRIT_STATUS}&quot;)=1</expression>
                                    <name>{#SNMPVALUE}: Fan is in critical state</name>
                                    <opdata>Current state: {ITEM.LASTVALUE1}</opdata>
                                    <priority>AVERAGE</priority>
                                    <description>Please check the fan unit</description>
                                    <tags>
                                        <tag>
                                            <tag>scope</tag>
                                            <value>availability</value>
                                        </tag>
                                        <tag>
                                            <tag>scope</tag>
                                            <value>performance</value>
                                        </tag>
                                    </tags>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <uuid>80102c298be14ce7a78e754f23cba4bd</uuid>
                    <name>PSU Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.5.2]</snmp_oid>
                    <key>jnxOperatingTable.discovery.psu</key>
                    <delay>1h</delay>
                    <description>Scanning JUNIPER-MIB::jnxOperatingTable for Power Supplies</description>
                    <item_prototypes>
                        <item_prototype>
                            <uuid>34446a1f084648eeaaf4c29797495e63</uuid>
                            <name>{#SNMPVALUE}: Power supply status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.2636.3.1.13.1.6.2.{#SNMPINDEX}</snmp_oid>
                            <key>sensor.psu.status[jnxOperatingState.2.{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <history>2w</history>
                            <trends>0d</trends>
                            <description>MIB: JUNIPER-MIB
If they 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 the 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</description>
                            <valuemap>
                                <name>JUNIPER-ALARM-MIB::jnxOperatingState</name>
                            </valuemap>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>power</value>
                                </tag>
                            </tags>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <uuid>34cd4441b0604537a67f6f4aec7805c1</uuid>
                                    <expression>count(/_ Template Net Juniper-SW/sensor.psu.status[jnxOperatingState.2.{#SNMPINDEX}],#1,&quot;eq&quot;,&quot;{$PSU_CRIT_STATUS}&quot;)=1</expression>
                                    <name>{#SNMPVALUE}: Power supply is in critical state</name>
                                    <opdata>Current state: {ITEM.LASTVALUE1}</opdata>
                                    <priority>AVERAGE</priority>
                                    <description>Please check the power supply unit for errors</description>
                                    <tags>
                                        <tag>
                                            <tag>scope</tag>
                                            <value>availability</value>
                                        </tag>
                                        <tag>
                                            <tag>scope</tag>
                                            <value>performance</value>
                                        </tag>
                                    </tags>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <uuid>700d7372aa604ae2a1da54032d0c89d0</uuid>
                    <name>Temperature discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.7,{#SENSOR_INFO},1.3.6.1.4.1.2636.3.1.13.1.5]</snmp_oid>
                    <key>jnxOperatingTable.discovery.temp</key>
                    <delay>1h</delay>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#SNMPVALUE}</macro>
                                <value>[^0]+</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>Scanning JUNIPER-MIB::jnxOperatingTable for Temperature
http://kb.juniper.net/InfoCenter/index?page=content&amp;id=KB17526&amp;actp=search. Filter limits results to Routing Engines</description>
                    <item_prototypes>
                        <item_prototype>
                            <uuid>d12012314f5d472fbf9ae43b6f13dd1c</uuid>
                            <name>{#SENSOR_INFO}: Temperature</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.2636.3.1.13.1.7.{#SNMPINDEX}</snmp_oid>
                            <key>sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <value_type>FLOAT</value_type>
                            <units>°C</units>
                            <description>MIB: JUNIPER-MIB
The temperature in Celsius (degrees C) of {#SENSOR_INFO}</description>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>temperature</value>
                                </tag>
                            </tags>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <uuid>b875c5629e4e457ea3f919e3dc211e08</uuid>
                                    <expression>avg(/_ Template Net Juniper-SW/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&gt;{$TEMP_CRIT:&quot;{#SENSOR_INFO}&quot;}</expression>
                                    <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                                    <recovery_expression>max(/_ Template Net Juniper-SW/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&lt;{$TEMP_CRIT:&quot;{#SENSOR_INFO}&quot;}-3</recovery_expression>
                                    <name>{#SENSOR_INFO}: Temperature is above critical threshold</name>
                                    <event_name>{#SENSOR_INFO}: Temperature is above critical threshold: &gt;{$TEMP_CRIT:&quot;{#SENSOR_INFO}&quot;}</event_name>
                                    <opdata>Current value: {ITEM.LASTVALUE1}</opdata>
                                    <priority>HIGH</priority>
                                    <description>This trigger uses temperature sensor values as well as temperature sensor status if available</description>
                                    <tags>
                                        <tag>
                                            <tag>scope</tag>
                                            <value>availability</value>
                                        </tag>
                                        <tag>
                                            <tag>scope</tag>
                                            <value>performance</value>
                                        </tag>
                                    </tags>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <uuid>e440a4b4720e476cbf36a919a7b9eb04</uuid>
                                    <expression>avg(/_ Template Net Juniper-SW/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&gt;{$TEMP_WARN:&quot;{#SENSOR_INFO}&quot;}</expression>
                                    <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                                    <recovery_expression>max(/_ Template Net Juniper-SW/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&lt;{$TEMP_WARN:&quot;{#SENSOR_INFO}&quot;}-3</recovery_expression>
                                    <name>{#SENSOR_INFO}: Temperature is above warning threshold</name>
                                    <event_name>{#SENSOR_INFO}: Temperature is above warning threshold: &gt;{$TEMP_WARN:&quot;{#SENSOR_INFO}&quot;}</event_name>
                                    <opdata>Current value: {ITEM.LASTVALUE1}</opdata>
                                    <priority>WARNING</priority>
                                    <description>This trigger uses temperature sensor values as well as temperature sensor status if available</description>
                                    <dependencies>
                                        <dependency>
                                            <name>{#SENSOR_INFO}: Temperature is above critical threshold</name>
                                            <expression>avg(/_ Template Net Juniper-SW/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&gt;{$TEMP_CRIT:&quot;{#SENSOR_INFO}&quot;}</expression>
                                            <recovery_expression>max(/_ Template Net Juniper-SW/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&lt;{$TEMP_CRIT:&quot;{#SENSOR_INFO}&quot;}-3</recovery_expression>
                                        </dependency>
                                    </dependencies>
                                    <tags>
                                        <tag>
                                            <tag>scope</tag>
                                            <value>availability</value>
                                        </tag>
                                        <tag>
                                            <tag>scope</tag>
                                            <value>performance</value>
                                        </tag>
                                    </tags>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <uuid>16d86ccf5c734a7494fe3e18633bda95</uuid>
                                    <expression>avg(/_ Template Net Juniper-SW/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&lt;{$TEMP_CRIT_LOW:&quot;{#SENSOR_INFO}&quot;}</expression>
                                    <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                                    <recovery_expression>min(/_ Template Net Juniper-SW/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&gt;{$TEMP_CRIT_LOW:&quot;{#SENSOR_INFO}&quot;}+3</recovery_expression>
                                    <name>{#SENSOR_INFO}: Temperature is too low</name>
                                    <event_name>{#SENSOR_INFO}: Temperature is too low: &lt;{$TEMP_CRIT_LOW:&quot;{#SENSOR_INFO}&quot;}</event_name>
                                    <opdata>Current value: {ITEM.LASTVALUE1}</opdata>
                                    <priority>AVERAGE</priority>
                                    <tags>
                                        <tag>
                                            <tag>scope</tag>
                                            <value>availability</value>
                                        </tag>
                                        <tag>
                                            <tag>scope</tag>
                                            <value>performance</value>
                                        </tag>
                                    </tags>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <uuid>55f02dffe0b64f308fd08a804ec785c0</uuid>
                    <name>Network 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]</snmp_oid>
                    <key>net.if.discovery</key>
                    <delay>1h</delay>
                    <filter>
                        <evaltype>AND</evaltype>
                        <conditions>
                            <condition>
                                <macro>{#IFADMINSTATUS}</macro>
                                <value>{$NET.IF.IFADMINSTATUS.MATCHES}</value>
                                <formulaid>A</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFADMINSTATUS}</macro>
                                <value>{$NET.IF.IFADMINSTATUS.NOT_MATCHES}</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>B</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFOPERSTATUS}</macro>
                                <value>{$NET.IF.IFOPERSTATUS.MATCHES}</value>
                                <formulaid>I</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFOPERSTATUS}</macro>
                                <value>{$NET.IF.IFOPERSTATUS.NOT_MATCHES}</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>J</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>{$NET.IF.IFNAME.MATCHES}</value>
                                <formulaid>G</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>{$NET.IF.IFNAME.NOT_MATCHES}</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>H</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFDESCR}</macro>
                                <value>{$NET.IF.IFDESCR.MATCHES}</value>
                                <formulaid>E</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFDESCR}</macro>
                                <value>{$NET.IF.IFDESCR.NOT_MATCHES}</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>F</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFALIAS}</macro>
                                <value>{$NET.IF.IFALIAS.MATCHES}</value>
                                <formulaid>C</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFALIAS}</macro>
                                <value>{$NET.IF.IFALIAS.NOT_MATCHES}</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>D</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFTYPE}</macro>
                                <value>{$NET.IF.IFTYPE.MATCHES}</value>
                                <formulaid>K</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFTYPE}</macro>
                                <value>{$NET.IF.IFTYPE.NOT_MATCHES}</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>L</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>Discovering interfaces from IF-MIB.</description>
                    <item_prototypes>
                        <item_prototype>
                            <uuid>475f28cf355542c4b485596cb4fa9ed3</uuid>
                            <name>Alias - {#IFNAME}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.2.1.31.1.1.1.18.{#SNMPINDEX}</snmp_oid>
                            <key>ifAlias[{#IFNAME}]</key>
                            <delay>3m</delay>
                            <history>7d</history>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <description>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.</description>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>network</value>
                                </tag>
                                <tag>
                                    <tag>description</tag>
                                    <value>{#IFALIAS}</value>
                                </tag>
                                <tag>
                                    <tag>interface</tag>
                                    <value>{#IFNAME}</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>bc56cf217a624f28aad9e65119a39548</uuid>
                            <name>Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}</snmp_oid>
                            <key>net.if.in.discards[ifInDiscards.{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <history>7d</history>
                            <status>DISABLED</status>
                            <discover>NO_DISCOVER</discover>
                            <description>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.</description>
                            <preprocessing>
                                <step>
                                    <type>CHANGE_PER_SECOND</type>
                                    <parameters>
                                        <parameter/>
                                    </parameters>
                                </step>
                            </preprocessing>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>network</value>
                                </tag>
                                <tag>
                                    <tag>description</tag>
                                    <value>{#IFALIAS}</value>
                                </tag>
                                <tag>
                                    <tag>interface</tag>
                                    <value>{#IFNAME}</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>6d5f2288dd6c4dd5a132fbd45931e404</uuid>
                            <name>Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}</snmp_oid>
                            <key>net.if.in.errors[ifInErrors.{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <history>7d</history>
                            <status>DISABLED</status>
                            <discover>NO_DISCOVER</discover>
                            <description>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.</description>
                            <preprocessing>
                                <step>
                                    <type>CHANGE_PER_SECOND</type>
                                    <parameters>
                                        <parameter/>
                                    </parameters>
                                </step>
                            </preprocessing>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>network</value>
                                </tag>
                                <tag>
                                    <tag>description</tag>
                                    <value>{#IFALIAS}</value>
                                </tag>
                                <tag>
                                    <tag>interface</tag>
                                    <value>{#IFNAME}</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>e7a4734ea48a48098ffad2324e7327b1</uuid>
                            <name>Incoming traffic - {#IFNAME}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}</snmp_oid>
                            <key>net.if.in[ifHCInOctets.{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <history>7d</history>
                            <units>bps</units>
                            <description>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.</description>
                            <preprocessing>
                                <step>
                                    <type>CHANGE_PER_SECOND</type>
                                    <parameters>
                                        <parameter/>
                                    </parameters>
                                </step>
                                <step>
                                    <type>MULTIPLIER</type>
                                    <parameters>
                                        <parameter>8</parameter>
                                    </parameters>
                                </step>
                            </preprocessing>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>network</value>
                                </tag>
                                <tag>
                                    <tag>description</tag>
                                    <value>{#IFALIAS}</value>
                                </tag>
                                <tag>
                                    <tag>interface</tag>
                                    <value>{#IFNAME}</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>cbc36316a38c455f89aa9a678c424f04</uuid>
                            <name>Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}</snmp_oid>
                            <key>net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <history>7d</history>
                            <status>DISABLED</status>
                            <discover>NO_DISCOVER</discover>
                            <description>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.</description>
                            <preprocessing>
                                <step>
                                    <type>CHANGE_PER_SECOND</type>
                                    <parameters>
                                        <parameter/>
                                    </parameters>
                                </step>
                            </preprocessing>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>network</value>
                                </tag>
                                <tag>
                                    <tag>description</tag>
                                    <value>{#IFALIAS}</value>
                                </tag>
                                <tag>
                                    <tag>interface</tag>
                                    <value>{#IFNAME}</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>98d902c5c0d6453d9b377139106e97b1</uuid>
                            <name>Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}</snmp_oid>
                            <key>net.if.out.errors[ifOutErrors.{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <history>7d</history>
                            <status>DISABLED</status>
                            <discover>NO_DISCOVER</discover>
                            <description>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.</description>
                            <preprocessing>
                                <step>
                                    <type>CHANGE_PER_SECOND</type>
                                    <parameters>
                                        <parameter/>
                                    </parameters>
                                </step>
                            </preprocessing>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>network</value>
                                </tag>
                                <tag>
                                    <tag>description</tag>
                                    <value>{#IFALIAS}</value>
                                </tag>
                                <tag>
                                    <tag>interface</tag>
                                    <value>{#IFNAME}</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>578d64ec99a34f83bdbd7b73bfaee62c</uuid>
                            <name>Outgoing traffic - {#IFNAME}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}</snmp_oid>
                            <key>net.if.out[ifHCOutOctets.{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <history>7d</history>
                            <units>bps</units>
                            <description>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.</description>
                            <preprocessing>
                                <step>
                                    <type>CHANGE_PER_SECOND</type>
                                    <parameters>
                                        <parameter/>
                                    </parameters>
                                </step>
                                <step>
                                    <type>MULTIPLIER</type>
                                    <parameters>
                                        <parameter>8</parameter>
                                    </parameters>
                                </step>
                            </preprocessing>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>network</value>
                                </tag>
                                <tag>
                                    <tag>description</tag>
                                    <value>{#IFALIAS}</value>
                                </tag>
                                <tag>
                                    <tag>interface</tag>
                                    <value>{#IFNAME}</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>db31ac40ccc241b0a0031e7eaf27de00</uuid>
                            <name>Interface {#IFNAME}({#IFALIAS}): Speed</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}</snmp_oid>
                            <key>net.if.speed[ifHighSpeed.{#SNMPINDEX}]</key>
                            <delay>5m</delay>
                            <history>7d</history>
                            <trends>0d</trends>
                            <units>bps</units>
                            <description>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.</description>
                            <preprocessing>
                                <step>
                                    <type>MULTIPLIER</type>
                                    <parameters>
                                        <parameter>1000000</parameter>
                                    </parameters>
                                </step>
                                <step>
                                    <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                                    <parameters>
                                        <parameter>1h</parameter>
                                    </parameters>
                                </step>
                            </preprocessing>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>network</value>
                                </tag>
                                <tag>
                                    <tag>description</tag>
                                    <value>{#IFALIAS}</value>
                                </tag>
                                <tag>
                                    <tag>interface</tag>
                                    <value>{#IFNAME}</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>ccae2e7c03a541da95d79b6e44c9ec0e</uuid>
                            <name>Interface {#IFNAME}({#IFALIAS}): Operational status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}</snmp_oid>
                            <key>net.if.status[ifOperStatus.{#SNMPINDEX}]</key>
                            <history>7d</history>
                            <trends>0</trends>
                            <description>MIB: IF-MIB
The current operational state of the interface.
- The testing(3) state indicates that no operational packet scan 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 todormant(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.</description>
                            <valuemap>
                                <name>IF-MIB::ifOperStatus</name>
                            </valuemap>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>network</value>
                                </tag>
                                <tag>
                                    <tag>description</tag>
                                    <value>{#IFALIAS}</value>
                                </tag>
                                <tag>
                                    <tag>interface</tag>
                                    <value>{#IFNAME}</value>
                                </tag>
                            </tags>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <uuid>03d3618776d143e59f301cf119c4c377</uuid>
                                    <expression>{$IFCONTROL:&quot;{#IFNAME}&quot;}=1 and last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)&lt;&gt;last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))</expression>
                                    <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                                    <recovery_expression>last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}])&lt;&gt;2 or {$IFCONTROL:&quot;{#IFNAME}&quot;}=0</recovery_expression>
                                    <name>Interface {#IFNAME}({#IFALIAS}): Link down</name>
                                    <opdata>Current state: {ITEM.LASTVALUE1}</opdata>
                                    <status>DISABLED</status>
                                    <priority>AVERAGE</priority>
                                    <description>This trigger expression works as follows:
1. Can be triggered if operations status is down.
2. {$IFCONTROL:&quot;{#IFNAME}&quot;}=1 - user can redefine Context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down.
3. {TEMPLATE_NAME:METRIC.diff()}=1) - trigger fires only if operational status was up(1) sometime before. (So, do not fire 'ethernal off' interfaces.)

WARNING: if closed manually - won't fire again on next poll, because of .diff.</description>
                                    <tags>
                                        <tag>
                                            <tag>scope</tag>
                                            <value>availability</value>
                                        </tag>
                                    </tags>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <uuid>c8960cba6085496d9fa3279fc2bf8491</uuid>
                            <name>Interface {#IFNAME}({#IFALIAS}): Interface type</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}</snmp_oid>
                            <key>net.if.type[ifType.{#SNMPINDEX}]</key>
                            <delay>1h</delay>
                            <history>7d</history>
                            <trends>0d</trends>
                            <status>DISABLED</status>
                            <discover>NO_DISCOVER</discover>
                            <description>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.</description>
                            <valuemap>
                                <name>IF-MIB::ifType</name>
                            </valuemap>
                            <preprocessing>
                                <step>
                                    <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                                    <parameters>
                                        <parameter>1d</parameter>
                                    </parameters>
                                </step>
                            </preprocessing>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>network</value>
                                </tag>
                                <tag>
                                    <tag>description</tag>
                                    <value>{#IFALIAS}</value>
                                </tag>
                                <tag>
                                    <tag>interface</tag>
                                    <value>{#IFNAME}</value>
                                </tag>
                            </tags>
                        </item_prototype>
                    </item_prototypes>
                    <trigger_prototypes>
                        <trigger_prototype>
                            <uuid>431712c5e7054d9690b47e814c79524d</uuid>
                            <expression>change(/_ Template Net Juniper-SW/net.if.speed[ifHighSpeed.{#SNMPINDEX}])&lt;0 and last(/_ Template Net Juniper-SW/net.if.speed[ifHighSpeed.{#SNMPINDEX}])&gt;0
and (
last(/_ Template Net Juniper-SW/net.if.type[ifType.{#SNMPINDEX}])=6 or
last(/_ Template Net Juniper-SW/net.if.type[ifType.{#SNMPINDEX}])=7 or
last(/_ Template Net Juniper-SW/net.if.type[ifType.{#SNMPINDEX}])=11 or
last(/_ Template Net Juniper-SW/net.if.type[ifType.{#SNMPINDEX}])=62 or
last(/_ Template Net Juniper-SW/net.if.type[ifType.{#SNMPINDEX}])=69 or
last(/_ Template Net Juniper-SW/net.if.type[ifType.{#SNMPINDEX}])=117
)
and
(last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}])&lt;&gt;2)</expression>
                            <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                            <recovery_expression>(change(/_ Template Net Juniper-SW/net.if.speed[ifHighSpeed.{#SNMPINDEX}])&gt;0 and last(/_ Template Net Juniper-SW/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)&gt;0) or
(last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}])=2)</recovery_expression>
                            <name>Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before</name>
                            <opdata>Current reported speed: {ITEM.LASTVALUE1}</opdata>
                            <status>DISABLED</status>
                            <priority>INFO</priority>
                            <description>This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Ack to close.</description>
                            <dependencies>
                                <dependency>
                                    <name>Interface {#IFNAME}({#IFALIAS}): Link down</name>
                                    <expression>{$IFCONTROL:&quot;{#IFNAME}&quot;}=1 and last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)&lt;&gt;last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))</expression>
                                    <recovery_expression>last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}])&lt;&gt;2 or {$IFCONTROL:&quot;{#IFNAME}&quot;}=0</recovery_expression>
                                </dependency>
                            </dependencies>
                            <tags>
                                <tag>
                                    <tag>scope</tag>
                                    <value>performance</value>
                                </tag>
                            </tags>
                        </trigger_prototype>
                        <trigger_prototype>
                            <uuid>0b80f294701849bb9156ebaad8f3aed4</uuid>
                            <expression>(avg(/_ Template Net Juniper-SW/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)&gt;({$IF.UTIL.MAX:&quot;{#IFNAME}&quot;}/100)*last(/_ Template Net Juniper-SW/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or
avg(/_ Template Net Juniper-SW/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)&gt;({$IF.UTIL.MAX:&quot;{#IFNAME}&quot;}/100)*last(/_ Template Net Juniper-SW/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and
last(/_ Template Net Juniper-SW/net.if.speed[ifHighSpeed.{#SNMPINDEX}])&gt;0</expression>
                            <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                            <recovery_expression>avg(/_ Template Net Juniper-SW/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)&lt;(({$IF.UTIL.MAX:&quot;{#IFNAME}&quot;}-3)/100)*last(/_ Template Net Juniper-SW/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and
avg(/_ Template Net Juniper-SW/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)&lt;(({$IF.UTIL.MAX:&quot;{#IFNAME}&quot;}-3)/100)*last(/_ Template Net Juniper-SW/net.if.speed[ifHighSpeed.{#SNMPINDEX}])</recovery_expression>
                            <name>Interface {#IFNAME}({#IFALIAS}): High bandwidth usage</name>
                            <event_name>Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (&gt;{$IF.UTIL.MAX:&quot;{#IFNAME}&quot;}%)</event_name>
                            <opdata>In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}</opdata>
                            <status>DISABLED</status>
                            <priority>WARNING</priority>
                            <description>The network interface utilization is close to its estimated maximum bandwidth.</description>
                            <dependencies>
                                <dependency>
                                    <name>Interface {#IFNAME}({#IFALIAS}): Link down</name>
                                    <expression>{$IFCONTROL:&quot;{#IFNAME}&quot;}=1 and last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)&lt;&gt;last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))</expression>
                                    <recovery_expression>last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}])&lt;&gt;2 or {$IFCONTROL:&quot;{#IFNAME}&quot;}=0</recovery_expression>
                                </dependency>
                            </dependencies>
                            <tags>
                                <tag>
                                    <tag>scope</tag>
                                    <value>performance</value>
                                </tag>
                            </tags>
                        </trigger_prototype>
                        <trigger_prototype>
                            <uuid>03d014a56cf84ca49015c7d5a8b62b46</uuid>
                            <expression>min(/_ Template Net Juniper-SW/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)&gt;{$IF.ERRORS.WARN:&quot;{#IFNAME}&quot;}
or min(/_ Template Net Juniper-SW/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)&gt;{$IF.ERRORS.WARN:&quot;{#IFNAME}&quot;}</expression>
                            <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                            <recovery_expression>max(/_ Template Net Juniper-SW/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)&lt;{$IF.ERRORS.WARN:&quot;{#IFNAME}&quot;}*0.8
and max(/_ Template Net Juniper-SW/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)&lt;{$IF.ERRORS.WARN:&quot;{#IFNAME}&quot;}*0.8</recovery_expression>
                            <name>Interface {#IFNAME}({#IFALIAS}): High error rate</name>
                            <event_name>Interface {#IFNAME}({#IFALIAS}): High error rate (&gt;{$IF.ERRORS.WARN:&quot;{#IFNAME}&quot;} for 5m)</event_name>
                            <opdata>errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}</opdata>
                            <status>DISABLED</status>
                            <priority>WARNING</priority>
                            <description>Recovers when below 80% of {$IF.ERRORS.WARN:&quot;{#IFNAME}&quot;} threshold</description>
                            <dependencies>
                                <dependency>
                                    <name>Interface {#IFNAME}({#IFALIAS}): Link down</name>
                                    <expression>{$IFCONTROL:&quot;{#IFNAME}&quot;}=1 and last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)&lt;&gt;last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))</expression>
                                    <recovery_expression>last(/_ Template Net Juniper-SW/net.if.status[ifOperStatus.{#SNMPINDEX}])&lt;&gt;2 or {$IFCONTROL:&quot;{#IFNAME}&quot;}=0</recovery_expression>
                                </dependency>
                            </dependencies>
                            <tags>
                                <tag>
                                    <tag>scope</tag>
                                    <value>availability</value>
                                </tag>
                                <tag>
                                    <tag>scope</tag>
                                    <value>performance</value>
                                </tag>
                            </tags>
                        </trigger_prototype>
                    </trigger_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <uuid>0a0c0dba21a64a65a0f64edecc9e4068</uuid>
                            <name>Interface {#IFNAME}({#IFALIAS}): Network traffic</name>
                            <graph_items>
                                <graph_item>
                                    <drawtype>GRADIENT_LINE</drawtype>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>_ Template Net Juniper-SW</host>
                                        <key>net.if.in[ifHCInOctets.{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>1</sortorder>
                                    <drawtype>BOLD_LINE</drawtype>
                                    <color>2774A4</color>
                                    <item>
                                        <host>_ Template Net Juniper-SW</host>
                                        <key>net.if.out[ifHCOutOctets.{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>2</sortorder>
                                    <color>F63100</color>
                                    <yaxisside>RIGHT</yaxisside>
                                    <item>
                                        <host>_ Template Net Juniper-SW</host>
                                        <key>net.if.out.errors[ifOutErrors.{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>3</sortorder>
                                    <color>A54F10</color>
                                    <yaxisside>RIGHT</yaxisside>
                                    <item>
                                        <host>_ Template Net Juniper-SW</host>
                                        <key>net.if.in.errors[ifInErrors.{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>4</sortorder>
                                    <color>FC6EA3</color>
                                    <yaxisside>RIGHT</yaxisside>
                                    <item>
                                        <host>_ Template Net Juniper-SW</host>
                                        <key>net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                                <graph_item>
                                    <sortorder>5</sortorder>
                                    <color>6C59DC</color>
                                    <yaxisside>RIGHT</yaxisside>
                                    <item>
                                        <host>_ Template Net Juniper-SW</host>
                                        <key>net.if.in.discards[ifInDiscards.{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <uuid>d80006fbcd15420db8456b339d94cf3b</uuid>
                    <name>EtherLike-MIB Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.2.1.10.7.2.1.19,{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#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]</snmp_oid>
                    <key>net.if.duplex.discovery</key>
                    <delay>1h</delay>
                    <filter>
                        <evaltype>AND</evaltype>
                        <conditions>
                            <condition>
                                <macro>{#IFOPERSTATUS}</macro>
                                <value>1</value>
                                <formulaid>A</formulaid>
                            </condition>
                            <condition>
                                <macro>{#SNMPVALUE}</macro>
                                <value>(2|3)</value>
                                <formulaid>B</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>Discovering interfaces from IF-MIB and EtherLike-MIB. Interfaces with up(1) Operational Status are discovered.</description>
                    <item_prototypes>
                        <item_prototype>
                            <uuid>abd9bead35d641e28ea9a125e21a3131</uuid>
                            <name>Interface {#IFNAME}({#IFALIAS}): Duplex status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.2.1.10.7.2.1.19.{#SNMPINDEX}</snmp_oid>
                            <key>net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}]</key>
                            <history>7d</history>
                            <description>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 is
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.</description>
                            <valuemap>
                                <name>EtherLike-MIB::dot3StatsDuplexStatus</name>
                            </valuemap>
                            <tags>
                                <tag>
                                    <tag>component</tag>
                                    <value>network</value>
                                </tag>
                                <tag>
                                    <tag>description</tag>
                                    <value>{#IFALIAS}</value>
                                </tag>
                                <tag>
                                    <tag>interface</tag>
                                    <value>{#IFNAME}</value>
                                </tag>
                            </tags>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <uuid>bec71ce609ea4b2c98b646c8c8e537f5</uuid>
                                    <expression>last(/_ Template Net Juniper-SW/net.if.duplex[dot3StatsDuplexStatus.{#SNMPINDEX}])=2</expression>
                                    <name>Interface {#IFNAME}({#IFALIAS}): In half-duplex mode</name>
                                    <status>DISABLED</status>
                                    <discover>NO_DISCOVER</discover>
                                    <priority>WARNING</priority>
                                    <description>Please check autonegotiation settings and cabling</description>
                                    <tags>
                                        <tag>
                                            <tag>scope</tag>
                                            <value>performance</value>
                                        </tag>
                                    </tags>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                    <preprocessing>
                        <step>
                            <type>JAVASCRIPT</type>
                            <parameters>
                                <parameter>try {
    var data = JSON.parse(value);
}
catch (error) {
    throw 'Failed to parse JSON of EtherLike-MIB discovery.';
}
var fields = ['{#SNMPVALUE}','{#IFOPERSTATUS}','{#IFALIAS}','{#IFNAME}','{#IFDESCR}'];
data.forEach(function (element) {
    fields.forEach(function (field) {
        element[field] = element[field] || '';
    });
});
return JSON.stringify(data);</parameter>
                            </parameters>
                        </step>
                    </preprocessing>
                </discovery_rule>
            </discovery_rules>
            <tags>
                <tag>
                    <tag>class</tag>
                    <value>network</value>
                </tag>
                <tag>
                    <tag>target</tag>
                    <value>juniper</value>
                </tag>
            </tags>
            <macros>
                <macro>
                    <macro>{$CPU.UTIL.CRIT}</macro>
                    <value>90</value>
                </macro>
                <macro>
                    <macro>{$FAN_CRIT_STATUS}</macro>
                    <value>6</value>
                </macro>
                <macro>
                    <macro>{$HEALTH_CRIT_STATUS}</macro>
                    <value>3</value>
                </macro>
                <macro>
                    <macro>{$ICMP_LOSS_WARN}</macro>
                    <value>20</value>
                </macro>
                <macro>
                    <macro>{$ICMP_RESPONSE_TIME_WARN}</macro>
                    <value>0.15</value>
                </macro>
                <macro>
                    <macro>{$IF.ERRORS.WARN}</macro>
                    <value>2</value>
                </macro>
                <macro>
                    <macro>{$IF.UTIL.MAX}</macro>
                    <value>90</value>
                </macro>
                <macro>
                    <macro>{$IFCONTROL}</macro>
                    <value>1</value>
                </macro>
                <macro>
                    <macro>{$MEMORY.UTIL.MAX}</macro>
                    <value>90</value>
                </macro>
                <macro>
                    <macro>{$NET.IF.IFADMINSTATUS.MATCHES}</macro>
                    <value>^.*</value>
                    <description>Ignore notPresent(6)</description>
                </macro>
                <macro>
                    <macro>{$NET.IF.IFADMINSTATUS.NOT_MATCHES}</macro>
                    <value>^2$</value>
                    <description>Ignore down(2) administrative status</description>
                </macro>
                <macro>
                    <macro>{$NET.IF.IFALIAS.MATCHES}</macro>
                    <value>.*</value>
                </macro>
                <macro>
                    <macro>{$NET.IF.IFALIAS.NOT_MATCHES}</macro>
                    <value>CHANGE_IF_NEEDED</value>
                </macro>
                <macro>
                    <macro>{$NET.IF.IFDESCR.MATCHES}</macro>
                    <value>.*</value>
                </macro>
                <macro>
                    <macro>{$NET.IF.IFDESCR.NOT_MATCHES}</macro>
                    <value>CHANGE_IF_NEEDED</value>
                </macro>
                <macro>
                    <macro>{$NET.IF.IFNAME.MATCHES}</macro>
                    <value>^.*$</value>
                </macro>
                <macro>
                    <macro>{$NET.IF.IFNAME.NOT_MATCHES}</macro>
                    <value>(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})</value>
                    <description>Filter out loopbacks, nulls, docker veth links and docker0 bridge by default</description>
                </macro>
                <macro>
                    <macro>{$NET.IF.IFOPERSTATUS.MATCHES}</macro>
                    <value>^.*$</value>
                </macro>
                <macro>
                    <macro>{$NET.IF.IFOPERSTATUS.NOT_MATCHES}</macro>
                    <value>^6$</value>
                    <description>Ignore notPresent(6)</description>
                </macro>
                <macro>
                    <macro>{$NET.IF.IFTYPE.MATCHES}</macro>
                    <value>.*</value>
                </macro>
                <macro>
                    <macro>{$NET.IF.IFTYPE.NOT_MATCHES}</macro>
                    <value>CHANGE_IF_NEEDED</value>
                </macro>
                <macro>
                    <macro>{$PSU_CRIT_STATUS}</macro>
                    <value>6</value>
                </macro>
                <macro>
                    <macro>{$SNMP.TIMEOUT}</macro>
                    <value>5m</value>
                </macro>
                <macro>
                    <macro>{$TEMP_CRIT}</macro>
                    <value>60</value>
                </macro>
                <macro>
                    <macro>{$TEMP_CRIT:&quot;Routing Engine&quot;}</macro>
                    <value>80</value>
                </macro>
                <macro>
                    <macro>{$TEMP_CRIT_LOW}</macro>
                    <value>5</value>
                </macro>
                <macro>
                    <macro>{$TEMP_WARN}</macro>
                    <value>50</value>
                </macro>
                <macro>
                    <macro>{$TEMP_WARN:&quot;Routing Engine&quot;}</macro>
                    <value>70</value>
                </macro>
            </macros>
            <dashboards>
                <dashboard>
                    <uuid>063d67b1672e494f9b95fbb1388c03da</uuid>
                    <name>Network interfaces</name>
                    <pages>
                        <page>
                            <widgets>
                                <widget>
                                    <type>GRAPH_PROTOTYPE</type>
                                    <width>24</width>
                                    <height>5</height>
                                    <fields>
                                        <field>
                                            <type>INTEGER</type>
                                            <name>source_type</name>
                                            <value>2</value>
                                        </field>
                                        <field>
                                            <type>INTEGER</type>
                                            <name>columns</name>
                                            <value>1</value>
                                        </field>
                                        <field>
                                            <type>INTEGER</type>
                                            <name>rows</name>
                                            <value>1</value>
                                        </field>
                                        <field>
                                            <type>GRAPH_PROTOTYPE</type>
                                            <name>graphid</name>
                                            <value>
                                                <host>_ Template Net Juniper-SW</host>
                                                <name>Interface {#IFNAME}({#IFALIAS}): Network traffic</name>
                                            </value>
                                        </field>
                                    </fields>
                                </widget>
                            </widgets>
                        </page>
                    </pages>
                </dashboard>
            </dashboards>
            <valuemaps>
                <valuemap>
                    <uuid>b4acc63f32b445c0aa6c5c40dade0a4c</uuid>
                    <name>EtherLike-MIB::dot3StatsDuplexStatus</name>
                    <mappings>
                        <mapping>
                            <value>1</value>
                            <newvalue>unknown</newvalue>
                        </mapping>
                        <mapping>
                            <value>2</value>
                            <newvalue>halfDuplex</newvalue>
                        </mapping>
                        <mapping>
                            <value>3</value>
                            <newvalue>fullDuplex</newvalue>
                        </mapping>
                    </mappings>
                </valuemap>
                <valuemap>
                    <uuid>c5011180fbb2442aba6a2ca95965bd58</uuid>
                    <name>IF-MIB::ifOperStatus</name>
                    <mappings>
                        <mapping>
                            <value>1</value>
                            <newvalue>up</newvalue>
                        </mapping>
                        <mapping>
                            <value>2</value>
                            <newvalue>down</newvalue>
                        </mapping>
                        <mapping>
                            <value>4</value>
                            <newvalue>unknown</newvalue>
                        </mapping>
                        <mapping>
                            <value>5</value>
                            <newvalue>dormant</newvalue>
                        </mapping>
                        <mapping>
                            <value>6</value>
                            <newvalue>notPresent</newvalue>
                        </mapping>
                        <mapping>
                            <value>7</value>
                            <newvalue>lowerLayerDown</newvalue>
                        </mapping>
                    </mappings>
                </valuemap>
                <valuemap>
                    <uuid>508cd307c4414878b63207f42b12f2f2</uuid>
                    <name>IF-MIB::ifType</name>
                    <mappings>
                        <mapping>
                            <value>1</value>
                            <newvalue>other</newvalue>
                        </mapping>
                        <mapping>
                            <value>2</value>
                            <newvalue>regular1822</newvalue>
                        </mapping>
                        <mapping>
                            <value>3</value>
                            <newvalue>hdh1822</newvalue>
                        </mapping>
                        <mapping>
                            <value>4</value>
                            <newvalue>ddnX25</newvalue>
                        </mapping>
                        <mapping>
                            <value>5</value>
                            <newvalue>rfc877x25</newvalue>
                        </mapping>
                        <mapping>
                            <value>6</value>
                            <newvalue>ethernetCsmacd</newvalue>
                        </mapping>
                        <mapping>
                            <value>7</value>
                            <newvalue>iso88023Csmacd</newvalue>
                        </mapping>
                        <mapping>
                            <value>8</value>
                            <newvalue>iso88024TokenBus</newvalue>
                        </mapping>
                        <mapping>
                            <value>9</value>
                            <newvalue>iso88025TokenRing</newvalue>
                        </mapping>
                        <mapping>
                            <value>10</value>
                            <newvalue>iso88026Man</newvalue>
                        </mapping>
                        <mapping>
                            <value>11</value>
                            <newvalue>starLan</newvalue>
                        </mapping>
                        <mapping>
                            <value>12</value>
                            <newvalue>proteon10Mbit</newvalue>
                        </mapping>
                        <mapping>
                            <value>13</value>
                            <newvalue>proteon80Mbit</newvalue>
                        </mapping>
                        <mapping>
                            <value>14</value>
                            <newvalue>hyperchannel</newvalue>
                        </mapping>
                        <mapping>
                            <value>15</value>
                            <newvalue>fddi</newvalue>
                        </mapping>
                        <mapping>
                            <value>16</value>
                            <newvalue>lapb</newvalue>
                        </mapping>
                        <mapping>
                            <value>17</value>
                            <newvalue>sdlc</newvalue>
                        </mapping>
                        <mapping>
                            <value>18</value>
                            <newvalue>ds1</newvalue>
                        </mapping>
                        <mapping>
                            <value>19</value>
                            <newvalue>e1</newvalue>
                        </mapping>
                        <mapping>
                            <value>20</value>
                            <newvalue>basicISDN</newvalue>
                        </mapping>
                        <mapping>
                            <value>21</value>
                            <newvalue>primaryISDN</newvalue>
                        </mapping>
                        <mapping>
                            <value>22</value>
                            <newvalue>propPointToPointSerial</newvalue>
                        </mapping>
                        <mapping>
                            <value>23</value>
                            <newvalue>ppp</newvalue>
                        </mapping>
                        <mapping>
                            <value>24</value>
                            <newvalue>softwareLoopback</newvalue>
                        </mapping>
                        <mapping>
                            <value>25</value>
                            <newvalue>eon</newvalue>
                        </mapping>
                        <mapping>
                            <value>26</value>
                            <newvalue>ethernet3Mbit</newvalue>
                        </mapping>
                        <mapping>
                            <value>27</value>
                            <newvalue>nsip</newvalue>
                        </mapping>
                        <mapping>
                            <value>28</value>
                            <newvalue>slip</newvalue>
                        </mapping>
                        <mapping>
                            <value>29</value>
                            <newvalue>ultra</newvalue>
                        </mapping>
                        <mapping>
                            <value>30</value>
                            <newvalue>ds3</newvalue>
                        </mapping>
                        <mapping>
                            <value>31</value>
                            <newvalue>sip</newvalue>
                        </mapping>
                        <mapping>
                            <value>32</value>
                            <newvalue>frameRelay</newvalue>
                        </mapping>
                        <mapping>
                            <value>33</value>
                            <newvalue>rs232</newvalue>
                        </mapping>
                        <mapping>
                            <value>34</value>
                            <newvalue>para</newvalue>
                        </mapping>
                        <mapping>
                            <value>35</value>
                            <newvalue>arcnet</newvalue>
                        </mapping>
                        <mapping>
                            <value>36</value>
                            <newvalue>arcnetPlus</newvalue>
                        </mapping>
                        <mapping>
                            <value>37</value>
                            <newvalue>atm</newvalue>
                        </mapping>
                        <mapping>
                            <value>38</value>
                            <newvalue>miox25</newvalue>
                        </mapping>
                        <mapping>
                            <value>39</value>
                            <newvalue>sonet</newvalue>
                        </mapping>
                        <mapping>
                            <value>40</value>
                            <newvalue>x25ple</newvalue>
                        </mapping>
                        <mapping>
                            <value>41</value>
                            <newvalue>iso88022llc</newvalue>
                        </mapping>
                        <mapping>
                            <value>42</value>
                            <newvalue>localTalk</newvalue>
                        </mapping>
                        <mapping>
                            <value>43</value>
                            <newvalue>smdsDxi</newvalue>
                        </mapping>
                        <mapping>
                            <value>44</value>
                            <newvalue>frameRelayService</newvalue>
                        </mapping>
                        <mapping>
                            <value>45</value>
                            <newvalue>v35</newvalue>
                        </mapping>
                        <mapping>
                            <value>46</value>
                            <newvalue>hssi</newvalue>
                        </mapping>
                        <mapping>
                            <value>47</value>
                            <newvalue>hippi</newvalue>
                        </mapping>
                        <mapping>
                            <value>48</value>
                            <newvalue>modem</newvalue>
                        </mapping>
                        <mapping>
                            <value>49</value>
                            <newvalue>aal5</newvalue>
                        </mapping>
                        <mapping>
                            <value>50</value>
                            <newvalue>sonetPath</newvalue>
                        </mapping>
                        <mapping>
                            <value>51</value>
                            <newvalue>sonetVT</newvalue>
                        </mapping>
                        <mapping>
                            <value>52</value>
                            <newvalue>smdsIcip</newvalue>
                        </mapping>
                        <mapping>
                            <value>53</value>
                            <newvalue>propVirtual</newvalue>
                        </mapping>
                        <mapping>
                            <value>54</value>
                            <newvalue>propMultiplexor</newvalue>
                        </mapping>
                        <mapping>
                            <value>55</value>
                            <newvalue>ieee80212</newvalue>
                        </mapping>
                        <mapping>
                            <value>56</value>
                            <newvalue>fibreChannel</newvalue>
                        </mapping>
                        <mapping>
                            <value>57</value>
                            <newvalue>hippiInterface</newvalue>
                        </mapping>
                        <mapping>
                            <value>58</value>
                            <newvalue>frameRelayInterconnect</newvalue>
                        </mapping>
                        <mapping>
                            <value>59</value>
                            <newvalue>aflane8023</newvalue>
                        </mapping>
                        <mapping>
                            <value>60</value>
                            <newvalue>aflane8025</newvalue>
                        </mapping>
                        <mapping>
                            <value>61</value>
                            <newvalue>cctEmul</newvalue>
                        </mapping>
                        <mapping>
                            <value>62</value>
                            <newvalue>fastEther</newvalue>
                        </mapping>
                        <mapping>
                            <value>63</value>
                            <newvalue>isdn</newvalue>
                        </mapping>
                        <mapping>
                            <value>64</value>
                            <newvalue>v11</newvalue>
                        </mapping>
                        <mapping>
                            <value>65</value>
                            <newvalue>v36</newvalue>
                        </mapping>
                        <mapping>
                            <value>66</value>
                            <newvalue>g703at64k</newvalue>
                        </mapping>
                        <mapping>
                            <value>67</value>
                            <newvalue>g703at2mb</newvalue>
                        </mapping>
                        <mapping>
                            <value>68</value>
                            <newvalue>qllc</newvalue>
                        </mapping>
                        <mapping>
                            <value>69</value>
                            <newvalue>fastEtherFX</newvalue>
                        </mapping>
                        <mapping>
                            <value>70</value>
                            <newvalue>channel</newvalue>
                        </mapping>
                        <mapping>
                            <value>71</value>
                            <newvalue>ieee80211</newvalue>
                        </mapping>
                        <mapping>
                            <value>72</value>
                            <newvalue>ibm370parChan</newvalue>
                        </mapping>
                        <mapping>
                            <value>73</value>
                            <newvalue>escon</newvalue>
                        </mapping>
                        <mapping>
                            <value>74</value>
                            <newvalue>dlsw</newvalue>
                        </mapping>
                        <mapping>
                            <value>75</value>
                            <newvalue>isdns</newvalue>
                        </mapping>
                        <mapping>
                            <value>76</value>
                            <newvalue>isdnu</newvalue>
                        </mapping>
                        <mapping>
                            <value>77</value>
                            <newvalue>lapd</newvalue>
                        </mapping>
                        <mapping>
                            <value>78</value>
                            <newvalue>ipSwitch</newvalue>
                        </mapping>
                        <mapping>
                            <value>79</value>
                            <newvalue>rsrb</newvalue>
                        </mapping>
                        <mapping>
                            <value>80</value>
                            <newvalue>atmLogical</newvalue>
                        </mapping>
                        <mapping>
                            <value>81</value>
                            <newvalue>ds0</newvalue>
                        </mapping>
                        <mapping>
                            <value>82</value>
                            <newvalue>ds0Bundle</newvalue>
                        </mapping>
                        <mapping>
                            <value>83</value>
                            <newvalue>bsc</newvalue>
                        </mapping>
                        <mapping>
                            <value>84</value>
                            <newvalue>async</newvalue>
                        </mapping>
                        <mapping>
                            <value>85</value>
                            <newvalue>cnr</newvalue>
                        </mapping>
                        <mapping>
                            <value>86</value>
                            <newvalue>iso88025Dtr</newvalue>
                        </mapping>
                        <mapping>
                            <value>87</value>
                            <newvalue>eplrs</newvalue>
                        </mapping>
                        <mapping>
                            <value>88</value>
                            <newvalue>arap</newvalue>
                        </mapping>
                        <mapping>
                            <value>89</value>
                            <newvalue>propCnls</newvalue>
                        </mapping>
                        <mapping>
                            <value>90</value>
                            <newvalue>hostPad</newvalue>
                        </mapping>
                        <mapping>
                            <value>91</value>
                            <newvalue>termPad</newvalue>
                        </mapping>
                        <mapping>
                            <value>92</value>
                            <newvalue>frameRelayMPI</newvalue>
                        </mapping>
                        <mapping>
                            <value>93</value>
                            <newvalue>x213</newvalue>
                        </mapping>
                        <mapping>
                            <value>94</value>
                            <newvalue>adsl</newvalue>
                        </mapping>
                        <mapping>
                            <value>95</value>
                            <newvalue>radsl</newvalue>
                        </mapping>
                        <mapping>
                            <value>96</value>
                            <newvalue>sdsl</newvalue>
                        </mapping>
                        <mapping>
                            <value>97</value>
                            <newvalue>vdsl</newvalue>
                        </mapping>
                        <mapping>
                            <value>98</value>
                            <newvalue>iso88025CRFPInt</newvalue>
                        </mapping>
                        <mapping>
                            <value>99</value>
                            <newvalue>myrinet</newvalue>
                        </mapping>
                        <mapping>
                            <value>100</value>
                            <newvalue>voiceEM</newvalue>
                        </mapping>
                        <mapping>
                            <value>101</value>
                            <newvalue>voiceFXO</newvalue>
                        </mapping>
                        <mapping>
                            <value>102</value>
                            <newvalue>voiceFXS</newvalue>
                        </mapping>
                        <mapping>
                            <value>103</value>
                            <newvalue>voiceEncap</newvalue>
                        </mapping>
                        <mapping>
                            <value>104</value>
                            <newvalue>voiceOverIp</newvalue>
                        </mapping>
                        <mapping>
                            <value>105</value>
                            <newvalue>atmDxi</newvalue>
                        </mapping>
                        <mapping>
                            <value>106</value>
                            <newvalue>atmFuni</newvalue>
                        </mapping>
                        <mapping>
                            <value>107</value>
                            <newvalue>atmIma</newvalue>
                        </mapping>
                        <mapping>
                            <value>108</value>
                            <newvalue>pppMultilinkBundle</newvalue>
                        </mapping>
                        <mapping>
                            <value>109</value>
                            <newvalue>ipOverCdlc</newvalue>
                        </mapping>
                        <mapping>
                            <value>110</value>
                            <newvalue>ipOverClaw</newvalue>
                        </mapping>
                        <mapping>
                            <value>111</value>
                            <newvalue>stackToStack</newvalue>
                        </mapping>
                        <mapping>
                            <value>112</value>
                            <newvalue>virtualIpAddress</newvalue>
                        </mapping>
                        <mapping>
                            <value>113</value>
                            <newvalue>mpc</newvalue>
                        </mapping>
                        <mapping>
                            <value>114</value>
                            <newvalue>ipOverAtm</newvalue>
                        </mapping>
                        <mapping>
                            <value>115</value>
                            <newvalue>iso88025Fiber</newvalue>
                        </mapping>
                        <mapping>
                            <value>116</value>
                            <newvalue>tdlc</newvalue>
                        </mapping>
                        <mapping>
                            <value>117</value>
                            <newvalue>gigabitEthernet</newvalue>
                        </mapping>
                        <mapping>
                            <value>118</value>
                            <newvalue>hdlc</newvalue>
                        </mapping>
                        <mapping>
                            <value>119</value>
                            <newvalue>lapf</newvalue>
                        </mapping>
                        <mapping>
                            <value>120</value>
                            <newvalue>v37</newvalue>
                        </mapping>
                        <mapping>
                            <value>121</value>
                            <newvalue>x25mlp</newvalue>
                        </mapping>
                        <mapping>
                            <value>122</value>
                            <newvalue>x25huntGroup</newvalue>
                        </mapping>
                        <mapping>
                            <value>123</value>
                            <newvalue>trasnpHdlc</newvalue>
                        </mapping>
                        <mapping>
                            <value>124</value>
                            <newvalue>interleave</newvalue>
                        </mapping>
                        <mapping>
                            <value>125</value>
                            <newvalue>fast</newvalue>
                        </mapping>
                        <mapping>
                            <value>126</value>
                            <newvalue>ip</newvalue>
                        </mapping>
                        <mapping>
                            <value>127</value>
                            <newvalue>docsCableMaclayer</newvalue>
                        </mapping>
                        <mapping>
                            <value>128</value>
                            <newvalue>docsCableDownstream</newvalue>
                        </mapping>
                        <mapping>
                            <value>129</value>
                            <newvalue>docsCableUpstream</newvalue>
                        </mapping>
                        <mapping>
                            <value>130</value>
                            <newvalue>a12MppSwitch</newvalue>
                        </mapping>
                        <mapping>
                            <value>131</value>
                            <newvalue>tunnel</newvalue>
                        </mapping>
                        <mapping>
                            <value>132</value>
                            <newvalue>coffee</newvalue>
                        </mapping>
                        <mapping>
                            <value>133</value>
                            <newvalue>ces</newvalue>
                        </mapping>
                        <mapping>
                            <value>134</value>
                            <newvalue>atmSubInterface</newvalue>
                        </mapping>
                        <mapping>
                            <value>135</value>
                            <newvalue>l2vlan</newvalue>
                        </mapping>
                        <mapping>
                            <value>136</value>
                            <newvalue>l3ipvlan</newvalue>
                        </mapping>
                        <mapping>
                            <value>137</value>
                            <newvalue>l3ipxvlan</newvalue>
                        </mapping>
                        <mapping>
                            <value>138</value>
                            <newvalue>digitalPowerline</newvalue>
                        </mapping>
                        <mapping>
                            <value>139</value>
                            <newvalue>mediaMailOverIp</newvalue>
                        </mapping>
                        <mapping>
                            <value>140</value>
                            <newvalue>dtm</newvalue>
                        </mapping>
                        <mapping>
                            <value>141</value>
                            <newvalue>dcn</newvalue>
                        </mapping>
                        <mapping>
                            <value>142</value>
                            <newvalue>ipForward</newvalue>
                        </mapping>
                        <mapping>
                            <value>143</value>
                            <newvalue>msdsl</newvalue>
                        </mapping>
                        <mapping>
                            <value>144</value>
                            <newvalue>ieee1394</newvalue>
                        </mapping>
                        <mapping>
                            <value>145</value>
                            <newvalue>if-gsn</newvalue>
                        </mapping>
                        <mapping>
                            <value>146</value>
                            <newvalue>dvbRccMacLayer</newvalue>
                        </mapping>
                        <mapping>
                            <value>147</value>
                            <newvalue>dvbRccDownstream</newvalue>
                        </mapping>
                        <mapping>
                            <value>148</value>
                            <newvalue>dvbRccUpstream</newvalue>
                        </mapping>
                        <mapping>
                            <value>149</value>
                            <newvalue>atmVirtual</newvalue>
                        </mapping>
                        <mapping>
                            <value>150</value>
                            <newvalue>mplsTunnel</newvalue>
                        </mapping>
                        <mapping>
                            <value>151</value>
                            <newvalue>srp</newvalue>
                        </mapping>
                        <mapping>
                            <value>152</value>
                            <newvalue>voiceOverAtm</newvalue>
                        </mapping>
                        <mapping>
                            <value>153</value>
                            <newvalue>voiceOverFrameRelay</newvalue>
                        </mapping>
                        <mapping>
                            <value>154</value>
                            <newvalue>idsl</newvalue>
                        </mapping>
                        <mapping>
                            <value>155</value>
                            <newvalue>compositeLink</newvalue>
                        </mapping>
                        <mapping>
                            <value>156</value>
                            <newvalue>ss7SigLink</newvalue>
                        </mapping>
                        <mapping>
                            <value>157</value>
                            <newvalue>propWirelessP2P</newvalue>
                        </mapping>
                        <mapping>
                            <value>158</value>
                            <newvalue>frForward</newvalue>
                        </mapping>
                        <mapping>
                            <value>159</value>
                            <newvalue>rfc1483</newvalue>
                        </mapping>
                        <mapping>
                            <value>160</value>
                            <newvalue>usb</newvalue>
                        </mapping>
                        <mapping>
                            <value>161</value>
                            <newvalue>ieee8023adLag</newvalue>
                        </mapping>
                        <mapping>
                            <value>162</value>
                            <newvalue>bgppolicyaccounting</newvalue>
                        </mapping>
                        <mapping>
                            <value>163</value>
                            <newvalue>frf16MfrBundle</newvalue>
                        </mapping>
                        <mapping>
                            <value>164</value>
                            <newvalue>h323Gatekeeper</newvalue>
                        </mapping>
                        <mapping>
                            <value>165</value>
                            <newvalue>h323Proxy</newvalue>
                        </mapping>
                        <mapping>
                            <value>166</value>
                            <newvalue>mpls</newvalue>
                        </mapping>
                        <mapping>
                            <value>167</value>
                            <newvalue>mfSigLink</newvalue>
                        </mapping>
                        <mapping>
                            <value>168</value>
                            <newvalue>hdsl2</newvalue>
                        </mapping>
                        <mapping>
                            <value>169</value>
                            <newvalue>shdsl</newvalue>
                        </mapping>
                        <mapping>
                            <value>170</value>
                            <newvalue>ds1FDL</newvalue>
                        </mapping>
                        <mapping>
                            <value>171</value>
                            <newvalue>pos</newvalue>
                        </mapping>
                        <mapping>
                            <value>172</value>
                            <newvalue>dvbAsiIn</newvalue>
                        </mapping>
                        <mapping>
                            <value>173</value>
                            <newvalue>dvbAsiOut</newvalue>
                        </mapping>
                        <mapping>
                            <value>174</value>
                            <newvalue>plc</newvalue>
                        </mapping>
                        <mapping>
                            <value>175</value>
                            <newvalue>nfas</newvalue>
                        </mapping>
                        <mapping>
                            <value>176</value>
                            <newvalue>tr008</newvalue>
                        </mapping>
                        <mapping>
                            <value>177</value>
                            <newvalue>gr303RDT</newvalue>
                        </mapping>
                        <mapping>
                            <value>178</value>
                            <newvalue>gr303IDT</newvalue>
                        </mapping>
                        <mapping>
                            <value>179</value>
                            <newvalue>isup</newvalue>
                        </mapping>
                        <mapping>
                            <value>180</value>
                            <newvalue>propDocsWirelessMaclayer</newvalue>
                        </mapping>
                        <mapping>
                            <value>181</value>
                            <newvalue>propDocsWirelessDownstream</newvalue>
                        </mapping>
                        <mapping>
                            <value>182</value>
                            <newvalue>propDocsWirelessUpstream</newvalue>
                        </mapping>
                        <mapping>
                            <value>183</value>
                            <newvalue>hiperlan2</newvalue>
                        </mapping>
                        <mapping>
                            <value>184</value>
                            <newvalue>propBWAp2Mp</newvalue>
                        </mapping>
                        <mapping>
                            <value>185</value>
                            <newvalue>sonetOverheadChannel</newvalue>
                        </mapping>
                        <mapping>
                            <value>186</value>
                            <newvalue>digitalWrapperOverheadChannel</newvalue>
                        </mapping>
                        <mapping>
                            <value>187</value>
                            <newvalue>aal2</newvalue>
                        </mapping>
                        <mapping>
                            <value>188</value>
                            <newvalue>radioMAC</newvalue>
                        </mapping>
                        <mapping>
                            <value>189</value>
                            <newvalue>atmRadio</newvalue>
                        </mapping>
                        <mapping>
                            <value>190</value>
                            <newvalue>imt</newvalue>
                        </mapping>
                        <mapping>
                            <value>191</value>
                            <newvalue>mvl</newvalue>
                        </mapping>
                        <mapping>
                            <value>192</value>
                            <newvalue>reachDSL</newvalue>
                        </mapping>
                        <mapping>
                            <value>193</value>
                            <newvalue>frDlciEndPt</newvalue>
                        </mapping>
                        <mapping>
                            <value>194</value>
                            <newvalue>atmVciEndPt</newvalue>
                        </mapping>
                        <mapping>
                            <value>195</value>
                            <newvalue>opticalChannel</newvalue>
                        </mapping>
                        <mapping>
                            <value>196</value>
                            <newvalue>opticalTransport</newvalue>
                        </mapping>
                        <mapping>
                            <value>197</value>
                            <newvalue>propAtm</newvalue>
                        </mapping>
                        <mapping>
                            <value>198</value>
                            <newvalue>voiceOverCable</newvalue>
                        </mapping>
                        <mapping>
                            <value>199</value>
                            <newvalue>infiniband</newvalue>
                        </mapping>
                        <mapping>
                            <value>200</value>
                            <newvalue>teLink</newvalue>
                        </mapping>
                        <mapping>
                            <value>201</value>
                            <newvalue>q2931</newvalue>
                        </mapping>
                        <mapping>
                            <value>202</value>
                            <newvalue>virtualTg</newvalue>
                        </mapping>
                        <mapping>
                            <value>203</value>
                            <newvalue>sipTg</newvalue>
                        </mapping>
                        <mapping>
                            <value>204</value>
                            <newvalue>sipSig</newvalue>
                        </mapping>
                        <mapping>
                            <value>205</value>
                            <newvalue>docsCableUpstreamChannel</newvalue>
                        </mapping>
                        <mapping>
                            <value>206</value>
                            <newvalue>econet</newvalue>
                        </mapping>
                        <mapping>
                            <value>207</value>
                            <newvalue>pon155</newvalue>
                        </mapping>
                        <mapping>
                            <value>208</value>
                            <newvalue>pon622</newvalue>
                        </mapping>
                        <mapping>
                            <value>209</value>
                            <newvalue>bridge</newvalue>
                        </mapping>
                        <mapping>
                            <value>210</value>
                            <newvalue>linegroup</newvalue>
                        </mapping>
                        <mapping>
                            <value>211</value>
                            <newvalue>voiceEMFGD</newvalue>
                        </mapping>
                        <mapping>
                            <value>212</value>
                            <newvalue>voiceFGDEANA</newvalue>
                        </mapping>
                        <mapping>
                            <value>213</value>
                            <newvalue>voiceDID</newvalue>
                        </mapping>
                        <mapping>
                            <value>214</value>
                            <newvalue>mpegTransport</newvalue>
                        </mapping>
                        <mapping>
                            <value>215</value>
                            <newvalue>sixToFour</newvalue>
                        </mapping>
                        <mapping>
                            <value>216</value>
                            <newvalue>gtp</newvalue>
                        </mapping>
                        <mapping>
                            <value>217</value>
                            <newvalue>pdnEtherLoop1</newvalue>
                        </mapping>
                        <mapping>
                            <value>218</value>
                            <newvalue>pdnEtherLoop2</newvalue>
                        </mapping>
                        <mapping>
                            <value>219</value>
                            <newvalue>opticalChannelGroup</newvalue>
                        </mapping>
                        <mapping>
                            <value>220</value>
                            <newvalue>homepna</newvalue>
                        </mapping>
                        <mapping>
                            <value>221</value>
                            <newvalue>gfp</newvalue>
                        </mapping>
                        <mapping>
                            <value>222</value>
                            <newvalue>ciscoISLvlan</newvalue>
                        </mapping>
                        <mapping>
                            <value>223</value>
                            <newvalue>actelisMetaLOOP</newvalue>
                        </mapping>
                        <mapping>
                            <value>224</value>
                            <newvalue>fcipLink</newvalue>
                        </mapping>
                        <mapping>
                            <value>225</value>
                            <newvalue>rpr</newvalue>
                        </mapping>
                        <mapping>
                            <value>226</value>
                            <newvalue>qam</newvalue>
                        </mapping>
                        <mapping>
                            <value>227</value>
                            <newvalue>lmp</newvalue>
                        </mapping>
                        <mapping>
                            <value>228</value>
                            <newvalue>cblVectaStar</newvalue>
                        </mapping>
                        <mapping>
                            <value>229</value>
                            <newvalue>docsCableMCmtsDownstream</newvalue>
                        </mapping>
                        <mapping>
                            <value>230</value>
                            <newvalue>adsl2</newvalue>
                        </mapping>
                        <mapping>
                            <value>231</value>
                            <newvalue>macSecControlledIF</newvalue>
                        </mapping>
                        <mapping>
                            <value>232</value>
                            <newvalue>macSecUncontrolledIF</newvalue>
                        </mapping>
                        <mapping>
                            <value>233</value>
                            <newvalue>aviciOpticalEther</newvalue>
                        </mapping>
                        <mapping>
                            <value>234</value>
                            <newvalue>atmbond</newvalue>
                        </mapping>
                        <mapping>
                            <value>235</value>
                            <newvalue>voiceFGDOS</newvalue>
                        </mapping>
                        <mapping>
                            <value>236</value>
                            <newvalue>mocaVersion1</newvalue>
                        </mapping>
                        <mapping>
                            <value>237</value>
                            <newvalue>ieee80216WMAN</newvalue>
                        </mapping>
                        <mapping>
                            <value>238</value>
                            <newvalue>adsl2plus</newvalue>
                        </mapping>
                        <mapping>
                            <value>239</value>
                            <newvalue>dvbRcsMacLayer</newvalue>
                        </mapping>
                        <mapping>
                            <value>240</value>
                            <newvalue>dvbTdm</newvalue>
                        </mapping>
                        <mapping>
                            <value>241</value>
                            <newvalue>dvbRcsTdma</newvalue>
                        </mapping>
                        <mapping>
                            <value>242</value>
                            <newvalue>x86Laps</newvalue>
                        </mapping>
                        <mapping>
                            <value>243</value>
                            <newvalue>wwanPP</newvalue>
                        </mapping>
                        <mapping>
                            <value>244</value>
                            <newvalue>wwanPP2</newvalue>
                        </mapping>
                        <mapping>
                            <value>245</value>
                            <newvalue>voiceEBS</newvalue>
                        </mapping>
                        <mapping>
                            <value>246</value>
                            <newvalue>ifPwType</newvalue>
                        </mapping>
                        <mapping>
                            <value>247</value>
                            <newvalue>ilan</newvalue>
                        </mapping>
                        <mapping>
                            <value>248</value>
                            <newvalue>pip</newvalue>
                        </mapping>
                        <mapping>
                            <value>249</value>
                            <newvalue>aluELP</newvalue>
                        </mapping>
                        <mapping>
                            <value>250</value>
                            <newvalue>gpon</newvalue>
                        </mapping>
                        <mapping>
                            <value>251</value>
                            <newvalue>vdsl2</newvalue>
                        </mapping>
                        <mapping>
                            <value>252</value>
                            <newvalue>capwapDot11Profile</newvalue>
                        </mapping>
                        <mapping>
                            <value>253</value>
                            <newvalue>capwapDot11Bss</newvalue>
                        </mapping>
                        <mapping>
                            <value>254</value>
                            <newvalue>capwapWtpVirtualRadio</newvalue>
                        </mapping>
                        <mapping>
                            <value>255</value>
                            <newvalue>bits</newvalue>
                        </mapping>
                        <mapping>
                            <value>256</value>
                            <newvalue>docsCableUpstreamRfPort</newvalue>
                        </mapping>
                        <mapping>
                            <value>257</value>
                            <newvalue>cableDownstreamRfPort</newvalue>
                        </mapping>
                        <mapping>
                            <value>258</value>
                            <newvalue>vmwareVirtualNic</newvalue>
                        </mapping>
                        <mapping>
                            <value>259</value>
                            <newvalue>ieee802154</newvalue>
                        </mapping>
                        <mapping>
                            <value>260</value>
                            <newvalue>otnOdu</newvalue>
                        </mapping>
                        <mapping>
                            <value>261</value>
                            <newvalue>otnOtu</newvalue>
                        </mapping>
                        <mapping>
                            <value>262</value>
                            <newvalue>ifVfiType</newvalue>
                        </mapping>
                        <mapping>
                            <value>263</value>
                            <newvalue>g9981</newvalue>
                        </mapping>
                        <mapping>
                            <value>264</value>
                            <newvalue>g9982</newvalue>
                        </mapping>
                        <mapping>
                            <value>265</value>
                            <newvalue>g9983</newvalue>
                        </mapping>
                        <mapping>
                            <value>266</value>
                            <newvalue>aluEpon</newvalue>
                        </mapping>
                        <mapping>
                            <value>267</value>
                            <newvalue>aluEponOnu</newvalue>
                        </mapping>
                        <mapping>
                            <value>268</value>
                            <newvalue>aluEponPhysicalUni</newvalue>
                        </mapping>
                        <mapping>
                            <value>269</value>
                            <newvalue>aluEponLogicalLink</newvalue>
                        </mapping>
                        <mapping>
                            <value>270</value>
                            <newvalue>aluGponOnu</newvalue>
                        </mapping>
                        <mapping>
                            <value>271</value>
                            <newvalue>aluGponPhysicalUni</newvalue>
                        </mapping>
                        <mapping>
                            <value>272</value>
                            <newvalue>vmwareNicTeam</newvalue>
                        </mapping>
                        <mapping>
                            <value>277</value>
                            <newvalue>docsOfdmDownstream</newvalue>
                        </mapping>
                        <mapping>
                            <value>278</value>
                            <newvalue>docsOfdmaUpstream</newvalue>
                        </mapping>
                        <mapping>
                            <value>279</value>
                            <newvalue>gfast</newvalue>
                        </mapping>
                        <mapping>
                            <value>280</value>
                            <newvalue>sdci</newvalue>
                        </mapping>
                        <mapping>
                            <value>281</value>
                            <newvalue>xboxWireless</newvalue>
                        </mapping>
                        <mapping>
                            <value>282</value>
                            <newvalue>fastdsl</newvalue>
                        </mapping>
                        <mapping>
                            <value>283</value>
                            <newvalue>docsCableScte55d1FwdOob</newvalue>
                        </mapping>
                        <mapping>
                            <value>284</value>
                            <newvalue>docsCableScte55d1RetOob</newvalue>
                        </mapping>
                        <mapping>
                            <value>285</value>
                            <newvalue>docsCableScte55d2DsOob</newvalue>
                        </mapping>
                        <mapping>
                            <value>286</value>
                            <newvalue>docsCableScte55d2UsOob</newvalue>
                        </mapping>
                        <mapping>
                            <value>287</value>
                            <newvalue>docsCableNdf</newvalue>
                        </mapping>
                        <mapping>
                            <value>288</value>
                            <newvalue>docsCableNdr</newvalue>
                        </mapping>
                        <mapping>
                            <value>289</value>
                            <newvalue>ptm</newvalue>
                        </mapping>
                        <mapping>
                            <value>290</value>
                            <newvalue>ghn</newvalue>
                        </mapping>
                    </mappings>
                </valuemap>
                <valuemap>
                    <uuid>a650a993b69b49f1bd74487214abaaa3</uuid>
                    <name>JUNIPER-ALARM-MIB::jnxOperatingState</name>
                    <mappings>
                        <mapping>
                            <value>1</value>
                            <newvalue>unknown</newvalue>
                        </mapping>
                        <mapping>
                            <value>2</value>
                            <newvalue>running</newvalue>
                        </mapping>
                        <mapping>
                            <value>3</value>
                            <newvalue>ready</newvalue>
                        </mapping>
                        <mapping>
                            <value>4</value>
                            <newvalue>reset</newvalue>
                        </mapping>
                        <mapping>
                            <value>5</value>
                            <newvalue>runningAtFullSpeed</newvalue>
                        </mapping>
                        <mapping>
                            <value>6</value>
                            <newvalue>down or off</newvalue>
                        </mapping>
                        <mapping>
                            <value>7</value>
                            <newvalue>standby</newvalue>
                        </mapping>
                    </mappings>
                </valuemap>
                <valuemap>
                    <uuid>a1c7fc72a9374914a92a42419274b1d7</uuid>
                    <name>JUNIPER-ALARM-MIB::jnxRedAlarmState</name>
                    <mappings>
                        <mapping>
                            <value>1</value>
                            <newvalue>other</newvalue>
                        </mapping>
                        <mapping>
                            <value>2</value>
                            <newvalue>off</newvalue>
                        </mapping>
                        <mapping>
                            <value>3</value>
                            <newvalue>on - RedAlarm</newvalue>
                        </mapping>
                    </mappings>
                </valuemap>
                <valuemap>
                    <uuid>e18419fff29a401491b3e4219000ec84</uuid>
                    <name>Service state</name>
                    <mappings>
                        <mapping>
                            <value>0</value>
                            <newvalue>Down</newvalue>
                        </mapping>
                        <mapping>
                            <value>1</value>
                            <newvalue>Up</newvalue>
                        </mapping>
                    </mappings>
                </valuemap>
                <valuemap>
                    <uuid>b49d7580eecd44cf9ba01c0c6a778a84</uuid>
                    <name>zabbix.host.available</name>
                    <mappings>
                        <mapping>
                            <value>0</value>
                            <newvalue>not available</newvalue>
                        </mapping>
                        <mapping>
                            <value>1</value>
                            <newvalue>available</newvalue>
                        </mapping>
                        <mapping>
                            <value>2</value>
                            <newvalue>unknown</newvalue>
                        </mapping>
                    </mappings>
                </valuemap>
            </valuemaps>
        </template>
        <template>
            <uuid>86dc283744de4aa1918ed32b098784f9</uuid>
            <template>_Template Net Juniper SNMPv2</template>
            <name>_Template Net Juniper SNMPv2</name>
            <description>Template Net Juniper version: 0.15
MIBs used:
JUNIPER-MIB
JUNIPER-ALARM-MIB
SNMPv2-MIB</description>
            <templates>
                <template>
                    <name>Template Module EtherLike-MIB SNMPv2</name>
                </template>
                <template>
                    <name>Template Module Generic SNMPv2</name>
                </template>
                <template>
                    <name>Template Module Interfaces SNMPv2</name>
                </template>
            </templates>
            <groups>
                <group>
                    <name>Templates/Network Devices</name>
                </group>
            </groups>
            <items>
                <item>
                    <uuid>92f0de04e38b4c4fa16560b3fa7fddc7</uuid>
                    <name>Hardware model name</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.2636.3.1.2.0</snmp_oid>
                    <key>system.hw.model</key>
                    <delay>1h</delay>
                    <history>2w</history>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <description>MIB: JUNIPER-MIB
The name, model, or detailed description of the box,indicating which product the box is about, for example 'M40'.</description>
                    <inventory_link>MODEL</inventory_link>
                    <tags>
                        <tag>
                            <tag>Application</tag>
                            <value>Inventory</value>
                        </tag>
                    </tags>
                </item>
                <item>
                    <uuid>01debd68f04b4ee4bafde2bf17b41377</uuid>
                    <name>Hardware serial number</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.2636.3.1.3.0</snmp_oid>
                    <key>system.hw.serialnumber</key>
                    <delay>1h</delay>
                    <history>2w</history>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <description>MIB: JUNIPER-MIB
The serial number of this subject, blank if unknown or unavailable.</description>
                    <inventory_link>SERIALNO_A</inventory_link>
                    <tags>
                        <tag>
                            <tag>Application</tag>
                            <value>Inventory</value>
                        </tag>
                    </tags>
                    <triggers>
                        <trigger>
                            <uuid>877ee364e6174c9297de7363ba38dd9a</uuid>
                            <expression>(last(/_Template Net Juniper SNMPv2/system.hw.serialnumber,#1)&lt;&gt;last(/_Template Net Juniper SNMPv2/system.hw.serialnumber,#2))=1 and length(last(/_Template Net Juniper SNMPv2/system.hw.serialnumber))&gt;0</expression>
                            <recovery_mode>NONE</recovery_mode>
                            <name>Device has been replaced (new serial number received)</name>
                            <priority>INFO</priority>
                            <description>Last value: {ITEM.LASTVALUE1}.
Device serial number has changed. Ack to close</description>
                            <manual_close>YES</manual_close>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <uuid>b4e2ed78d54346008d446402da903081</uuid>
                    <name>Overall system health status</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.4.1.2636.3.4.2.3.1.0</snmp_oid>
                    <key>system.status[jnxRedAlarmState.0]</key>
                    <delay>30s</delay>
                    <history>2w</history>
                    <trends>0d</trends>
                    <description>MIB: JUNIPER-ALARM-MIB
The red alarm indication on the craft interface panel.
The red alarm is on when there is some system
failure or power supply failure or the system
is experiencing a hardware malfunction or some
threshold is being exceeded.

This red alarm state could be turned off by the
ACO/LT (Alarm Cut Off / Lamp Test) button on the
front panel module.</description>
                    <valuemap>
                        <name>JUNIPER-ALARM-MIB::jnxRedAlarmState</name>
                    </valuemap>
                    <tags>
                        <tag>
                            <tag>Application</tag>
                            <value>Status</value>
                        </tag>
                    </tags>
                    <triggers>
                        <trigger>
                            <uuid>f80e60b6085440e0a232589697fb8113</uuid>
                            <expression>count(/_Template Net Juniper SNMPv2/system.status[jnxRedAlarmState.0],#1,&quot;eq&quot;,&quot;{$HEALTH_CRIT_STATUS}&quot;)=1</expression>
                            <name>System status is in critical state</name>
                            <priority>HIGH</priority>
                            <description>Last value: {ITEM.LASTVALUE1}.
Please check the device for errors</description>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <uuid>af8da934940e407c8a952a20cb405ca3</uuid>
                    <name>Operating system</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>1.3.6.1.2.1.1.1.0</snmp_oid>
                    <key>system.sw.os</key>
                    <delay>1h</delay>
                    <history>2w</history>
                    <trends>0</trends>
                    <value_type>CHAR</value_type>
                    <description>MIB: SNMPv2-MIB</description>
                    <inventory_link>OS</inventory_link>
                    <preprocessing>
                        <step>
                            <type>REGEX</type>
                            <parameters>
                                <parameter>kernel (JUNOS [0-9a-zA-Z\.]+)</parameter>
                                <parameter>\1</parameter>
                            </parameters>
                        </step>
                    </preprocessing>
                    <tags>
                        <tag>
                            <tag>Application</tag>
                            <value>Inventory</value>
                        </tag>
                    </tags>
                </item>
            </items>
            <discovery_rules>
                <discovery_rule>
                    <uuid>8f4213ed2e804d3a8f891a276dc61ae2</uuid>
                    <name>Compatibilizador de  Interfaces</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},IF-MIB::ifDescr,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1]</snmp_oid>
                    <key>ifDescr</key>
                    <delay>1h</delay>
                    <filter>
                        <evaltype>AND</evaltype>
                        <conditions>
                            <condition>
                                <macro>{#IFADMINSTATUS}</macro>
                                <value>1</value>
                                <formulaid>A</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>@Network interfaces for discovery</value>
                                <formulaid>T</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>ip</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>V</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>pe</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>W</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>dsc</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>X</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>pime</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>Y</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>lsi</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>Z</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>esi</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>AA</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>ud</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>U</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>pfe</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>AB</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>rbeb</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>AD</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>demux0</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>AE</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>cbp0</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>AF</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>em</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>AG</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>fxp0</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>AH</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>gr</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>AI</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>gre</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>AJ</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>irb</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>AC</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>vt</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>S</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>pip0</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>J</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>ut</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>R</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>tap</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>C</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>prime</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>D</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>pimd</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>E</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>pfh</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>F</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>pp0</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>G</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>pfh</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>H</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>pd</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>B</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>mtun</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>I</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>mt</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>K</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>lt</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>L</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>lo0</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>M</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>jsrv</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>N</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>lc</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>O</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>igb</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>P</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>fti</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>Q</formulaid>
                            </condition>
                            <condition>
                                <macro>{#IFNAME}</macro>
                                <value>ixlv</value>
                                <operator>NOT_MATCHES_REGEX</operator>
                                <formulaid>AK</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <lifetime>1d</lifetime>
                    <item_prototypes>
                        <item_prototype>
                            <uuid>44b66d231d694f6ea5acdf904fa915d6</uuid>
                            <name>Alias - {#IFNAME}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.2.1.31.1.1.1.18.{#SNMPINDEX}</snmp_oid>
                            <key>ifAlias[{#IFNAME}]</key>
                            <delay>3m</delay>
                            <trends>0</trends>
                            <value_type>CHAR</value_type>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>Interfaces</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>7f3b1ea8550d4ca88ff62b5bf784ef9c</uuid>
                            <name>Incoming traffic - {#SNMPVALUE}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>IF-MIB::ifHCInOctets.{#SNMPINDEX}</snmp_oid>
                            <key>ifHCInOctets[{#SNMPVALUE}]</key>
                            <delay>3m</delay>
                            <history>365d</history>
                            <units>bps</units>
                            <preprocessing>
                                <step>
                                    <type>CHANGE_PER_SECOND</type>
                                    <parameters>
                                        <parameter/>
                                    </parameters>
                                </step>
                                <step>
                                    <type>MULTIPLIER</type>
                                    <parameters>
                                        <parameter>8</parameter>
                                    </parameters>
                                </step>
                            </preprocessing>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>Interfaces</value>
                                </tag>
                            </tags>
                        </item_prototype>
                        <item_prototype>
                            <uuid>f1b61ba64f5743f28c47ba96b7d3476e</uuid>
                            <name>Outgoing traffic - {#SNMPVALUE}</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>IF-MIB::ifHCOutOctets.{#SNMPINDEX}</snmp_oid>
                            <key>ifHCOutOctets[{#SNMPVALUE}]</key>
                            <delay>3m</delay>
                            <history>365d</history>
                            <units>bps</units>
                            <preprocessing>
                                <step>
                                    <type>CHANGE_PER_SECOND</type>
                                    <parameters>
                                        <parameter/>
                                    </parameters>
                                </step>
                                <step>
                                    <type>MULTIPLIER</type>
                                    <parameters>
                                        <parameter>8</parameter>
                                    </parameters>
                                </step>
                            </preprocessing>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>Interfaces</value>
                                </tag>
                            </tags>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <uuid>e182948cc07648d782899d79c83487c0</uuid>
                    <name>CPU and Memory Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.5]</snmp_oid>
                    <key>jnxOperatingTable.discovery</key>
                    <delay>1h</delay>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#SNMPVALUE}</macro>
                                <value>Routing Engine.*</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>Scanning JUNIPER-MIB::jnxOperatingTable for CPU and Memory
http://kb.juniper.net/InfoCenter/index?page=content&amp;id=KB17526&amp;actp=search. Filter limits results to Routing Engines</description>
                    <item_prototypes>
                        <item_prototype>
                            <uuid>cf094ee9a3714e32b1c0293e92d14e31</uuid>
                            <name>{#SNMPVALUE}: CPU utilization</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.2636.3.1.13.1.21.{#SNMPINDEX}</snmp_oid>
                            <key>system.cpu.util[jnxOperating5MinLoadAvg.{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <history>30d</history>
                            <value_type>FLOAT</value_type>
                            <units>%</units>
                            <description>MIB: JUNIPER-MIB
The CPU Load Average over the last 5 minutes Here it will be shown as percentage valueZero if unavailable or inapplicable.
Reference: http://kb.juniper.net/library/CUSTOMERSERVICE/GLOBAL_JTAC/BK26199/SRX%20SNMP%20Monitoring%20Guide_v1.1.pdf</description>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>CPU</value>
                                </tag>
                            </tags>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <uuid>42c76dac791240c4a65d5228e0bc52cb</uuid>
                                    <expression>avg(/_Template Net Juniper SNMPv2/system.cpu.util[jnxOperating5MinLoadAvg.{#SNMPINDEX}],5m)&gt;{$CPU_UTIL_MAX}</expression>
                                    <name>{#SNMPVALUE}: High CPU utilization</name>
                                    <status>DISABLED</status>
                                    <discover>NO_DISCOVER</discover>
                                    <priority>AVERAGE</priority>
                                    <description>Last value: {ITEM.LASTVALUE1}.</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                        <item_prototype>
                            <uuid>845518f0c080413089262da03e0dee36</uuid>
                            <name>{#SNMPVALUE}: Memory utilization</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.2636.3.1.13.1.11.{#SNMPINDEX}</snmp_oid>
                            <key>vm.memory.pused[jnxOperatingBuffer.{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <history>30d</history>
                            <value_type>FLOAT</value_type>
                            <units>%</units>
                            <description>MIB: JUNIPER-MIB
The buffer pool utilization in percentage 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</description>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>Memory</value>
                                </tag>
                            </tags>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <uuid>9432f240fb3b4359bac3a37452095abf</uuid>
                                    <expression>avg(/_Template Net Juniper SNMPv2/vm.memory.pused[jnxOperatingBuffer.{#SNMPINDEX}],5m)&gt;{$MEMORY_UTIL_MAX}</expression>
                                    <name>{#SNMPVALUE}: High memory utilization</name>
                                    <status>DISABLED</status>
                                    <discover>NO_DISCOVER</discover>
                                    <priority>AVERAGE</priority>
                                    <description>Last value: {ITEM.LASTVALUE1}.</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <uuid>e3b64d1a720641dea562eee59665ac14</uuid>
                            <name>{#SNMPVALUE}: CPU utilization</name>
                            <ymin_type_1>FIXED</ymin_type_1>
                            <ymax_type_1>FIXED</ymax_type_1>
                            <graph_items>
                                <graph_item>
                                    <drawtype>GRADIENT_LINE</drawtype>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>_Template Net Juniper SNMPv2</host>
                                        <key>system.cpu.util[jnxOperating5MinLoadAvg.{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                        <graph_prototype>
                            <uuid>ead6e4fa79d34788a516be3cd8c176d7</uuid>
                            <name>{#SNMPVALUE}: Memory utilization</name>
                            <ymin_type_1>FIXED</ymin_type_1>
                            <ymax_type_1>FIXED</ymax_type_1>
                            <graph_items>
                                <graph_item>
                                    <drawtype>GRADIENT_LINE</drawtype>
                                    <color>1A7C11</color>
                                    <item>
                                        <host>_Template Net Juniper SNMPv2</host>
                                        <key>vm.memory.pused[jnxOperatingBuffer.{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <uuid>d351b7421ec44d438d95d9d045f05eda</uuid>
                    <name>FAN Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.5.4]</snmp_oid>
                    <key>jnxOperatingTable.discovery.fans</key>
                    <delay>1h</delay>
                    <description>Scanning JUNIPER-MIB::jnxOperatingTable for Fans</description>
                    <item_prototypes>
                        <item_prototype>
                            <uuid>755c1d0a42b5496db4df83adefc4d2db</uuid>
                            <name>{#SNMPVALUE}: Fan status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.2636.3.1.13.1.6.4.{#SNMPINDEX}</snmp_oid>
                            <key>sensor.fan.status[jnxOperatingState.4.{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <history>2w</history>
                            <trends>0d</trends>
                            <description>MIB: JUNIPER-MIB</description>
                            <valuemap>
                                <name>JUNIPER-ALARM-MIB::jnxOperatingState</name>
                            </valuemap>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>Fans</value>
                                </tag>
                            </tags>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <uuid>60b5aa06f5d1456e9fd270890261ed63</uuid>
                                    <expression>count(/_Template Net Juniper SNMPv2/sensor.fan.status[jnxOperatingState.4.{#SNMPINDEX}],#1,&quot;eq&quot;,&quot;{$FAN_CRIT_STATUS}&quot;)=1</expression>
                                    <name>{#SNMPVALUE}: Fan is in critical state</name>
                                    <status>DISABLED</status>
                                    <discover>NO_DISCOVER</discover>
                                    <priority>AVERAGE</priority>
                                    <description>Last value: {ITEM.LASTVALUE1}.
Please check the fan unit</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <uuid>04291bc0206a413c85782dc7670beed5</uuid>
                    <name>PSU Discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.5.2]</snmp_oid>
                    <key>jnxOperatingTable.discovery.psu</key>
                    <delay>1h</delay>
                    <description>Scanning JUNIPER-MIB::jnxOperatingTable for Power Supplies</description>
                    <item_prototypes>
                        <item_prototype>
                            <uuid>74fa087f139f4adeb68e63dd800b8589</uuid>
                            <name>{#SNMPVALUE}: Power supply status</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.2636.3.1.13.1.6.2.{#SNMPINDEX}</snmp_oid>
                            <key>sensor.psu.status[jnxOperatingState.2.{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <history>2w</history>
                            <trends>0d</trends>
                            <description>MIB: JUNIPER-MIB
If they are using DC power supplies there is a a known issue on PR 1064039 where the fans do not detect the temperature correctly and fail to cool the power supply causing the 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</description>
                            <valuemap>
                                <name>JUNIPER-ALARM-MIB::jnxOperatingState</name>
                            </valuemap>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>Power Supply</value>
                                </tag>
                            </tags>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <uuid>f39d5f91fb6247809e45f346b90c1f88</uuid>
                                    <expression>count(/_Template Net Juniper SNMPv2/sensor.psu.status[jnxOperatingState.2.{#SNMPINDEX}],#1,&quot;eq&quot;,&quot;{$PSU_CRIT_STATUS}&quot;)=1</expression>
                                    <name>{#SNMPVALUE}: Power supply is in critical state</name>
                                    <status>DISABLED</status>
                                    <priority>AVERAGE</priority>
                                    <description>Last value: {ITEM.LASTVALUE1}.
Please check the power supply unit for errors</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                </discovery_rule>
                <discovery_rule>
                    <uuid>4f74551999aa40609a04ab346c3e9dc7</uuid>
                    <name>Temperature discovery</name>
                    <type>SNMP_AGENT</type>
                    <snmp_oid>discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.7,{#SENSOR_INFO},1.3.6.1.4.1.2636.3.1.13.1.5]</snmp_oid>
                    <key>jnxOperatingTable.discovery.temp</key>
                    <delay>1h</delay>
                    <filter>
                        <conditions>
                            <condition>
                                <macro>{#SNMPVALUE}</macro>
                                <value>[^0]+</value>
                                <formulaid>A</formulaid>
                            </condition>
                        </conditions>
                    </filter>
                    <description>Scanning JUNIPER-MIB::jnxOperatingTable for Temperature
http://kb.juniper.net/InfoCenter/index?page=content&amp;id=KB17526&amp;actp=search. Filter limits results to Routing Engines</description>
                    <item_prototypes>
                        <item_prototype>
                            <uuid>38cd41fd421642dea9c133833f514141</uuid>
                            <name>{#SENSOR_INFO}: Temperature</name>
                            <type>SNMP_AGENT</type>
                            <snmp_oid>1.3.6.1.4.1.2636.3.1.13.1.7.{#SNMPINDEX}</snmp_oid>
                            <key>sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}]</key>
                            <delay>3m</delay>
                            <history>30d</history>
                            <value_type>FLOAT</value_type>
                            <units>°C</units>
                            <description>MIB: JUNIPER-MIB
The temperature in Celsius (degrees C) of {#SENSOR_INFO}</description>
                            <tags>
                                <tag>
                                    <tag>Application</tag>
                                    <value>Temperature</value>
                                </tag>
                            </tags>
                            <trigger_prototypes>
                                <trigger_prototype>
                                    <uuid>6c56f66a365d49cdbd9aa52d511c6d49</uuid>
                                    <expression>avg(/_Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&gt;{$TEMP_CRIT:&quot;&quot;}</expression>
                                    <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                                    <recovery_expression>max(/_Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&lt;{$TEMP_CRIT:&quot;&quot;}-3</recovery_expression>
                                    <name>{#SENSOR_INFO}: Temperature is above critical threshold: &gt;{$TEMP_CRIT:&quot;&quot;}</name>
                                    <status>DISABLED</status>
                                    <discover>NO_DISCOVER</discover>
                                    <priority>HIGH</priority>
                                    <description>Last value: {ITEM.LASTVALUE1}.
This trigger uses temperature sensor values as well as temperature sensor status if available</description>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <uuid>24110921fd054fca98f03d3bc25f2cca</uuid>
                                    <expression>avg(/_Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&gt;{$TEMP_WARN:&quot;&quot;}</expression>
                                    <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                                    <recovery_expression>max(/_Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&lt;{$TEMP_WARN:&quot;&quot;}-3</recovery_expression>
                                    <name>{#SENSOR_INFO}: Temperature is above warning threshold: &gt;{$TEMP_WARN:&quot;&quot;}</name>
                                    <status>DISABLED</status>
                                    <discover>NO_DISCOVER</discover>
                                    <priority>WARNING</priority>
                                    <description>Last value: {ITEM.LASTVALUE1}.
This trigger uses temperature sensor values as well as temperature sensor status if available</description>
                                    <dependencies>
                                        <dependency>
                                            <name>{#SENSOR_INFO}: Temperature is above critical threshold: &gt;{$TEMP_CRIT:&quot;&quot;}</name>
                                            <expression>avg(/_Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&gt;{$TEMP_CRIT:&quot;&quot;}</expression>
                                            <recovery_expression>max(/_Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&lt;{$TEMP_CRIT:&quot;&quot;}-3</recovery_expression>
                                        </dependency>
                                    </dependencies>
                                </trigger_prototype>
                                <trigger_prototype>
                                    <uuid>daaa3bfab34d45b086a90b6ab80b50b7</uuid>
                                    <expression>avg(/_Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&lt;{$TEMP_CRIT_LOW:&quot;&quot;}</expression>
                                    <recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
                                    <recovery_expression>min(/_Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)&gt;{$TEMP_CRIT_LOW:&quot;&quot;}+3</recovery_expression>
                                    <name>{#SENSOR_INFO}: Temperature is too low: &lt;{$TEMP_CRIT_LOW:&quot;&quot;}</name>
                                    <status>DISABLED</status>
                                    <discover>NO_DISCOVER</discover>
                                    <priority>AVERAGE</priority>
                                    <description>Last value: {ITEM.LASTVALUE1}.</description>
                                </trigger_prototype>
                            </trigger_prototypes>
                        </item_prototype>
                    </item_prototypes>
                    <graph_prototypes>
                        <graph_prototype>
                            <uuid>2f92befaafdc4108a15814ffbbbb6afe</uuid>
                            <name>Temperatura {#SENSOR_INFO}:</name>
                            <graph_items>
                                <graph_item>
                                    <drawtype>GRADIENT_LINE</drawtype>
                                    <color>199C0D</color>
                                    <item>
                                        <host>_Template Net Juniper SNMPv2</host>
                                        <key>sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}]</key>
                                    </item>
                                </graph_item>
                            </graph_items>
                        </graph_prototype>
                    </graph_prototypes>
                </discovery_rule>
            </discovery_rules>
            <tags>
                <tag>
                    <tag>class</tag>
                    <value>network</value>
                </tag>
                <tag>
                    <tag>target</tag>
                    <value>juniper</value>
                </tag>
            </tags>
            <macros>
                <macro>
                    <macro>{$CPU_UTIL_MAX}</macro>
                    <value>90</value>
                </macro>
                <macro>
                    <macro>{$FAN_CRIT_STATUS}</macro>
                    <value>6</value>
                </macro>
                <macro>
                    <macro>{$HEALTH_CRIT_STATUS}</macro>
                    <value>3</value>
                </macro>
                <macro>
                    <macro>{$MEMORY_UTIL_MAX}</macro>
                    <value>80</value>
                </macro>
                <macro>
                    <macro>{$PSU_CRIT_STATUS}</macro>
                    <value>6</value>
                </macro>
                <macro>
                    <macro>{$SNMP_COMMUNITY}</macro>
                    <value>brcsnmp</value>
                </macro>
                <macro>
                    <macro>{$STORAGE_UTIL_CRIT}</macro>
                    <value>90</value>
                </macro>
                <macro>
                    <macro>{$STORAGE_UTIL_WARN}</macro>
                    <value>80</value>
                </macro>
                <macro>
                    <macro>{$TEMP_CRIT}</macro>
                    <value>60</value>
                </macro>
                <macro>
                    <macro>{$TEMP_CRIT:&quot;Routing Engine&quot;}</macro>
                    <value>80</value>
                </macro>
                <macro>
                    <macro>{$TEMP_CRIT_LOW}</macro>
                    <value>5</value>
                </macro>
                <macro>
                    <macro>{$TEMP_WARN}</macro>
                    <value>50</value>
                </macro>
                <macro>
                    <macro>{$TEMP_WARN:&quot;Routing Engine&quot;}</macro>
                    <value>70</value>
                </macro>
            </macros>
            <valuemaps>
                <valuemap>
                    <uuid>6a22315135574936a4af862ec6c3844d</uuid>
                    <name>JUNIPER-ALARM-MIB::jnxOperatingState</name>
                    <mappings>
                        <mapping>
                            <value>1</value>
                            <newvalue>unknown</newvalue>
                        </mapping>
                        <mapping>
                            <value>2</value>
                            <newvalue>running</newvalue>
                        </mapping>
                        <mapping>
                            <value>3</value>
                            <newvalue>ready</newvalue>
                        </mapping>
                        <mapping>
                            <value>4</value>
                            <newvalue>reset</newvalue>
                        </mapping>
                        <mapping>
                            <value>5</value>
                            <newvalue>runningAtFullSpeed</newvalue>
                        </mapping>
                        <mapping>
                            <value>6</value>
                            <newvalue>down or off</newvalue>
                        </mapping>
                        <mapping>
                            <value>7</value>
                            <newvalue>standby</newvalue>
                        </mapping>
                    </mappings>
                </valuemap>
                <valuemap>
                    <uuid>50a006c04a1f40a98141447157af6b6a</uuid>
                    <name>JUNIPER-ALARM-MIB::jnxRedAlarmState</name>
                    <mappings>
                        <mapping>
                            <value>1</value>
                            <newvalue>other</newvalue>
                        </mapping>
                        <mapping>
                            <value>2</value>
                            <newvalue>off</newvalue>
                        </mapping>
                        <mapping>
                            <value>3</value>
                            <newvalue>on - RedAlarm</newvalue>
                        </mapping>
                    </mappings>
                </valuemap>
            </valuemaps>
        </template>
    </templates>
    <triggers>
        <trigger>
            <uuid>9aa5e53c382042289ae360f8ef31c085</uuid>
            <expression>(last(/_ Template Net Juniper-SW/system.hw.uptime[hrSystemUptime.0])&gt;0 and last(/_ Template Net Juniper-SW/system.hw.uptime[hrSystemUptime.0])&lt;10m) or (last(/_ Template Net Juniper-SW/system.hw.uptime[hrSystemUptime.0])=0 and last(/_ Template Net Juniper-SW/system.net.uptime[sysUpTime.0])&lt;10m)</expression>
            <name>Host has been restarted</name>
            <event_name>{HOST.NAME} has been restarted (uptime &lt; 10m)</event_name>
            <priority>WARNING</priority>
            <description>Uptime is less than 10 minutes.</description>
            <manual_close>YES</manual_close>
            <dependencies>
                <dependency>
                    <name>No SNMP data collection</name>
                    <expression>max(/_ Template Net Juniper-SW/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0</expression>
                </dependency>
            </dependencies>
            <tags>
                <tag>
                    <tag>scope</tag>
                    <value>notice</value>
                </tag>
            </tags>
        </trigger>
    </triggers>
</zabbix_export>
