mirror of
https://github.com/bashclub/check-opnsense.git
synced 2024-11-07 16:31:58 +01:00
Update opnsense_checkmk_agent.py
fix openvpn plugin bug
This commit is contained in:
parent
80f351d9db
commit
5ef4aa8253
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user