Template BGP Huawei
This commit is contained in:
parent
400b6b8a71
commit
e543d769f8
322
templates/bgp/Template_Net_Huawei_VRP_SNMPv2_BGP.xml
Normal file
322
templates/bgp/Template_Net_Huawei_VRP_SNMPv2_BGP.xml
Normal file
@ -0,0 +1,322 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<zabbix_export>
|
||||
<version>7.0</version>
|
||||
<template_groups>
|
||||
<template_group>
|
||||
<uuid>36bff6c29af64692839d077febfc7079</uuid>
|
||||
<name>Templates/Network devices</name>
|
||||
</template_group>
|
||||
<template_group>
|
||||
<uuid>b01bb96a1ed547e1a8770677a646aa3c</uuid>
|
||||
<name>Templates IPv0</name>
|
||||
</template_group>
|
||||
</template_groups>
|
||||
<templates>
|
||||
<template>
|
||||
<uuid>24ddc6a9eda54bdb99c4aeb7022cd103</uuid>
|
||||
<template>Template Net Huawei VRP SNMPv2 BGP - by IPv0</template>
|
||||
<name>Template Net Huawei VRP SNMPv2 BGP - by IPv0</name>
|
||||
<description>Template for Huawei VRP to monitor BGP sessions</description>
|
||||
<vendor>
|
||||
<name>IPv0</name>
|
||||
<version>7.0-1</version>
|
||||
</vendor>
|
||||
<groups>
|
||||
<group>
|
||||
<name>Templates/Network devices</name>
|
||||
</group>
|
||||
<group>
|
||||
<name>Templates IPv0</name>
|
||||
</group>
|
||||
</groups>
|
||||
<items>
|
||||
<item>
|
||||
<uuid>2dc84ab8ef1c482cbb615197eec0314d</uuid>
|
||||
<name>Total IPv4 FIB Routes</name>
|
||||
<type>SNMP_AGENT</type>
|
||||
<snmp_oid>.1.3.6.1.2.1.4.24.3.0</snmp_oid>
|
||||
<key>hwIPv4FibRoutes</key>
|
||||
<delay>5m</delay>
|
||||
<history>7d</history>
|
||||
<trends>30d</trends>
|
||||
<units>Prefixes</units>
|
||||
<tags>
|
||||
<tag>
|
||||
<tag>application</tag>
|
||||
<value>routing table info</value>
|
||||
</tag>
|
||||
</tags>
|
||||
</item>
|
||||
<item>
|
||||
<uuid>834909c6333e41388f89806f1555a42a</uuid>
|
||||
<name>Total IPv4 RIB Routes</name>
|
||||
<type>SNMP_AGENT</type>
|
||||
<snmp_oid>.1.3.6.1.4.1.2011.5.25.177.9.1.0</snmp_oid>
|
||||
<key>hwIPv4RibRoutes</key>
|
||||
<delay>5m</delay>
|
||||
<history>7d</history>
|
||||
<trends>30d</trends>
|
||||
<units>Prefixes</units>
|
||||
<tags>
|
||||
<tag>
|
||||
<tag>application</tag>
|
||||
<value>routing table info</value>
|
||||
</tag>
|
||||
</tags>
|
||||
</item>
|
||||
<item>
|
||||
<uuid>9b3f36e9881446468f758a72a5088b7d</uuid>
|
||||
<name>Total IPv6 FIB Routes</name>
|
||||
<type>SNMP_AGENT</type>
|
||||
<snmp_oid>1.3.6.1.2.1.55.1.9.0</snmp_oid>
|
||||
<key>hwIPv6FibRoutes</key>
|
||||
<delay>5m</delay>
|
||||
<history>7d</history>
|
||||
<trends>30d</trends>
|
||||
<units>Prefixes</units>
|
||||
<tags>
|
||||
<tag>
|
||||
<tag>application</tag>
|
||||
<value>routing table info</value>
|
||||
</tag>
|
||||
</tags>
|
||||
</item>
|
||||
</items>
|
||||
<discovery_rules>
|
||||
<discovery_rule>
|
||||
<uuid>8a2ee36a480a46b4b6b115de4ed21529</uuid>
|
||||
<name>BGP4 Peer(s)</name>
|
||||
<type>EXTERNAL</type>
|
||||
<key>discovery_bgp_peers_hw.py["{HOST.CONN}","{$SNMP_COMMUNITY}","{$SNMP_PORTA}"]</key>
|
||||
<delay>1h</delay>
|
||||
<enabled_lifetime_type>DISABLE_NEVER</enabled_lifetime_type>
|
||||
<description>discovery[{#BGPPEER},.1.3.6.1.4.1.2011.5.25.177.1.1.2.1.4.0,{#ASNUM},.1.3.6.1.4.1.2011.5.25.177.1.1.2.1.2.0,{#ADMSTATUS},.1.3.6.1.4.1.2011.5.25.177.1.1.2.1.11.0]</description>
|
||||
<item_prototypes>
|
||||
<item_prototype>
|
||||
<uuid>16d190973c3344419e313bc89b0af6d0</uuid>
|
||||
<name>Peer {#BGPPEER} (AS{#ASNUM} - {#PEERNAME}): Uptime</name>
|
||||
<type>SNMP_AGENT</type>
|
||||
<snmp_oid>1.3.6.1.4.1.2011.5.25.177.1.1.2.1.7.0.{#SNMPINDEX}</snmp_oid>
|
||||
<key>BgpPeerFsmEstablishedTime[{#BGPPEER}]</key>
|
||||
<history>30d</history>
|
||||
<trends>90d</trends>
|
||||
<units>uptime</units>
|
||||
<tags>
|
||||
<tag>
|
||||
<tag>application</tag>
|
||||
<value>bgp</value>
|
||||
</tag>
|
||||
<tag>
|
||||
<tag>bgp</tag>
|
||||
<value>peers</value>
|
||||
</tag>
|
||||
<tag>
|
||||
<tag>bgp</tag>
|
||||
<value>uptime</value>
|
||||
</tag>
|
||||
<tag>
|
||||
<tag>peer</tag>
|
||||
<value>{#ASNUM}</value>
|
||||
</tag>
|
||||
</tags>
|
||||
</item_prototype>
|
||||
<item_prototype>
|
||||
<uuid>e5cbcc63ee5c4646bb0c783314f1bf43</uuid>
|
||||
<name>Peer {#BGPPEER} (AS{#ASNUM} - {#PEERNAME}): Prefixos</name>
|
||||
<type>SNMP_AGENT</type>
|
||||
<snmp_oid>1.3.6.1.4.1.2011.5.25.177.1.1.3.1.1.0.{#SNMPINDEX}</snmp_oid>
|
||||
<key>BgpPeerRoutes[{#BGPPEER}]</key>
|
||||
<history>30d</history>
|
||||
<trends>90d</trends>
|
||||
<units>prefixes</units>
|
||||
<tags>
|
||||
<tag>
|
||||
<tag>application</tag>
|
||||
<value>bgp</value>
|
||||
</tag>
|
||||
<tag>
|
||||
<tag>bgp</tag>
|
||||
<value>peers</value>
|
||||
</tag>
|
||||
<tag>
|
||||
<tag>bgp</tag>
|
||||
<value>prefixos</value>
|
||||
</tag>
|
||||
<tag>
|
||||
<tag>peer</tag>
|
||||
<value>{#ASNUM}</value>
|
||||
</tag>
|
||||
</tags>
|
||||
</item_prototype>
|
||||
<item_prototype>
|
||||
<uuid>b195302e6eed4f56b00f01623dfa7271</uuid>
|
||||
<name>Peer {#BGPPEER} (AS{#ASNUM} - {#PEERNAME}): Status</name>
|
||||
<type>SNMP_AGENT</type>
|
||||
<snmp_oid>1.3.6.1.4.1.2011.5.25.177.1.1.2.1.5.0.{#SNMPINDEX}</snmp_oid>
|
||||
<key>BgpPeerState[{#BGPPEER}]</key>
|
||||
<history>30d</history>
|
||||
<trends>90d</trends>
|
||||
<valuemap>
|
||||
<name>BgpPeerState</name>
|
||||
</valuemap>
|
||||
<tags>
|
||||
<tag>
|
||||
<tag>application</tag>
|
||||
<value>bgp</value>
|
||||
</tag>
|
||||
<tag>
|
||||
<tag>bgp</tag>
|
||||
<value>peers</value>
|
||||
</tag>
|
||||
<tag>
|
||||
<tag>bgp</tag>
|
||||
<value>status</value>
|
||||
</tag>
|
||||
<tag>
|
||||
<tag>peer</tag>
|
||||
<value>{#ASNUM}</value>
|
||||
</tag>
|
||||
</tags>
|
||||
<trigger_prototypes>
|
||||
<trigger_prototype>
|
||||
<uuid>1b3049a16e7b4bd487ea83e7897139d9</uuid>
|
||||
<expression>last(/Template Net Huawei VRP SNMPv2 BGP - by IPv0/BgpPeerState[{#BGPPEER}])<>6
|
||||
and
|
||||
last(/Template Net Huawei VRP SNMPv2 BGP - by IPv0/BgpPeerState[{#BGPPEER}],#2)=6</expression>
|
||||
<recovery_mode>RECOVERY_EXPRESSION</recovery_mode>
|
||||
<recovery_expression>last(/Template Net Huawei VRP SNMPv2 BGP - by IPv0/BgpPeerState[{#BGPPEER}])=6</recovery_expression>
|
||||
<name>Peer {#BGPPEER} (AS{#ASNUM} - {#PEERNAME})</name>
|
||||
<priority>AVERAGE</priority>
|
||||
<manual_close>YES</manual_close>
|
||||
<tags>
|
||||
<tag>
|
||||
<tag>bgp-peer</tag>
|
||||
</tag>
|
||||
</tags>
|
||||
</trigger_prototype>
|
||||
</trigger_prototypes>
|
||||
</item_prototype>
|
||||
</item_prototypes>
|
||||
<timeout>10s</timeout>
|
||||
</discovery_rule>
|
||||
</discovery_rules>
|
||||
<tags>
|
||||
<tag>
|
||||
<tag>ipv0</tag>
|
||||
</tag>
|
||||
<tag>
|
||||
<tag>target</tag>
|
||||
<value>huawei</value>
|
||||
</tag>
|
||||
</tags>
|
||||
<macros>
|
||||
<macro>
|
||||
<macro>{$SNMP_PORTA}</macro>
|
||||
<value>161</value>
|
||||
</macro>
|
||||
</macros>
|
||||
<valuemaps>
|
||||
<valuemap>
|
||||
<uuid>e1fae0345e234608b70c9a389b654e0b</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>
|
||||
</templates>
|
||||
<graphs>
|
||||
<graph>
|
||||
<uuid>eb7826ff54d043b4b928b6db4fb6d4ae</uuid>
|
||||
<name>FIB - IPv4</name>
|
||||
<graph_items>
|
||||
<graph_item>
|
||||
<sortorder>1</sortorder>
|
||||
<drawtype>FILLED_REGION</drawtype>
|
||||
<color>00EE00</color>
|
||||
<item>
|
||||
<host>Template Net Huawei VRP SNMPv2 BGP - by IPv0</host>
|
||||
<key>hwIPv4FibRoutes</key>
|
||||
</item>
|
||||
</graph_item>
|
||||
</graph_items>
|
||||
</graph>
|
||||
<graph>
|
||||
<uuid>ee655f29b1784cdfa4b733d87f742379</uuid>
|
||||
<name>FIB - IPv6</name>
|
||||
<graph_items>
|
||||
<graph_item>
|
||||
<sortorder>1</sortorder>
|
||||
<color>F63100</color>
|
||||
<item>
|
||||
<host>Template Net Huawei VRP SNMPv2 BGP - by IPv0</host>
|
||||
<key>hwIPv6FibRoutes</key>
|
||||
</item>
|
||||
</graph_item>
|
||||
</graph_items>
|
||||
</graph>
|
||||
<graph>
|
||||
<uuid>10ad7fa634e348538077986b6b4d5905</uuid>
|
||||
<name>RIB - IPv4</name>
|
||||
<graph_items>
|
||||
<graph_item>
|
||||
<sortorder>1</sortorder>
|
||||
<drawtype>FILLED_REGION</drawtype>
|
||||
<color>EE0000</color>
|
||||
<item>
|
||||
<host>Template Net Huawei VRP SNMPv2 BGP - by IPv0</host>
|
||||
<key>hwIPv4RibRoutes</key>
|
||||
</item>
|
||||
</graph_item>
|
||||
</graph_items>
|
||||
</graph>
|
||||
<graph>
|
||||
<uuid>6da07b4c9eaf4814874c95ec9bd828c1</uuid>
|
||||
<name>RIB x FIB - IPv4</name>
|
||||
<graph_items>
|
||||
<graph_item>
|
||||
<sortorder>1</sortorder>
|
||||
<drawtype>BOLD_LINE</drawtype>
|
||||
<color>00EE00</color>
|
||||
<item>
|
||||
<host>Template Net Huawei VRP SNMPv2 BGP - by IPv0</host>
|
||||
<key>hwIPv4FibRoutes</key>
|
||||
</item>
|
||||
</graph_item>
|
||||
<graph_item>
|
||||
<sortorder>2</sortorder>
|
||||
<drawtype>BOLD_LINE</drawtype>
|
||||
<color>EE0000</color>
|
||||
<item>
|
||||
<host>Template Net Huawei VRP SNMPv2 BGP - by IPv0</host>
|
||||
<key>hwIPv4RibRoutes</key>
|
||||
</item>
|
||||
</graph_item>
|
||||
</graph_items>
|
||||
</graph>
|
||||
</graphs>
|
||||
</zabbix_export>
|
||||
Loading…
x
Reference in New Issue
Block a user