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

update project

parent 14be7dc4
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -23,7 +23,7 @@ from time import time as now_time
from tomllib import loads as toml_loads, TOMLDecodeError
from typing import List, Dict, TextIO
NVDCT_VERSION = '0.8.10-20240614'
NVDCT_VERSION = '0.8.11-20240617'
@unique
......
......@@ -112,6 +112,7 @@
# 2024-06-09: moved topologiy helpers to lib/topologies.py
# moved (default) config file(s) to ./conf/
# 2024-06-14: added debug code for bad IPv4 address data
# 2024-06-17: fixed bad IPv4 address data (just drop it)
# creating topology data json from inventory data
#
......@@ -541,24 +542,27 @@ def create_l3v4_topology(
try:
ipv4_info = Ipv4Info(**_entry)
except TypeError as e:
LOGGER.exception(f'error in ipv4 address data: {e}')
LOGGER.debug(f'host with wrong data: {host}')
LOGGER.debug(f'IPv4 address data: {_entry}')
sys.exit()
LOGGER.warning(f'Drop IPv4 address data for host: {host}, data: {_entry}')
continue
if ipv4_info.address.startswith('127.'): # drop loopback addresses
LOGGER.info(f'host: {host} dropped loopback address: {ipv4_info.address}')
continue
if ipv4_info.cidr == 32: # drop host addresses
LOGGER.info(f'host: {host} dropped host address: {ipv4_info.address}/{ipv4_info.cidr}')
continue
if ipv4_info.type.lower() != 'ipv4': # drop if not ipv4
LOGGER.warning(f'host: {host} dropped non ipv4 address: {ipv4_info.address}, type: {ipv4_info.type}')
continue
if is_ignore_ipv4(ipv4_info.address, ignore_ips):
LOGGER.info(f'host: {host} dropped ignore address: {ipv4_info.address}')
continue
if is_ignore_wildcard(ipv4_info.address, ignore_wildcard):
LOGGER.info(f'host: {host} dropped wildcard address: {ipv4_info.address}')
continue
if network := get_network_summary(
......
......@@ -60,5 +60,5 @@
'title': 'Network Visualization Data Creation Tool (NVDCT)',
'version': '0.8.10-20240614',
'version.min_required': '2.2.0b1',
'version.packaged': '2.2.0p24',
'version.packaged': 'cmk-mkp-tool 0.2.0',
'version.usable_until': '2.4.0p1'}
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