Skip to content

Conversation

sven-ruess
Copy link
Contributor

General information

Checkmk 2.4.0p7 is used on Checkmk appliance 1.7.10.

ups check voltage in, ups voltage out and ups load out were not working and break down with exception ValueError.

Bug reports

If a ups device configured and a discovery is done, then those checks will report this exception.

Proposed changes

Take care about the value, which should be used for the check. In all cases a integer is return and check is working.

@sven-ruess
Copy link
Contributor Author

This error https://github.com/Checkmk/checkmk/actions/runs/16622749658/job/47030993204?pr=837#step:7:347 is not related to my changes. Can you support? I do not know, what I can do, to solve it.

Thank you

@sven-ruess sven-ruess force-pushed the ups-fix branch 3 times, most recently from efa259e to dc59177 Compare August 4, 2025 15:05
@mo-ki
Copy link
Member

mo-ki commented Aug 21, 2025

Hi Sven!
Can you share the offending values with us? I'd rather handle this case explicitly, then silently skipping all unknown values and just not discovering anything.

@sven-ruess
Copy link
Contributor Author

Hi Moritz,

I contacted the customer to provide me a snmpwalk. After I have received, I will forward it.

Further I can tell you, that the problem is, that some values have not value and are None. Conversion from None to int is not working. So I take care about, that all needed values will be int. If present, the current value, otherwise 0. Functions are working as expected.

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.

3 participants