Skip to content

Avoid crash on failure to parse int in emerson_temp discovery. #818

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cmk/base/legacy_checks/emerson_temp.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def check_emerson_temp(item, params, info):


def parse_emerson_temp(string_table: StringTable) -> StringTable:
return string_table
# Only use the first two sensor values, as values beyond that seem to be handled in a different
# structure that we lack a concrete definition for.
return string_table[:2]


check_info["emerson_temp"] = LegacyCheckDefinition(
Expand Down