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

reordered details output

parent c86764f8
No related branches found
No related tags found
No related merge requests found
[PACKAGE]: ../../raw/master/mkp/bgp_topology-0.0.4-20240116.mkp "bgp_topology-0.0.4-20240116.mkp"
[PACKAGE]: ../../raw/master/mkp/bgp_topology-0.0.4-20250302.mkp "bgp_topology-0.0.4-20250302.mkp"
# BGP Topology
This plugin will create a Network Visualization Topology from the Peer relations of your _BGP peer services_ in Checkmk.
......
File added
......@@ -13,7 +13,7 @@
__AUTHOR__ = 'thl-cmk[at]outlook[dot]com'
__URL__ = 'https://thl-cmk.hopto.org/gitlab/checkmk/vendor-independent/bgp_topology'
__USAGE__ = '~/local/lib/python3/cmk_addons/plugins/bgp_topology/libexec/check_bgp_topology --make-default --host bgp1'
__VERSION__ = '0.0.4-20250116'
__VERSION__ = '0.0.4-20250302'
from typing import Final
......
......@@ -13,7 +13,8 @@
# fixed handling of anchors
# changed topology name to be always BGP_{host}
# 2025-01-04: changed output directory to host name only
# 2025-0116: fixed missing lib/args.py in MKP package
# 2025-01-16: fixed missing lib/args.py in MKP package (LRavelo[at]fsx[dot]com)
# 2025-03-02: reordered details output
from collections.abc import MutableMapping, MutableSequence, Sequence
from dataclasses import dataclass
......@@ -259,12 +260,12 @@ def create_bgp_topology(params: Params | None) -> int:
summary.append(f'Connections: {len(connections.topo_connections)}')
details.append(f'Connections: {len(connections.topo_connections)}')
details.append(f'Written to: {BASE_TOPO_PATH}/{sub_directory}/data_{TOPOLOGY_NAME.lower()}.json')
value = (time_ns() - start_time) / 1e9
summary.append(f'Time taken: {render.timespan(value)}')
details.append(f'Time taken: {render.timespan(value)}')
details.append(f'Written to: {BASE_TOPO_PATH}/{sub_directory}/data_{TOPOLOGY_NAME.lower()}.json')
details.append(f'Plugin version: {__VERSION__}')
perf_data = Metric(
......
......@@ -33,7 +33,7 @@
'bgp_topology/lib/args.py']},
'name': 'bgp_topology',
'title': 'BGP peer topology',
'version': '0.0.4-20240116',
'version': '0.0.4-20250302',
'version.min_required': '2.3.0b1',
'version.packaged': 'cmk-mkp-tool 0.2.0',
'version.usable_until': '2.4.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