Branch: refs/heads/2.3.0
Home:
https://github.com/Checkmk/checkmk
Commit: 70eeb0567ee894ceaf2c2520bb3c26508c2e442f
https://github.com/Checkmk/checkmk/commit/70eeb0567ee894ceaf2c2520bb3c26508…
Author: Rebekka Seltmann <rebekka.seltmann(a)checkmk.com>
Date: 2024-06-18 (Tue, 18 Jun 2024)
Changed paths:
A .werks/16798.md
M cmk/base/legacy_checks/ups_test.py
M tests/unit/cmk/base/plugins/agent_based/test_ups_test.py
Log Message:
-----------
ups_test: Handle unknown time since last test
The time since the last battery test is calculated via the difference between the current
uptime and the uptime when the test was initiated.
This means the time cannot be determined if the uptime of the test initiation is larger
than the current uptime.
Before, this lead to a
```
ValueError: Cannot render negative timespan
```
Now, the check will become UNKNOWN instead.
SUP-18881
Change-Id: I186adf739946923e52b844037887ed43bd2b6eab
To unsubscribe from these emails, change your notification settings at
https://github.com/Checkmk/checkmk/settings/notifications