Update opnsense_checkmk_agent.py

fix openvpn plugin bug
This commit is contained in:
Thorsten Spille 2024-02-02 17:35:33 +01:00 committed by GitHub
parent 80f351d9db
commit 5ef4aa8253
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -771,7 +771,9 @@ class checkmk_checker(object):
if "openvpn-csc" in _cfr.keys(): if "openvpn-csc" in _cfr.keys():
_cso = _cfr.get("openvpn-csc") ## pre v23.7 _cso = _cfr.get("openvpn-csc") ## pre v23.7
else: else:
_cso = _cfn.get("Overwrites").get("Overwrite") _cso = _cfn.get("Overwrites")
if type(_cso) == dict:
_cso = _cso.get("Overwrite")
_monitored_clients = {} _monitored_clients = {}
if type(_cso) == dict: if type(_cso) == dict:
_cso = [_cso] _cso = [_cso]