Module: check_mk
Branch: master
Commit: 24d77e5aa059ea2f5e72ac1bfa21711e77a64b38
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=24d77e5aa059ea…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Nov 5 08:42:52 2018 +0100
Dynamic configuration: Additional steps
* Add global setting for configuring the Web API connection of
the DCD. By default it uses the site local Web API and the
Check_MK default "automation" user (in case it's available).
* Connection manager is now managing the configured connections in
dedicated threads.
* Implemented connector plugin API cmk.cee.dcd.connectors.utils.
* Add sample piggyback connector which is able to create and delete
hosts based on the locally available piggyback data.
* Add basic Web API client class (most parts have been borrowed
from tests/testlib/__init__.py). Currently only host actions are
needed.
* Add tests for a lot of the new parts.
CMK-1143
CMK-1144
Change-Id: Ib5d00a5844d8ef9e6377fcb1697ae2963331fac8
---
tests/unit/cmk/gui/test_watolib.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/unit/cmk/gui/test_watolib.py b/tests/unit/cmk/gui/test_watolib.py
index a2da5c5..50271f9 100644
--- a/tests/unit/cmk/gui/test_watolib.py
+++ b/tests/unit/cmk/gui/test_watolib.py
@@ -113,6 +113,7 @@ def test_registered_configvars():
'context_buttons_to_show',
'crash_report_target',
'dcd_log_levels',
+ 'dcd_web_api_connection',
'debug',
'debug_livestatus_queries',
'debug_rules',
Module: check_mk
Branch: master
Commit: f146a72c4d47ee7a68ea48b21ab1d89a1f81ec0c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f146a72c4d47ee…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Mon Nov 19 18:55:40 2018 +0100
6650 FIX winperf_processor.util predictive levels retrieval
Werk 6126 changed the metric name(performance data value) but missed
changing this name in the variable for retrieval of data to generate the
predictive levels.
If retrieval of rrd is gives a response but without data, then exception is
raised too.
Change-Id: I5bfc24bdd0ace8b1b6c0235ef2a724957c289a9c
---
.werks/6650 | 16 ++++++++++++++++
checks/cpu_util.include | 2 +-
cmk_base/prediction.py | 2 +-
3 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/.werks/6650 b/.werks/6650
new file mode 100644
index 0000000..f7d4270
--- /dev/null
+++ b/.werks/6650
@@ -0,0 +1,16 @@
+Title: winperf_processor.util predictive levels retrieval
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0p8
+Date: 1542729817
+Class: fix
+
+Werk 6126 changed the metric name(performance data value) but missed
+changing this name in the variable for retrieval of data to generate the
+predictive levels.
+
+If retrieval of rrd is gives a response but without data, then exception is
+raised too.
+
diff --git a/checks/cpu_util.include b/checks/cpu_util.include
index 919a52d..30090ae 100644
--- a/checks/cpu_util.include
+++ b/checks/cpu_util.include
@@ -69,7 +69,7 @@ def check_cpu_util(util, params, this_time=None, cores=None):
if "average" in params:
util_avg = get_average("cpu_utilization.avg", this_time, util, params["average"])
check_against = util_avg
- perfvar = "avg"
+ perfvar = "util_average"
infotext += ", %dmin average: %.1f%%" % (params["average"], util_avg)
else:
check_against = util
diff --git a/cmk_base/prediction.py b/cmk_base/prediction.py
index cba43f1..13bba2b 100644
--- a/cmk_base/prediction.py
+++ b/cmk_base/prediction.py
@@ -65,7 +65,7 @@ def get_rrd_data(hostname, service_description, varname, cf, fromtime, untiltime
raise
raise MKGeneralException("Cannot get historic metrics via Livestatus: %s" % e)
- if not response:
+ if not response or not response[3:]:
raise MKGeneralException("Got no historic metrics")
step, values = response[2], response[3:]
Module: check_mk
Branch: master
Commit: cf1995cf6a05756945b9216405d7a0a9eaaccef9
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cf1995cf6a0575…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Nov 20 13:28:50 2018 +0100
Refactored config variable registration to plugin registry API
* Previously configuration variable groups were not cleanly registered.
They were created implicitly by using them and optionally adding an
entry to the dictionary returned by configvar_order().
The groups now need to be declared by creating a subclass of the
base class ConfigVariableGroup and registering it to the
config_variable_group_registry.
* Configuration variables are now also registered using our standard
plugin registry approach. For the moment we have added a compatibility
wrapper to keep the register_configvar() function calls working.
During the next days / weeks we plan to remove the register_configvar()
calls and replace them with the new registration logic.
CMK-1309
Change-Id: I799f77d3c8518285bffb3b2055d2ad71452edc66
---
cmk/gui/plugins/wato/__init__.py | 8 +-
cmk/gui/plugins/wato/check_mk_configuration.py | 215 +++++++++++++++----------
cmk/gui/plugins/wato/globals_notification.py | 30 ++--
cmk/gui/plugins/wato/omd_configuration.py | 28 ++--
cmk/gui/plugins/wato/utils/__init__.py | 6 +-
cmk/gui/plugins/watolib/utils.py | 136 +++++++++++++---
cmk/gui/wato/__init__.py | 1 -
cmk/gui/wato/mkeventd.py | 111 ++++++++-----
cmk/gui/wato/pages/global_settings.py | 70 ++++----
cmk/gui/wato/pages/sites.py | 20 +--
cmk/gui/watolib.py | 21 +--
tests/unit/cmk/gui/test_watolib.py | 212 ++++++++++++++++++++++++
12 files changed, 630 insertions(+), 228 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=cf1995cf6a…