Module: check_mk
Branch: master
Commit: 9c1fbc4d035c0be6387a78ba8d2dc4555f0994ca
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9c1fbc4d035c0b…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Mon Jun 20 13:26:32 2016 +0200
bugfix in 3144 didn't work in all cases
---
modules/check_mk_base.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index b0cbad7..180767d 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1918,8 +1918,13 @@ def submit_check_result(host, servicedesc, result, sa, cached_at=None, cache_int
infotext = core_state_names[state] + " - " + infotext
# make sure that plugin output does not contain a vertical bar. If that is the
- # case then replace it with a Uniocode "Light vertical bar"
- infotext = infotext.replace("|", u"\u2758".encode("utf8"))
+ # case then replace it with a Uniocode "Light vertical bar
+ if isinstance(infotext, unicode):
+ # regular check results are unicode...
+ infotext = infotext.replace(u"|", u"\u2758")
+ else:
+ # ...crash dumps, and hard-coded outputs are regular strings
+ infotext = infotext.replace("|", u"\u2758".encode("utf8"))
# Aggregated service -> store for later
if sa != "":
Module: check_mk
Branch: master
Commit: e113b33718b4115fd16c0739d7f828586a7112bd
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e113b33718b411…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Jun 20 11:31:05 2016 +0200
3640 new filter option for status details: can now be negated
---
.werks/3640 | 9 +++++++++
ChangeLog | 1 +
web/plugins/visuals/filters.py | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/3640 b/.werks/3640
new file mode 100644
index 0000000..c9aa8d2
--- /dev/null
+++ b/.werks/3640
@@ -0,0 +1,9 @@
+Title: new filter option for status details: can now be negated
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.4.0i1
+Date: 1466415026
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index 8b66860..7d18f3c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -295,6 +295,7 @@
* 3575 User logins can now be limited to single session at a time...
* 3592 Views: Added sorter for host names (without site)
* 3141 added user interfaces and permissions to view and acknowledge failed notifications
+ * 3640 new filter option for status details: can now be negated
* 3059 FIX: Fixed highlighting of availability timeline time slices
* 3175 FIX: Fix timeranges of graphs that are embedded in a dashboard...
* 3076 FIX: fixed broken views in check_mk raw edition
diff --git a/web/plugins/visuals/filters.py b/web/plugins/visuals/filters.py
index 86bd7fd..386dec8 100644
--- a/web/plugins/visuals/filters.py
+++ b/web/plugins/visuals/filters.py
@@ -119,7 +119,7 @@ declare_filter(201, FilterUnicode("service", _("Service (exact match)"),
declare_filter(202, FilterUnicode("service_display_name", _("Service alternative display name"), "service", "service_display_name", "service_display_name", "~~"),
_("Alternative display name of the service, regex match"))
-declare_filter(202, FilterUnicode("output", _("Status detail"), "service", "service_plugin_output", "service_output", "~~"))
+declare_filter(202, FilterUnicode("output", _("Status detail"), "service", "service_plugin_output", "service_output", "~~", True))
declare_filter(102, FilterHostnameOrAlias("hostnameoralias", _("Hostname or Alias"), "host", ["host_alias", "host_name"], "hostnameoralias", "~~", False),
_("Search field allowing regular expressions and partial matches"))
Module: check_mk
Branch: master
Commit: 2a08d39f20de61eac23464d973c2561c0b2fa513
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2a08d39f20de61…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Jun 19 16:13:42 2016 +0200
Small fix for internal helper render_main_menu()
now detects URLs instead of modes more precisely
---
web/htdocs/wato.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 04f6316..1d5d739 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5666,7 +5666,7 @@ def render_main_menu(some_modules, columns = 2):
if not config.may(permission) and not config.may("wato.seeall"):
continue
- if '?' in mode_or_url or '/' in mode_or_url:
+ if '?' in mode_or_url or '/' in mode_or_url or mode_or_url.endswith(".py"):
url = mode_or_url
else:
url = folder_preserving_link([("mode", mode_or_url)])