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

update project

parent 0f384cca
No related branches found
No related tags found
No related merge requests found
[PACKAGE]: ../../raw/master/mkp/bgp_peer-2.2.3-20240517.mkp "bgp_peer-2.2.3-20240517.mkp"
[PACKAGE]: ../../raw/master/mkp/bgp_peer-2.2.4-20240607.mkp "bgp_peer-2.2.4-20240607.mkp"
# BGP Peer
Check plugin to monitor the status of BGP peers and inventory plugin for static BGP peer data.
......
File added
......@@ -34,6 +34,7 @@
# 2023-03-26: optimized output of metrics, GetRateError will not be set to 0 anymore
# 2023-08-17: fix removed internal_item form check_default_parameters (THX mail[at]bastian-kuhn[dot]de)
# added warning if internal_item is missing in params
# 2024-06-07: fixed crash on configured state mapping
# Example Agent Output:
# BGP4-MIB
......@@ -134,7 +135,16 @@ def check_bgp_peer(item, params, section: Dict[str, BgpPeer]) -> CheckResult:
else:
item = params['internal_item']
neighborstate = params['neighborstate']
neighborstate = {
'1': 2, # idle
'2': 1, # connect
'3': 1, # active
'4': 1, # opensent
'5': 1, # openconfirm
'6': 0, # established
}
neighborstate.update(params['neighborstate'])
peer_not_found_state = params['peernotfound']
for bgp_connection, bgp_alias, not_found_state in params.get('peer_list', []):
......
......@@ -37,7 +37,7 @@
'web': ['plugins/views/inv_bgp_peer.py']},
'name': 'bgp_peer',
'title': 'BGP Peer',
'version': '2.2.3-20240517',
'version': '2.2.4-20240607',
'version.min_required': '2.2.0b1',
'version.packaged': '2.2.0p24',
'version.usable_until': None}
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