mirror of
https://github.com/bashclub/check-opnsense.git
synced 2024-11-07 16:31:58 +01:00
Update opnsense_checkmk_agent.py
This commit is contained in:
parent
2eb6ac70c8
commit
f42b0380a8
@ -363,7 +363,7 @@ class checkmk_checker(object):
|
||||
_ret = []
|
||||
_gateway_items = self._config_reader().get("gateways").get("gateway_item",[])
|
||||
if type(_gateway_items) != list:
|
||||
_gateway_items = [_gateway_items]
|
||||
_gateway_items = [_gateway_items] if _gateway_items else []
|
||||
_interfaces = self._config_reader().get("interfaces",{})
|
||||
_ipaddresses = self.get_opnsense_ipaddr()
|
||||
for _gateway in _gateway_items:
|
||||
|
Loading…
Reference in New Issue
Block a user