Module: check_mk
Branch: master
Commit: e0290a1ec3d49058e0847ce8b5cd1fb9c66ed340
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e0290a1ec3d490…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Jun 14 14:50:48 2018 +0200
Move the non-constant state out of check_api.
This module should basically act as a template for checks contexts, having
modifiable state in it which is shared across all contexts is highly
obscure. Furthermore, this decouples checks and check_api a bit more, we
are currently left with a single connection in that direction.
Change-Id: I6a101019d247ef3bcc4b54165bd4dbe74b38b1df
---
cmk_base/automations/check_mk.py | 3 ++-
cmk_base/check_api.py | 30 ++++++------------------------
cmk_base/check_api_utils.py | 36 ++++++++++++++++++++++++++++++++++++
cmk_base/check_table.py | 3 ++-
cmk_base/checking.py | 5 +++--
cmk_base/checks.py | 11 +----------
cmk_base/core_nagios.py | 3 ++-
cmk_base/discovery.py | 4 ++--
cmk_base/snmp_scan.py | 3 ++-
9 files changed, 56 insertions(+), 42 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=e0290a1ec3…