Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 9952f189b08f8c25f150bd239cd27324a1674a8d
https://github.com/tribe29/checkmk/commit/9952f189b08f8c25f150bd239cd27324a…
Author: Óscar Nájera <oscar.najera(a)tribe29.com>
Date: 2019-09-27 (Fri, 27 Sep 2019)
Changed paths:
M checks/cpu_util.include
M cmk/gui/plugins/metrics/check_mk.py
M tests/unit/checks/generictests/datasets/docker_container_cpu_agent_section.py
M tests/unit/checks/generictests/datasets/docker_container_cpu_plugin_section.py
M tests/unit/checks/generictests/datasets/lxc_container_cou_agent_section.py
M tests/unit/cmk/gui/plugins/test_metrics_utils.py
Log Message:
-----------
Fix lxc_container_cpu Graphs
With the introduction of lxc_container_cpu check, agents output in
container environments for CPU utilization stopped being managed by
kernel.util and are now handled by lxc_container_cpu
cpu_util_unix_translate has to be incorporated for lxc_container_cpu to
allow backwards compatibility for systems that undergo the migration.
Containers don't seem to rescale the maximum cpu utilization to 100%. Thus
for the moment increase the graph maximum to #cores*100
CMK-1801
Change-Id: Ib0fccde562fea13b8cdc54ec68626ad6e8833e91