Fix Huawei WLC AP Parsing crash on offline APs #762
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
General information
Affected Device: Huawei AC6508 Wireless LAN Controller (WLC)
Software Version: Huawei NMS Version 2.23.00.100.932
CheckMK Version: MSP 2.3.0p12
Issue Summary: The Huawei AC6508 WLC crashes when an offline Access Point (AP) is reported by the controller. The crash occurs due to an out-of-range access attempt on the aps_info2 list when the AP is no longer available, resulting in a system failure.
Bug reports
Operating System:
Debian 12 running Checkmk MSP 2.3.0p12
Steps to Reproduce:
test.txt
SNMPWalk
Following File contains a Full SNMPWalk which is redacted.
Huawei AC6508 WLC snmpwalk.txt
Crash Report ID:
ID: 48274138-87a8-11ef-a33a-0050568fc548
Proposed changes
Expected Behavior:
When an AP goes offline, CheckMK should handle it gracefully, avoiding any out-of-range memory access. The system should log appropriate warnings or errors rather than attempting to access data from the unavailable AP.
Proposed Patch Change:
The patch modifies the AP handling logic to skip further parsing of AP information when the AP is not available. This prevents out-of-range access and stabilizes the system.