Werk #18027 · May 22, 25
veeam backup: fix backup age calculation
Incompatible change. Existing setups may behave differently after upgrading. Review the details below before updating.
The check plugin crashed with the error
File "/omd/sites/site_name/share/check_mk/checks/veeam_client", line 125, in check_veeam_client
infotexts.append(f"Last backup: {render.timespan(age)} ago{label}{levels}")
File "/omd/sites/site_name/lib/python3.12/site-packages/cmk/agent_based/v1/render.py", line 109, in timespan
ts = " ".join(_gen_timespan_chunks(float(seconds), nchunks=2))
File "/omd/sites/site_name/lib/python3.12/site-packages/cmk/agent_based/v1/render.py", line 75, in _gen_timespan_chunks
raise ValueError("Cannot render negative timespan")
due to a discrepancy between the backup times and the current time calculated by the check plugin. With the current werk, the agent plugin directly computes the time difference using consistent timestamps.
The werk is flagged as incompatible, because you have to redeploy the agent plugin in order to apply this feature.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 2.5.0b1All Editions
- 2.4.0p3All Editions
- 2.3.0p34CommunityProUltimateUltimate + MT