From 24f551b52edfe7fe0179298447fecd4bc7836938 Mon Sep 17 00:00:00 2001 From: Kriegsameise <44759622+Kriegsameise@users.noreply.github.com> Date: Thu, 28 Nov 2024 16:21:36 +0100 Subject: [PATCH] Fixed Typo causing Agent to fail Typo "protocoll" instead of "protocol" caused agent to not work if the OpenVPN Server didn't have a description --- opnsense_checkmk_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opnsense_checkmk_agent.py b/opnsense_checkmk_agent.py index 62ffe38..14bc0b2 100644 --- a/opnsense_checkmk_agent.py +++ b/opnsense_checkmk_agent.py @@ -880,7 +880,7 @@ class checkmk_checker(object): if _server.get("disable") == '1': continue ## FIXME OK/WARN/SKIP ## server_tls, p2p_shared_key p2p_tls - _server["name"] = _server.get("description").strip() if _server.get("description") else "OpenVPN_{protocoll}_{local_port}".format(**_server) + _server["name"] = _server.get("description").strip() if _server.get("description") else "OpenVPN_{protocol}_{local_port}".format(**_server) _caref = _server.get("caref") _server_cert = self._get_certificate(_server.get("certref"))