Fix ups checks with Python ValueError exceptions - #837
Conversation
|
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 |
efa259e to
dc59177
Compare
Signed-off-by: Sven Rueß <github@sven-ruess.de>
|
Hi Sven! |
|
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. |
|
Hello @sven-ruess, Are there any news? Did the customer provide a walk? Thank you! |
|
Hey @sven-ruess, Since there has not been new information on this topic, I will close the PR. If anything new comes up, feel free to reopen it. Best, |
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.