Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 88e36838 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

modified for check APIv2

parent 32bf99ba
No related branches found
No related tags found
No related merge requests found
[PACKAGE]: ../../raw/master/mkp/huawei_bgp_peer-1.0.0-20230613.mkp "huawei_bgp_peer-1.0.0-20230613.mkp"
[PACKAGE]: ../../raw/master/mkp/huawei_bgp_peer-1.0.1-20250329.mkp "huawei_bgp_peer-1.0.1-20250329.mkp"
# Huawei BGP Peer
Monitors status of Huawei BGP peers (HUAWEI-BGP-VPN-MIB)
......
File added
......@@ -11,13 +11,15 @@
#
# Monitor status of Huawei BGP Peers (IPv4 and IPv6)
#
# 2020-07-20: added BGP prefix counter
# 2022-04-30: code cleanup/streamlining
# 2022-05-09: added item to BgpPeer class, this is used in the discovery function
# 2022-05-11: changed bgp_get_peer_entry to get proper parameters instead of Nontransparent list
# added remote_as to BgpPeerItem
# 2022-05-12: changed IPv6 address format to lower case as required by rfc5952 section-4.3 (this affects IPv6 peers)
# 2023-06-13: moved metrics definition to to bgp_peer base plugin
# 2023-06-13: moved metrics definition to bgp_peer base plugin
# 2025-03-29: moved to check APIv2 to prepare for CMK2.4
# snmpwalk sample
# .1.3.6.1.4.1.2011.5.25.177.1.1.2.1.1.0.2.1.2.16.32.32.9.200.0.2.0.1.0.0.0.0.31.100.0.7 = Gauge32: 4
......@@ -63,19 +65,17 @@
from typing import List, Dict
from cmk.base.plugins.agent_based.agent_based_api.v1 import (
register,
from cmk.agent_based.v2 import (
SNMPSection,
SNMPTree,
StringTable,
OIDEnd,
startswith,
)
from cmk.base.plugins.agent_based.agent_based_api.v1.type_defs import (
StringTable,
)
from cmk.base.plugins.agent_based.utils.bgp_peer import (
bgp_get_ip_address_from_oid,
from cmk_addons.plugins.bgp_peer.lib.bgp_peer import (
BgpPeer,
bgp_get_ip_address_from_oid,
bgp_get_peer_entry,
)
......@@ -181,7 +181,7 @@ def parse_huawei_bgp_peer(string_table: List[StringTable]) -> Dict[str, BgpPeer]
return peer_table
register.snmp_section(
snmp_section_huawei_bgp_peer = SNMPSection(
name='huawei_bgp_peer',
parse_function=parse_huawei_bgp_peer,
parsed_section_name='bgp_peer',
......
......@@ -13,10 +13,10 @@
'(https://thl-cmk.hopto.org/gitlab/checkmk/vendor-independent/bgp_peer)\n'
' \n',
'download_url': 'https://thl-cmk.hopto.org/gitlab/checkmk/huawei/huawei_bgp_peer',
'files': {'agent_based': ['huawei_bgp_peer.py']},
'files': {'cmk_addons_plugins': ['bgp_peer/agent_based/huawei_bgp_peer.py']},
'name': 'huawei_bgp_peer',
'title': 'Huawei BGP Peer',
'version': '1.0.0-20230613',
'version.min_required': '2.1.0b1',
'version.packaged': '2.2.0p24',
'version.usable_until': None}
'version': '1.0.1-20250329',
'version.min_required': '2.3.0b1',
'version.packaged': 'cmk-mkp-tool 0.2.0',
'version.usable_until': '2.5.0b1'}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment