Adicionar templates/huawei/Template_Huawei-BGP.yaml
This commit is contained in:
parent
41c0f8ab5d
commit
90e4d67e78
204
templates/huawei/Template_Huawei-BGP.yaml
Normal file
204
templates/huawei/Template_Huawei-BGP.yaml
Normal file
@ -0,0 +1,204 @@
|
||||
zabbix_export:
|
||||
version: '7.0'
|
||||
template_groups:
|
||||
- uuid: 36bff6c29af64692839d077febfc7079
|
||||
name: 'Templates/Network devices'
|
||||
- uuid: b01bb96a1ed547e1a8770677a646aa3c
|
||||
name: 'Templates IPv0'
|
||||
templates:
|
||||
- uuid: 24ddc6a9eda54bdb99c4aeb7022cd103
|
||||
template: 'Template Huawei BGP - by IPv0'
|
||||
name: 'Template Huawei BGP - by IPv0'
|
||||
description: 'Template for Huawei VRP to monitor BGP sessions'
|
||||
vendor:
|
||||
name: IPv0
|
||||
version: 7.0-1
|
||||
groups:
|
||||
- name: 'Templates/Network devices'
|
||||
- name: 'Templates IPv0'
|
||||
items:
|
||||
- uuid: 2dc84ab8ef1c482cbb615197eec0314d
|
||||
name: 'Total IPv4 FIB Routes'
|
||||
type: SNMP_AGENT
|
||||
snmp_oid: .1.3.6.1.2.1.4.24.3.0
|
||||
key: hwIPv4FibRoutes
|
||||
delay: 5m
|
||||
history: 7d
|
||||
trends: 30d
|
||||
units: Prefixes
|
||||
tags:
|
||||
- tag: Application
|
||||
value: 'Routing Table Info'
|
||||
- uuid: 834909c6333e41388f89806f1555a42a
|
||||
name: 'Total IPv4 RIB Routes'
|
||||
type: SNMP_AGENT
|
||||
snmp_oid: .1.3.6.1.4.1.2011.5.25.177.9.1.0
|
||||
key: hwIPv4RibRoutes
|
||||
delay: 5m
|
||||
history: 7d
|
||||
trends: 30d
|
||||
units: Prefixes
|
||||
tags:
|
||||
- tag: Application
|
||||
value: 'Routing Table Info'
|
||||
- uuid: 9b3f36e9881446468f758a72a5088b7d
|
||||
name: 'Total IPv6 FIB Routes'
|
||||
type: SNMP_AGENT
|
||||
snmp_oid: 1.3.6.1.2.1.55.1.9.0
|
||||
key: hwIPv6FibRoutes
|
||||
delay: 5m
|
||||
history: 7d
|
||||
trends: 30d
|
||||
units: Prefixes
|
||||
tags:
|
||||
- tag: Application
|
||||
value: 'Routing Table Info'
|
||||
discovery_rules:
|
||||
- uuid: 8a2ee36a480a46b4b6b115de4ed21529
|
||||
name: 'BGP4 Peer(s)'
|
||||
type: EXTERNAL
|
||||
key: 'discovery_hw_bgp_peers.py["{HOST.CONN}","{$SNMP_COMMUNITY}","{$SNMP_PORTA}"]'
|
||||
delay: 1h
|
||||
enabled_lifetime_type: DISABLE_NEVER
|
||||
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]'
|
||||
item_prototypes:
|
||||
- uuid: 5f3b6d48b21d448293e28d0afa949d5b
|
||||
name: 'IP Peer AS{#ASNUM} ({#PEERNAME})'
|
||||
type: SNMP_AGENT
|
||||
snmp_oid: '.1.3.6.1.4.1.2011.5.25.177.1.1.2.1.4.0.{#SNMPINDEX}'
|
||||
key: 'Bgp.Peer[{#SNMPINDEX}]'
|
||||
delay: 1h
|
||||
value_type: TEXT
|
||||
trends: '0'
|
||||
status: DISABLED
|
||||
discover: NO_DISCOVER
|
||||
tags:
|
||||
- tag: bgp
|
||||
value: peers
|
||||
- tag: peer
|
||||
value: '{#ASNUM}'
|
||||
- uuid: 16d190973c3344419e313bc89b0af6d0
|
||||
name: 'Uptime {#BGPPEER} - AS{#ASNUM} - ({#PEERNAME})'
|
||||
type: SNMP_AGENT
|
||||
snmp_oid: '1.3.6.1.4.1.2011.5.25.177.1.1.2.1.7.0.{#SNMPINDEX}'
|
||||
key: 'BgpPeerFsmEstablishedTime[{#BGPPEER}]'
|
||||
history: 30d
|
||||
trends: 90d
|
||||
units: uptime
|
||||
tags:
|
||||
- tag: bgp
|
||||
value: peers
|
||||
- tag: bgp
|
||||
value: uptime
|
||||
- tag: peer
|
||||
value: '{#ASNUM}'
|
||||
- uuid: e5cbcc63ee5c4646bb0c783314f1bf43
|
||||
name: 'Prefixos {#BGPPEER} - AS{#ASNUM} - ({#PEERNAME})'
|
||||
type: SNMP_AGENT
|
||||
snmp_oid: '1.3.6.1.4.1.2011.5.25.177.1.1.3.1.1.0.{#SNMPINDEX}'
|
||||
key: 'BgpPeerRoutes[{#BGPPEER}]'
|
||||
history: 30d
|
||||
trends: 90d
|
||||
units: prefixes
|
||||
tags:
|
||||
- tag: bgp
|
||||
value: peers
|
||||
- tag: bgp
|
||||
value: prefixos
|
||||
- tag: peer
|
||||
value: '{#ASNUM}'
|
||||
- uuid: b195302e6eed4f56b00f01623dfa7271
|
||||
name: 'Status {#BGPPEER} - AS{#ASNUM} - ({#PEERNAME})'
|
||||
type: SNMP_AGENT
|
||||
snmp_oid: '1.3.6.1.4.1.2011.5.25.177.1.1.2.1.5.0.{#SNMPINDEX}'
|
||||
key: 'BgpPeerState[{#BGPPEER}]'
|
||||
history: 30d
|
||||
trends: 90d
|
||||
valuemap:
|
||||
name: BgpPeerState
|
||||
tags:
|
||||
- tag: bgp
|
||||
value: peers
|
||||
- tag: bgp
|
||||
value: status
|
||||
- tag: peer
|
||||
value: '{#ASNUM}'
|
||||
trigger_prototypes:
|
||||
- uuid: 1b3049a16e7b4bd487ea83e7897139d9
|
||||
expression: |
|
||||
last(/Template Huawei BGP - by IPv0/BgpPeerState[{#BGPPEER}])<>6
|
||||
and
|
||||
last(/Template Huawei BGP - by IPv0/BgpPeerState[{#BGPPEER}],#2)=6
|
||||
recovery_mode: RECOVERY_EXPRESSION
|
||||
recovery_expression: 'last(/Template Huawei BGP - by IPv0/BgpPeerState[{#BGPPEER}])=6'
|
||||
name: 'Peer {#BGPPEER} - AS{#ASNUM} - ({#PEERNAME}) is DOWN!'
|
||||
priority: AVERAGE
|
||||
manual_close: 'YES'
|
||||
tags:
|
||||
- tag: bgp-peer
|
||||
timeout: 10s
|
||||
tags:
|
||||
- tag: ipv0
|
||||
- tag: target
|
||||
value: huawei
|
||||
macros:
|
||||
- macro: '{$SNMP_PORTA}'
|
||||
value: '161'
|
||||
valuemaps:
|
||||
- uuid: e1fae0345e234608b70c9a389b654e0b
|
||||
name: BgpPeerState
|
||||
mappings:
|
||||
- value: '1'
|
||||
newvalue: idle
|
||||
- value: '2'
|
||||
newvalue: connect
|
||||
- value: '3'
|
||||
newvalue: active
|
||||
- value: '4'
|
||||
newvalue: opensent
|
||||
- value: '5'
|
||||
newvalue: openconfirm
|
||||
- value: '6'
|
||||
newvalue: established
|
||||
graphs:
|
||||
- uuid: eb7826ff54d043b4b928b6db4fb6d4ae
|
||||
name: 'FIB - IPv4'
|
||||
graph_items:
|
||||
- sortorder: '1'
|
||||
drawtype: FILLED_REGION
|
||||
color: 00EE00
|
||||
item:
|
||||
host: 'Template Huawei BGP - by IPv0'
|
||||
key: hwIPv4FibRoutes
|
||||
- uuid: ee655f29b1784cdfa4b733d87f742379
|
||||
name: 'FIB - IPv6'
|
||||
graph_items:
|
||||
- sortorder: '1'
|
||||
color: F63100
|
||||
item:
|
||||
host: 'Template Huawei BGP - by IPv0'
|
||||
key: hwIPv6FibRoutes
|
||||
- uuid: 10ad7fa634e348538077986b6b4d5905
|
||||
name: 'RIB - IPv4'
|
||||
graph_items:
|
||||
- sortorder: '1'
|
||||
drawtype: FILLED_REGION
|
||||
color: EE0000
|
||||
item:
|
||||
host: 'Template Huawei BGP - by IPv0'
|
||||
key: hwIPv4RibRoutes
|
||||
- uuid: 6da07b4c9eaf4814874c95ec9bd828c1
|
||||
name: 'RIB x FIB - IPv4'
|
||||
graph_items:
|
||||
- sortorder: '1'
|
||||
drawtype: BOLD_LINE
|
||||
color: 00EE00
|
||||
item:
|
||||
host: 'Template Huawei BGP - by IPv0'
|
||||
key: hwIPv4FibRoutes
|
||||
- sortorder: '2'
|
||||
drawtype: BOLD_LINE
|
||||
color: EE0000
|
||||
item:
|
||||
host: 'Template Huawei BGP - by IPv0'
|
||||
key: hwIPv4RibRoutes
|
||||
Loading…
x
Reference in New Issue
Block a user