Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent cisco_redundancy from crashing if swact_reason code is unknown #647

Closed
wants to merge 0 commits into from

Conversation

bbayer1
Copy link
Contributor

@bbayer1 bbayer1 commented Nov 21, 2023

The check cisco_redundancy crashed at one of our customers installations.
We did some troubleshooting and figured out, that one of the cisco devices returned a value of "8" for cRFStatusLastSwactReasonCode (1.3.6.1.4.1.9.9.176.1.1.8). A value of "8" is not defined in the official MIB and neither is it defined in the check.
Hence the Check crashed with a KeyError. I changed it to .get and added a default value "unknown" in case none of map keys matches.

Copy link

github-actions bot commented Nov 21, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@bbayer1
Copy link
Contributor Author

bbayer1 commented Nov 21, 2023

I have read the CLA Document and I hereby sign the CLA or my organization already has a signed CLA.

@TimotheusBachinger
Copy link
Contributor

Dear Checkmk Contributor! Unfortunately, we had to re-write our git-repo history, rendering your PR auto-closed. We will therefore rebase your PR onto the current master and reopen it again. Sorry for the inconvenience.

@TimotheusBachinger
Copy link
Contributor

Dear Contributor. Unfortunately, we learned that re-opening a PR which was force-rebased, is not possible (see isaacs/github#361). Therefore we kindly ask you to create a new PR for your change. We apologize for the circumstances and will implement technical measures to prevent such incidents in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants