Number of threads - > check failed - please submit a crash report!

**CMK version: 2.1.0p14 CEE
**OS version: NAME=“Red Hat Enterprise Linux”
VERSION=“8.6 (Ootpa)”

**Error message:
We faced lots of issues with Number of threads service on multiple servers:
check failed - please submit a crash report!
We have a distributed setup and all the servers are updated at the same version - 2.1.0p14 CEE

TypeError (‘int’ object is not subscriptable)

File “/omd/sites/operations_buc/lib/python3/cmk/base/agent_based/checking/init.py”, line 470, in get_aggregated_result
result = _aggregate_results(
File “/omd/sites/operations_buc/lib/python3/cmk/base/agent_based/checking/init.py”, line 578, in _aggregate_results
perfdata, results = _consume_and_dispatch_result_types(subresults)
File “/omd/sites/operations_buc/lib/python3/cmk/base/agent_based/checking/init.py”, line 622, in _consume_and_dispatch_result_types
for subr in subresults:
File “/omd/sites/operations_buc/lib/python3/cmk/base/api/agent_based/register/check_plugins.py”, line 94, in filtered_generator
for element in generator(*args, **kwargs):
File “/omd/sites/operations_buc/lib/python3/cmk/base/plugins/agent_based/cpu_threads.py”, line 44, in check_cpu_threads
yield from check_levels(
File “/omd/sites/operations_buc/lib/python3/cmk/base/api/agent_based/utils.py”, line 337, in check_levels
value_state, levels_text = _do_check_levels(value, levels_upper, levels_lower, render_func)
File “/omd/sites/operations_buc/lib/python3/cmk/base/api/agent_based/utils.py”, line 233, in _do_check_levels
if levels_upper and levels_upper[1] is not None and value >= levels_upper[1]:

**Output of “cmk --debug -vvn hostname”:

cmk --debug artifactory-buc1.prod.orange.intra
Traceback (most recent call last):
File “/omd/sites/operations_buc/bin/cmk”, line 98, in
exit_status = modes.call(“–check”, None, opts, args)
File “/omd/sites/operations_buc/lib/python3/cmk/base/modes/init.py”, line 69, in call
return handler(*handler_args)
File “/omd/sites/operations_buc/lib/python3/cmk/base/modes/check_mk.py”, line 1804, in mode_check
checking.commandline_checking(
File “/omd/sites/operations_buc/lib/python3/cmk/base/agent_based/decorator.py”, line 43, in wrapped_check_func
status, output_text = _combine_texts(check_func(hostname, *args, **kwargs))
File “/omd/sites/operations_buc/lib/python3/cmk/base/agent_based/checking/init.py”, line 121, in commandline_checking
return _execute_checkmk_checks(
File “/omd/sites/operations_buc/lib/python3/cmk/base/agent_based/checking/init.py”, line 174, in _execute_checkmk_checks
num_success, plugins_missing_data = check_host_services(
File “/omd/sites/operations_buc/lib/python3/cmk/base/agent_based/checking/init.py”, line 322, in check_host_services
success = _execute_check(
File “/omd/sites/operations_buc/lib/python3/cmk/base/agent_based/checking/init.py”, line 382, in _execute_check
submittable = get_aggregated_result(
File “/omd/sites/operations_buc/lib/python3/cmk/base/agent_based/checking/init.py”, line 470, in get_aggregated_result
result = _aggregate_results(
File “/omd/sites/operations_buc/lib/python3/cmk/base/agent_based/checking/init.py”, line 578, in _aggregate_results
perfdata, results = _consume_and_dispatch_result_types(subresults)
File “/omd/sites/operations_buc/lib/python3/cmk/base/agent_based/checking/init.py”, line 622, in _consume_and_dispatch_result_types
for subr in subresults:
File “/omd/sites/operations_buc/lib/python3/cmk/base/api/agent_based/register/check_plugins.py”, line 94, in filtered_generator
for element in generator(*args, **kwargs):
File “/omd/sites/operations_buc/lib/python3/cmk/base/plugins/agent_based/cpu_threads.py”, line 44, in check_cpu_threads
yield from check_levels(
File “/omd/sites/operations_buc/lib/python3/cmk/base/api/agent_based/utils.py”, line 337, in check_levels
value_state, levels_text = _do_check_levels(value, levels_upper, levels_lower, render_func)
File “/omd/sites/operations_buc/lib/python3/cmk/base/api/agent_based/utils.py”, line 233, in _do_check_levels
if levels_upper and levels_upper[1] is not None and value >= levels_upper[1]:
TypeError: ‘int’ object is not subscriptable

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.