Module: check_mk
Branch: master
Commit: 18cb27b36d053b8166bbb168042828223f098968
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=18cb27b36d053b…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Fri Nov 23 12:22:17 2018 +0100
Check_API refactoring, Refactor checks using cpu_util.include
Check API
- Return a complete check output
- Use infoname
- Edit checks and test for new checkapi levels check
Refactoring linux check_cpu_util_unix
Adapt cpu_iowait group checks to util params
- lparstat_aix
- vms_cpu
- ucd_cpu_util
- statgrab
CMK-1284
Change-Id: Iaf04fa6fd1bbce07efa5cb455f75156d10702ba5
---
checks/cpu_load.include | 8 +-
checks/cpu_util.include | 241 ++++++++-------------
checks/diskstat.include | 51 +++--
checks/f5_bigip_conns | 31 +--
checks/f5_bigip_snat | 13 +-
checks/f5_bigip_vserver | 13 +-
checks/firewall_if.include | 15 +-
checks/ibm_svc_systemstats | 6 +-
checks/kernel | 25 +--
checks/lparstat_aix | 28 +--
checks/netapp_api_fcp | 16 +-
checks/safenet_hsm | 7 +-
checks/safenet_ntls | 12 +-
checks/statgrab_cpu | 7 +-
checks/tinkerforge | 5 +-
checks/transforms.include | 34 +++
checks/ucd_cpu_util | 5 +-
checks/vms_cpu | 8 +-
cmk_base/check_api.py | 119 +++++-----
cmk_base/prediction.py | 6 +-
.../generictests/datasets/azure_databases.py | 2 +-
.../datasets/hp_msa_volume_regression.py | 8 +-
.../datasets/lparstat_aix_regression.py | 32 +++
.../generictests/datasets/vms_cpu_regression.py | 18 ++
.../wmi_cpuload_hp_proliant_win_5_regression.py | 6 +-
tests/unit/checks/test_hp_msa_volume.py | 7 +-
tests/unit/checks/test_kernel_check.py | 53 +++--
tests/unit/checks/test_statgrab_cpu_check.py | 69 +++---
tests/unit/cmk_base/test_check_api.py | 40 +++-
tests/unit/cmk_base/test_prediction.py | 8 +-
30 files changed, 466 insertions(+), 427 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=18cb27b36d…