Module: check_mk
Branch: master
Commit: f87bb35eff5e9db19b5b6be4914675bbfadd0283
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f87bb35eff5e9d…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Fri Feb 26 16:06:40 2016 +0100
solaris agent no longer tries to run prtdiag in local zones
---
agents/check_mk_agent.solaris | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index 9a0eba0..3cf8046 100755
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -268,7 +268,11 @@ fi
if type prtdiag >/dev/null 2>&1
then
- run_cached -s solaris_prtdiag_status 300 '/usr/sbin/prtdiag 1>/dev/null 2>&1; echo $?'
+ # prtdiag does not work in local zones
+ if [ "$zonename" == "global" ]
+ then
+ run_cached -s solaris_prtdiag_status 300 '/usr/sbin/prtdiag 1>/dev/null 2>&1; echo $?'
+ fi
fi
# TCP Connection stats
Module: check_mk
Branch: master
Commit: c6bf2d3a7a28ce838e2a70fdfc4aa3e36486a481
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c6bf2d3a7a28ce…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 26 12:14:15 2016 +0100
#3247 FIX Do not allow multiple BI aggregates with the same title
Doing that leads into several anomalies and strange behaviour. The BI
titles must be unique. This is now enforced and an error printed in
cased.
---
.werks/3247 | 12 ++++++++++++
ChangeLog | 3 +++
web/htdocs/bi.py | 17 +++++++++++++++++
3 files changed, 32 insertions(+)
diff --git a/.werks/3247 b/.werks/3247
new file mode 100644
index 0000000..36528e5
--- /dev/null
+++ b/.werks/3247
@@ -0,0 +1,12 @@
+Title: Do not allow multiple BI aggregates with the same title
+Level: 2
+Component: bi
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1456485207
+
+Doing that leads into several anomalies and strange behaviour. The BI
+titles must be unique. This is now enforced and an error printed in
+cased.
diff --git a/ChangeLog b/ChangeLog
index fde18f8..339165b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -71,6 +71,9 @@
* 2998 FIX: Fixed broken WATO rules where content is dynamically loaded...
* 3246 FIX: Fix link for editing a BI aggregation after coming back from the details of another aggregation...
+ BI:
+ * 3247 FIX: Do not allow multiple BI aggregates with the same title...
+
Event Console:
* 3058 FIX: Event Console is now allowing non loadable MIB modules on startup...
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index 3b3dc7c..d6033a2 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -422,6 +422,8 @@ def compile_forest(user, only_hosts = None, only_groups = None):
# Remember successful compile in cache
g_cache[user] = cache
+ check_title_uniqueness(cache["forest"])
+
if compile_logging():
num_total_aggr = 0
for grp, aggrs in cache['forest'].iteritems():
@@ -464,6 +466,21 @@ def compile_forest(user, only_hosts = None, only_groups = None):
len(config.host_aggregations),
))
+
+def check_title_uniqueness(forest):
+ known_titles = set()
+ for group, aggrs in forest.iteritems():
+ for aggr in aggrs:
+ title = aggr["title"]
+ if title in known_titles:
+ raise MKConfigError(_("Duplicate BI aggregation with the title \"<b>%s</b>\". "
+ "Please check your BI configuration and make sure that within each group no aggregation has "
+ "the same title as any other. Note: you can use arguments in the top level "
+ "aggregation rule, like <tt>Host $HOST$</tt>.") % (
+ html.attrencode(title)))
+ else:
+ known_titles.add(title)
+
def compile_logging():
return config.bi_compile_log is not None
Module: check_mk
Branch: master
Commit: 7c994c9e584ddcb4c3a0c2f51050f1ccfde4178c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7c994c9e584ddc…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 26 12:13:18 2016 +0100
#3246 FIX Fix link for editing a BI aggregation after coming back from the details of another aggregation
The problem occurred if you tried to edit first one aggregation, then
directly after that another one.
---
.werks/3246 | 11 +++++++++++
ChangeLog | 1 +
web/plugins/wato/bi.py | 2 +-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/3246 b/.werks/3246
new file mode 100644
index 0000000..b15da17
--- /dev/null
+++ b/.werks/3246
@@ -0,0 +1,11 @@
+Title: Fix link for editing a BI aggregation after coming back from the details of another aggregation
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1456485140
+
+The problem occurred if you tried to edit first one aggregation, then
+directly after that another one.
diff --git a/ChangeLog b/ChangeLog
index 3f96778..fde18f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -69,6 +69,7 @@
* 3180 FIX: Fix broken site specific globals and disabling of WATO in slave sites
* 3182 FIX: Fix bulk operations based on search result folder...
* 2998 FIX: Fixed broken WATO rules where content is dynamically loaded...
+ * 3246 FIX: Fix link for editing a BI aggregation after coming back from the details of another aggregation...
Event Console:
* 3058 FIX: Event Console is now allowing non loadable MIB modules on startup...
diff --git a/web/plugins/wato/bi.py b/web/plugins/wato/bi.py
index 81333f6..cd38c59 100644
--- a/web/plugins/wato/bi.py
+++ b/web/plugins/wato/bi.py
@@ -996,7 +996,7 @@ class ModeBIAggregations(ModeBI):
for nr, aggregation in enumerate(self._pack["aggregations"]):
table.row()
table.cell(_("Actions"), css="buttons")
- edit_url = html.makeuri([("mode", "bi_edit_aggregation"), ("id", nr)])
+ edit_url = html.makeuri_contextless([("mode", "bi_edit_aggregation"), ("id", nr), ("pack", self._pack_id)])
html.icon_button(edit_url, _("Edit this aggregation"), "edit")
if self.is_contact_for_pack():
delete_url = html.makeactionuri([("_del_aggr", nr)])
Module: check_mk
Branch: master
Commit: 97a9ef60dd88eb78ec4b0e80f6143885259b8882
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=97a9ef60dd88eb…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Feb 26 11:22:11 2016 +0100
#3235 FIX Unbreak COMMAND handling
Due to a recent bug, only the first of several COMMANDs piped into
livestatus was executed. This made e.g. replaying the output of cmcdump
impossible. This has been fixed now.
---
.werks/3235 | 13 +++++++++++++
ChangeLog | 1 +
livestatus/src/InputBuffer.cc | 42 ++++++++++++++++++++---------------------
livestatus/src/InputBuffer.h | 6 ++++--
livestatus/src/Query.cc | 2 +-
livestatus/src/Query.h | 2 +-
livestatus/src/Store.cc | 31 +++++++++++++++++++++---------
livestatus/src/Store.h | 2 +-
8 files changed, 64 insertions(+), 35 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=97a9ef60dd…
Module: check_mk
Branch: master
Commit: 77fb6f6f4d161e2b2fe85e170892ccb37f12ce27
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=77fb6f6f4d161e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 26 11:23:34 2016 +0100
Better online help BI aggregation worst
---
web/plugins/wato/bi.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/web/plugins/wato/bi.py b/web/plugins/wato/bi.py
index 9f89fa5..81333f6 100644
--- a/web/plugins/wato/bi.py
+++ b/web/plugins/wato/bi.py
@@ -1454,9 +1454,10 @@ bi_aggregation_functions["worst"] = {
Integer(
help = _("Normally this value is <tt>1</tt>, which means that the worst state "
"of all child nodes is being used as the total state. If you set it for example "
- "to <tt>2</tt>, then the node with the worst state is not being regarded. "
- "If the states of the child nodes would be CRIT, WARN and OK, then to total "
- "state would be WARN."),
+ "to <tt>3</tt>, then instead the node with the 3rd worst state is being regarded. "
+ "Example: In the case of five nodes with the states CRIT CRIT WARN OK OK then "
+ "resulting state would be WARN. Or you could say that the worst to nodes are "
+ "first dropped and then the worst of the remaining nodes defines the state. "),
title = _("Take n'th worst state for n = "),
default_value = 1,
min_value = 1),