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 207f5ba6 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 07251b01
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@
#
# 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
#
# snmpwalk sample
......@@ -132,7 +133,7 @@ def parse_huawei_bgp_peer(string_table: List[StringTable]) -> Dict[str, BgpPeer]
bgp_peer = bgp_get_peer_entry([
remote_address,
state,
'2', # admin_state not admin_down
'2', # admin_state set to not admin_down
None, # in_updates
None, # out_updates
None, # in_messages
......@@ -148,6 +149,7 @@ def parse_huawei_bgp_peer(string_table: List[StringTable]) -> Dict[str, BgpPeer]
item = f'{remote_address} {adress_family}'
bgp_peer[remote_address].peer_unavail_reason = int(unavail_reason)
bgp_peer[remote_address].peer_unavail_reason_str = _huawei_bgp_peer_unavail_reason(int(unavail_reason))
bgp_peer[remote_address].item['address_family'] = adress_family
bgp_peer = {item: bgp_peer[remote_address]}
peer_table.update(bgp_peer)
......
No preview for this file type
......@@ -16,7 +16,7 @@
'name': 'huawei_bgp_peer',
'num_files': 2,
'title': 'Huawei BGP Peer',
'version': '20220418.v.0.2',
'version': '20220509.v.0.3',
'version.min_required': '2.0.0',
'version.packaged': '2021.09.20',
'version.usable_until': None}
\ No newline at end of file
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