Module: check_mk
Branch: master
Commit: e4353e1fd300784de843958571ffb67b35d94dae
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e4353e1fd30078…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Mon Jan 21 17:18:05 2019 +0100
Refactor cpu_utilization checks
- Implement cpu_info namedtuple
This simplifies the identification of values in cpu_util_unix check
- Unify single_core utilization to use total avg Rules
- Unify checks outputs, update tests correspondingly
- Unified lparstat check as a Unix check
Change-Id: Iea9b14c7fe2eecdb348a81b81bb47d2aaa942f0e
---
checks/cpu_util.include | 185 +++++++++++----------
checks/kernel | 8 +-
checks/lparstat_aix | 6 +-
checks/statgrab_cpu | 2 +-
cmk_base/check_api.py | 10 +-
.../generictests/datasets/azure_databases.py | 4 +-
.../checks/generictests/datasets/azure_sites.py | 2 +-
.../datasets/k8s_resources_regression.py | 4 +-
.../datasets/lparstat_aix_1_regression.py | 62 +++----
.../datasets/lparstat_aix_2_regression.py | 8 +-
.../datasets/lparstat_aix_regression.py | 78 ++++-----
.../datasets/netapp_api_qtree_quota_regression.py | 6 +-
.../generictests/datasets/vms_cpu_regression.py | 2 +-
tests/unit/checks/generictests/datasets/zfsget.py | 10 +-
tests/unit/checks/test_diskstat.py | 4 +-
tests/unit/checks/test_kernel_check.py | 2 +-
tests/unit/checks/test_statgrab_cpu_check.py | 8 +-
17 files changed, 201 insertions(+), 200 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=e4353e1fd3…