ValueError (Cannot render negative timespan) at Checkmk 2.0.0p3

Service check is showing UNKN status with summary “check failed - please submit a crash report!” and following errors:

ValueError (Cannot render negative timespan)
Traceback	
  File "/omd/sites/cmk/lib/python3/cmk/base/checking.py", line 577, in get_aggregated_result
    result = _aggregate_results(check_function(**kwargs))
  File "/omd/sites/cmk/lib/python3/cmk/base/checking.py", line 808, in _aggregate_results
    perfdata, results = _consume_and_dispatch_result_types(subresults)
  File "/omd/sites/cmk/lib/python3/cmk/base/checking.py", line 852, in _consume_and_dispatch_result_types
    for subr in subresults:
  File "/omd/sites/cmk/lib/python3/cmk/base/api/agent_based/register/check_plugins.py", line 89, in filtered_generator
    for element in generator(*args, **kwargs):
  File "/omd/sites/cmk/lib/python3/cmk/base/plugins/agent_based/utils/uptime.py", line 37, in check
    yield from check_levels(
  File "/omd/sites/cmk/lib/python3/cmk/base/api/agent_based/utils.py", line 329, in check_levels
    info_text = str(render_func(value))  # forgive wrong output type
  File "/omd/sites/cmk/lib/python3/cmk/base/api/agent_based/render.py", line 82, in timespan
    ts = " ".join(_gen_timespan_chunks(float(seconds), nchunks=2))
  File "/omd/sites/cmk/lib/python3/cmk/base/api/agent_based/render.py", line 63, in _gen_timespan_chunks
    raise ValueError("Cannot render negative timespan")

Example: Uptime check within docker container Checkmk

Same issue is occurring as well in the path 4 (2.0.0p4).

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.