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

fixed crash on empty alias list in params

parent 5992b5a0
No related branches found
No related tags found
No related merge requests found
[PACKAGE]: ../../raw/master/mkp/bgp_peer-2.3.0-20250329.mkp "bgp_peer-2.3.0-20250329.mkp"
[PACKAGE]: ../../raw/master/mkp/bgp_peer-2.3.1-20250403.mkp "bgp_peer-2.3.1-20250403.mkp"
# BGP Peer
Check plugin to monitor the status of BGP peers and inventory plugin for static BGP peer data.
......
File added
......@@ -37,6 +37,7 @@
# 2024-06-07: fixed crash on configured state mapping
# 2024-12-20: added local address/as/identifier for bgp_topology
# 2025-03-29: refactored for ruleset APIv1
# 2025-04-03: fixed crash on empty alias list in params
# Example Agent Output:
# BGP4-MIB
......@@ -164,7 +165,7 @@ def _rewrite_ruleset_needed(params: dict) -> bool:
if key in '123456':
return True
case 'peer_list':
if isinstance(value[0], tuple):
if value and isinstance(value[0], tuple):
return True
return False
......
......@@ -39,7 +39,7 @@
'web': ['plugins/views/inv_bgp_peer.py']},
'name': 'bgp_peer',
'title': 'BGP Peer',
'version': '2.3.0-20250329',
'version': '2.3.1-20250403',
'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