From 855c06415e149905c23fa8a3d9856d3b3b572a9b Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Fri, 26 May 2023 21:41:42 +0200 Subject: [PATCH] v1.0.5 --- opnsense_checkmk_agent.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/opnsense_checkmk_agent.py b/opnsense_checkmk_agent.py index 249fc4d..2219619 100644 --- a/opnsense_checkmk_agent.py +++ b/opnsense_checkmk_agent.py @@ -27,7 +27,7 @@ ## * smartdisk - install the mkp from https://github.com/bashclub/checkmk-smart plugins os-smart ## * squid - install the mkp from https://exchange.checkmk.com/p/squid and forwarder -> listen on loopback active -__VERSION__ = "1.0.4" +__VERSION__ = "1.0.5" import sys import os @@ -70,6 +70,10 @@ LOCALDIR = os.path.join(BASEDIR,"local") PLUGINSDIR = os.path.join(BASEDIR,"plugins") SPOOLDIR = os.path.join(BASEDIR,"spool") +os.environ["MK_CONFDIR"] = MK_CONFDIR +os.environ["MK_LIBDIR"] = BASEDIR +os.environ["MK_VARDIR"] = BASEDIR + class object_dict(defaultdict): def __getattr__(self,name): return self[name] if name in self else ""