Module: check_mk
Branch: master
Commit: 03089b7be12d3a54163cbd059f1e3af25370356b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=03089b7be12d3a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Nov 28 15:55:42 2017 +0100
5547 FIX Errors in pre-activate-changes hooks prevent configuration activation now (regression since 1.2.8)
Exceptions in pre-activate-changes hooks, that one can register to extend the WATO functionality
before loading changes into the monitoring core were suppressed and only shown to the user if
the debug mode of the GUI is enabled.
These issues are now shown to the user during activation of a site in form of a short exception
message. The full trace is shown in the var/log/web.log of the site the error happens on.
Change-Id: Ib699ff57de056c043e6a145f42ca2290397dee0d
---
.werks/5547 | 16 ++++++++++++++++
web/htdocs/watolib.py | 8 +-------
2 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/.werks/5547 b/.werks/5547
new file mode 100644
index 0000000..8c9bf95
--- /dev/null
+++ b/.werks/5547
@@ -0,0 +1,16 @@
+Title: Errors in pre-activate-changes hooks prevent configuration activation now (regression since 1.2.8)
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i2
+Date: 1511880767
+
+Exceptions in pre-activate-changes hooks, that one can register to extend the WATO functionality
+before loading changes into the monitoring core were suppressed and only shown to the user if
+the debug mode of the GUI is enabled.
+
+These issues are now shown to the user during activation of a site in form of a short exception
+message. The full trace is shown in the var/log/web.log of the site the error happens on.
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index 4f9dcb5..f51c95e 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -6922,13 +6922,7 @@ def check_mk_local_automation(command, args=None, indata="", stdin_data=None, ti
cmd = [ 'check_mk', '--automation', command, '--' ] + args
if command in [ 'restart', 'reload' ]:
- try:
- call_hook_pre_activate_changes()
- except Exception, e:
- if config.debug:
- raise
- html.show_error(_("<h1>Cannot activate changes</h1>%s") % e)
- return
+ call_hook_pre_activate_changes()
cmd = [ make_utf8(a) for a in cmd ]
try:
Module: check_mk
Branch: master
Commit: e0549d554d67d2879156ad0979d0ecca54f42b2b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e0549d554d67d2…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Nov 28 15:14:46 2017 +0100
5448 mssql checks: Added prefix 'MSSQL' to each MSSQL service description
In order to use these new service descriptions you have to enable them below
{Global settings}, {Use new service descriptions}. Renaming of existing services
has many implications - including existing rules, performance data and availability
history - these renamings are disabled per default for existing installations.
Here you can switch to the new descriptions for selected check types
Change-Id: If0eb671a1c431765edfbcd771cd1d17b5eeccae1
---
.werks/5448 | 14 ++++++++++++++
checks/mssql_backup | 2 +-
checks/mssql_counters | 14 +++++++-------
checks/mssql_databases | 2 +-
checks/mssql_datafiles | 2 +-
checks/mssql_tablespaces | 2 +-
checks/mssql_transactionlogs | 2 +-
checks/mssql_versions | 2 +-
cmk_base/config.py | 14 ++++++++++++++
web/htdocs/wato.py | 13 +++++++++++++
web/plugins/wato/check_mk_configuration.py | 13 +++++++++++++
11 files changed, 67 insertions(+), 13 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=e0549d554d…
Module: check_mk
Branch: master
Commit: 064939e49f11502980992af314c66ee1592ef247
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=064939e49f1150…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Nov 28 14:04:25 2017 +0100
5466 FIX Fixed filtering of services table for host name
Using a filter of the form 'host_name != ...' on the services table did not
work, the result set was always empty. This has been fixed.
Change-Id: Iec63cebd731606b7598a40d150215b328443909d
---
.werks/5466 | 11 +++++++++++
livestatus/src/StringFilter.cc | 4 +---
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/.werks/5466 b/.werks/5466
new file mode 100644
index 0000000..3f2ab41
--- /dev/null
+++ b/.werks/5466
@@ -0,0 +1,11 @@
+Title: Fixed filtering of services table for host name
+Level: 1
+Component: livestatus
+Compatible: compat
+Edition: cre
+Version: 1.5.0i2
+Date: 1511873723
+Class: fix
+
+Using a filter of the form 'host_name != ...' on the services table did not
+work, the result set was always empty. This has been fixed.
diff --git a/livestatus/src/StringFilter.cc b/livestatus/src/StringFilter.cc
index 313f451..ae211da 100644
--- a/livestatus/src/StringFilter.cc
+++ b/livestatus/src/StringFilter.cc
@@ -90,10 +90,8 @@ const std::string *StringFilter::valueForIndexing(
const std::string &column_name) const {
switch (_relOp) {
case RelationalOperator::equal:
- case RelationalOperator::not_equal:
- // TODO(sp) The cast looks very dubious, but the whole void* story
- // is quite dangerous...
return column_name == columnName() ? &_value : nullptr;
+ case RelationalOperator::not_equal:
case RelationalOperator::matches:
case RelationalOperator::doesnt_match:
case RelationalOperator::equal_icase: