Hello there, after updating CMK Appliance to 1.6.0p20 and baking new Agents, our Docker hosts has the following error for all Containers for Service Check_MK Discovery:
KeyError ('percpu_usage')
Trace:
File “/omd/sites/mobilfunk/lib/python/cmk_base/decorator.py”, line 58, in wrapped_check_func
status, infotexts, long_infotexts, perfdata = check_func(hostname, *args, **kwargs)
File “/omd/sites/mobilfunk/lib/python/cmk_base/discovery.py”, line 426, in check_discovery
on_error=“raise”)
File “/omd/sites/mobilfunk/lib/python/cmk_base/discovery.py”, line 1061, in _get_host_services
return _get_node_services(host_config, ipaddress, sources, multi_host_sections, on_error)
File “/omd/sites/mobilfunk/lib/python/cmk_base/discovery.py”, line 1069, in _get_node_services
multi_host_sections, on_error)
File “/omd/sites/mobilfunk/lib/python/cmk_base/discovery.py”, line 1102, in _get_discovered_services
multi_host_sections, on_error)
File “/omd/sites/mobilfunk/lib/python/cmk_base/discovery.py”, line 838, in _discover_services
check_plugin_name, on_error):
File “/omd/sites/mobilfunk/lib/python/cmk_base/data_sources/host_sections.py”, line 299, in _update_with_parse_function
return parse_function(section_content)
File “/omd/sites/mobilfunk/share/check_mk/checks/docker_container_cpu”, line 42, in parse_docker_container_cpu
parsed[“num_cpus”] = len(raw[‘cpu_usage’][‘percpu_usage’])
I’m currently working on this problem. Could you share some information about your setup and the containers so I can reproduce this problem locally? Is the problem still present?
What does docker stats --no-stream report for the containers?
What Operation System do you use for the docker host?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact @fayepal if you think this should be re-opened.