From 5ef4aa825386cdb9ff032d72801c79c0ec18591c Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Fri, 2 Feb 2024 17:35:33 +0100 Subject: [PATCH] Update opnsense_checkmk_agent.py fix openvpn plugin bug --- opnsense_checkmk_agent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opnsense_checkmk_agent.py b/opnsense_checkmk_agent.py index 57dca3b..bc895f9 100644 --- a/opnsense_checkmk_agent.py +++ b/opnsense_checkmk_agent.py @@ -771,7 +771,9 @@ class checkmk_checker(object): if "openvpn-csc" in _cfr.keys(): _cso = _cfr.get("openvpn-csc") ## pre v23.7 else: - _cso = _cfn.get("Overwrites").get("Overwrite") + _cso = _cfn.get("Overwrites") + if type(_cso) == dict: + _cso = _cso.get("Overwrite") _monitored_clients = {} if type(_cso) == dict: _cso = [_cso]