From 67059aa84cbbb31147fb4f91fc8c3fc83cf0e649 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Mon, 10 Apr 2023 12:28:41 +0200 Subject: [PATCH] Fix config path --- opnsense_checkmk_agent.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opnsense_checkmk_agent.py b/opnsense_checkmk_agent.py index 32700a4..8b09938 100644 --- a/opnsense_checkmk_agent.py +++ b/opnsense_checkmk_agent.py @@ -21,6 +21,8 @@ ## to install ## copy to /usr/local/etc/rc.syshook.d/start/99-checkmk_agent and chmod +x ## +## default config file /usr/local/checkmk_agent/etc/checkmk.conf +## ## for server-side implementation of ## * 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 @@ -63,7 +65,7 @@ SCRIPTPATH = os.path.abspath(__file__) SYSHOOK_METHOD = re.findall("rc\.syshook\.d\/(start|stop)/",SCRIPTPATH) BASEDIR = "/usr/local/checkmk_agent" MK_CONFDIR = os.path.join(BASEDIR,"etc") -CHECKMK_CONFIG = os.path.join(MK_CONFDIR,"checkmk.conf") +CHECKMK_CONFIG = "/usr/local/etc/checkmk.conf" LOCALDIR = os.path.join(BASEDIR,"local") PLUGINSDIR = os.path.join(BASEDIR,"plugins") SPOOLDIR = os.path.join(BASEDIR,"spool") @@ -1642,7 +1644,7 @@ if __name__ == "__main__": "\n", formatter_class=SmartFormatter, epilog=f""" - The CHECKMK_BASEDIR is under {BASEDIR} (etc,local,plugin,spool). + The CHECKMK_BASEDIR is under {BASEDIR} (local,plugin,spool). Default config file location is {CHECKMK_CONFIG}, create it if it doesn't exist. Config file options port,encrypt,onlyfrom,skipcheck with a colon and the value like the commandline option """