diff --git a/cmk/base/legacy_checks/huawei_wlc_aps.py b/cmk/base/legacy_checks/huawei_wlc_aps.py index bf20f2ab90b..4fea8c1f864 100644 --- a/cmk/base/legacy_checks/huawei_wlc_aps.py +++ b/cmk/base/legacy_checks/huawei_wlc_aps.py @@ -46,6 +46,10 @@ class StateTemplate(NamedTuple): def parse_huawei_wlc_aps(string_table): parsed = {} + # Filter Access Point Information from Offline Access Points + down_states = [key for key, value in ap_state_map.items() if value.value == 2] + string_table[0] = [line for line in string_table[0] if line[0] not in down_states] + aps_info1, aps_info2 = string_table # Access-Points @@ -56,6 +60,7 @@ def parse_huawei_wlc_aps(string_table): # aps_info1 aps_info2 # [line] --> [2,4GHZ Info] # --> [5GHz Info] + status, mem, cpu, temp, con_users = ap_info1 ap_id, radio_state_2GHz, ch_usage_2GHz, users_online_2GHz = aps_info2[2 * idx] _ap_id, radio_state_5GHz, ch_usage_5GHz, users_online_5GHz = aps_info2[2 * idx + 1]