diff --git a/README.md b/README.md index 89de4533519b9ef1662e8632d3709dd7273d9a55..0e0a0cd16e82639c875bde320b281b0756ca9aa7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[PACKAGE]: ../../raw/master/mkp/nvdct-0.9.0-20240923.mkp "nvdct-0.9.0-20240923.mkp" +[PACKAGE]: ../../raw/master/mkp/nvdct-0.9.1-20241110.mkp "nvdct-0.9.1-20241110.mkp" # Network Visualization Data Creation Tool (NVDCT) This script creates the topology data file needed for the [Checkmk Exchange Network visualization](https://exchange.checkmk.com/p/network-visualization) plugin.\ diff --git a/mkp/nvdct-0.9.1-20241110.mkp b/mkp/nvdct-0.9.1-20241110.mkp new file mode 100644 index 0000000000000000000000000000000000000000..fb6d752365a10f523c215edf2423f28d07a5fca5 Binary files /dev/null and b/mkp/nvdct-0.9.1-20241110.mkp differ diff --git a/source/bin/nvdct/lib/backends.py b/source/bin/nvdct/lib/backends.py index 6d003fd855470c40d713d9e2b6ecc50c51b90246..cec1bf37869d0ec00908f04a6bbf0e17765e3afc 100755 --- a/source/bin/nvdct/lib/backends.py +++ b/source/bin/nvdct/lib/backends.py @@ -9,6 +9,7 @@ # File : nvdct/lib/backends.py # 2024-06-18: fixed host_exist returns always True if host was in host_cache, even with host=None +# 2024-09-25: fixed crash on missing "customer" section in site config file from collections.abc import Mapping, Sequence from abc import abstractmethod @@ -380,7 +381,7 @@ class HostCacheMultiSite(HostCacheLiveStatus): self.sites.update({site: { 'alias': data['alias'], 'timeout': data['timeout'], - 'customer': data['customer'] # needed to filter by customer + 'customer': data.get('customer') # needed to filter by customer # 'nagios_url': '/nagios/', }}) if data['socket'] == ('local', None): diff --git a/source/bin/nvdct/lib/utils.py b/source/bin/nvdct/lib/utils.py index d92a87de116cc4343da4454f6fd9cdc6eb350802..5b74464d0805f62db3c53f1a87a6d639b0fbee9b 100755 --- a/source/bin/nvdct/lib/utils.py +++ b/source/bin/nvdct/lib/utils.py @@ -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.9.0-20240923' +NVDCT_VERSION = '0.9.1-20241110' @unique diff --git a/source/packages/nvdct b/source/packages/nvdct index 61fa09521d0092bca60c49a0fa3e63a38ec50510..0302612a09b111180ac434963731ccb95dbd45f9 100644 --- a/source/packages/nvdct +++ b/source/packages/nvdct @@ -54,7 +54,7 @@ 'htdocs/images/icons/location_80.png']}, 'name': 'nvdct', 'title': 'Network Visualization Data Creation Tool (NVDCT)', - 'version': '0.9.0-20240923', + 'version': '0.9.1-20241110', 'version.min_required': '2.3.0b1', 'version.packaged': 'cmk-mkp-tool 0.2.0', 'version.usable_until': '2.4.0p1'}