From 6f090a3982cadcd38f58ac3004fb6d1a2fe6980a Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Wed, 6 Sep 2023 21:21:25 +0200 Subject: [PATCH] Linspector is not thread safe including this version! (0.30.0) --- bin/linspector | 2 +- linspector/monitors.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/linspector b/bin/linspector index c05c1d9..d90add1 100755 --- a/bin/linspector +++ b/bin/linspector @@ -23,7 +23,7 @@ from linspector.monitors import Monitors __author__ = 'Johannes Findeisen' __author_email__ = 'you@hanez.org' __description__ = 'linspector is a infrastructure and system monitoring daemon and toolchain.' -__version__ = '0.29.0' +__version__ = '0.30.0' sys.stderr = open('/dev/null', 'w') diff --git a/linspector/monitors.py b/linspector/monitors.py index b9558aa..1ba51da 100644 --- a/linspector/monitors.py +++ b/linspector/monitors.py @@ -5,6 +5,7 @@ See LICENSE. """ import configparser +import copy import glob import os @@ -16,7 +17,7 @@ from linspector.monitor import Monitor # when changed dynamically. better: add a hash of the config file of each monitor to each monitor # object and if it has changed reload the monitor. e.g. delete it from the scheduler and reschedule. # if a new monitor is added at runtime it needs to be checked manually by running a "reload" command -# to lish which walks thrue all scheduled jobs and when an unknown monitor is found, schedule it. +# to lish which walks through all scheduled jobs and when an unknown monitor is found, schedule it. class Monitors: def __init__(self, configuration, environment, log, notifications, services, tasks): self._configuration = configuration