Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit b5a36f38 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 80c57667
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,9 @@ ...@@ -22,7 +22,9 @@
# fixed _render_mac_address/_render_ip_address, code cleanup, removed WIPS check # fixed _render_mac_address/_render_ip_address, code cleanup, removed WIPS check
# added lwap_uptime/time taken to join. changed perfdata to 1/s # added lwap_uptime/time taken to join. changed perfdata to 1/s
# 2021-07-29: fix missing data from discovery (inv_ap_info) # 2021-07-29: fix missing data from discovery (inv_ap_info)
# 2022-03-07: fixed handling of missing AP (THX to andreas[dot]doehler[at]gmail[dot]com
# #
from time import time from time import time
from dataclasses import dataclass from dataclasses import dataclass
from typing import Optional, List, Dict from typing import Optional, List, Dict
...@@ -348,7 +350,6 @@ def check_cisco_wlc(item, params, section: Dict[str, Ap]) -> CheckResult: ...@@ -348,7 +350,6 @@ def check_cisco_wlc(item, params, section: Dict[str, Ap]) -> CheckResult:
if item == ap_name: if item == ap_name:
yield Result(state=State.OK, summary=f'Alias: {ap_alias}') yield Result(state=State.OK, summary=f'Alias: {ap_alias}')
ap = Ap
try: try:
ap = section[item] ap = section[item]
except KeyError: except KeyError:
...@@ -373,6 +374,7 @@ def check_cisco_wlc(item, params, section: Dict[str, Ap]) -> CheckResult: ...@@ -373,6 +374,7 @@ def check_cisco_wlc(item, params, section: Dict[str, Ap]) -> CheckResult:
state=State(ap_missing_state), state=State(ap_missing_state),
summary=f'AP {item} not found in SNMP data. For more information see check details (long output)', summary=f'AP {item} not found in SNMP data. For more information see check details (long output)',
) )
return
ap_info = ap.ap_info ap_info = ap.ap_info
cdp_info = ap.cdp_info cdp_info = ap.cdp_info
......
No preview for this file type
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
'name': 'cisco_wlc', 'name': 'cisco_wlc',
'num_files': 3, 'num_files': 3,
'title': 'monitor Cisco WLC APs', 'title': 'monitor Cisco WLC APs',
'version': '20210730.v0.5b', 'version': '20220307.v0.5c',
'version.min_required': '2.0.0', 'version.min_required': '2.0.0',
'version.packaged': '2021.09.20', 'version.packaged': '2021.09.20',
'version.usable_until': None} 'version.usable_until': None}
\ No newline at end of file
...@@ -122,8 +122,7 @@ def _parameter_valuespec_cisco_wlc(): ...@@ -122,8 +122,7 @@ def _parameter_valuespec_cisco_wlc():
] ]
), ),
title=_('AP alias'), title=_('AP alias'),
add_label=_('Add name')) add_label=_('Add name'))),
),
]) ])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment