Module: check_mk
Branch: master
Commit: 078fa0f0061548dbc64387dbdf9cc37bef934bce
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=078fa0f0061548…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Wed Oct 10 12:30:51 2018 +0200
[Check-API] Discovery of single entries and parsed items
It can be used directly in the check info with lambda functions for the
filtering function or as a decorator over the filtering function.
It is possible to setup default parameters
The mysql check plugin is taken as example of use. uptime, cpu_utilization,
lnx_thermal, ups in freq and voltage are used for further examples.
There are tests using the many configurable options
CMK-1013
Change-Id: Iabab6f1b447573a1f0fc5f8900a6bc3c7423ceaa
---
checks/kernel | 9 +-
checks/lnx_thermal | 5 +-
checks/mysql | 64 +++++-------
checks/mysql_capacity | 13 ++-
checks/mysql_ping | 9 +-
checks/mysql_slave | 8 +-
checks/ups_in_freq | 7 +-
checks/ups_in_voltage | 6 +-
checks/ups_out_load | 8 +-
checks/ups_out_voltage | 6 +-
checks/uptime | 7 +-
cmk_base/check_api.py | 159 +++++++++++++++++++++++++++---
tests/unit/cmk_base/test_check_api.py | 177 ++++++++++++++++++++++++++++++++--
13 files changed, 368 insertions(+), 110 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=078fa0f006…