Module: check_mk
Branch: master
Commit: 088cc6d3b90d18d27e80a324ca4c976ed3f9563e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=088cc6d3b90d18…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu May 12 08:48:09 2016 +0200
Fixed ucb ps regex to make it work with solaris grep
---
agents/check_mk_agent.solaris | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index 721b611..efd53c3 100755
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -201,7 +201,7 @@ if [ -x /usr/ucb/ps ]; then
STATS=${LINE%) *}
PID=${STATS##*,}
- CMD=$(echo "$UCB_PS" | grep "^\s*$PID " | head -n1 | \
+ CMD=$(echo "$UCB_PS" | grep "^[ ]*$PID " | head -n1 | \
awk '{ s = ""; for (i = 5; i <= NF; i++) s = s $i " "; print s }')
# Only use the ucb ps line when it's not empty (process might already been gone) and the
# ps line is long enough the be potentially stripped.
Module: check_mk
Branch: master
Commit: 52da62dbc48df81b56bb1449873e0de4e45faa79
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=52da62dbc48df8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu May 12 08:40:15 2016 +0200
3574 FIX Fixed broken aggregations snapin when using aggregations based on hard states
When creating an aggregation which bases it's state computation on hard states, this
lead to an exception in the sidebar snapin "classobj" not iterable.
---
.werks/3574 | 11 +++++++++++
ChangeLog | 1 +
web/htdocs/bi.py | 15 ++++++++++-----
3 files changed, 22 insertions(+), 5 deletions(-)
diff --git a/.werks/3574 b/.werks/3574
new file mode 100644
index 0000000..003cb05
--- /dev/null
+++ b/.werks/3574
@@ -0,0 +1,11 @@
+Title: Fixed broken aggregations snapin when using aggregations based on hard states
+Level: 1
+Component: bi
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1463035142
+
+When creating an aggregation which bases it's state computation on hard states, this
+lead to an exception in the sidebar snapin "classobj" not iterable.
diff --git a/ChangeLog b/ChangeLog
index a9ed054..3986c6c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -383,6 +383,7 @@
* 3358 FIX: Fixed BI Boxes views when "Enable BI compilation diagnostics" enabled
* 3439 FIX: Fixed processing of BI aggregations containing umlauts
* 3440 FIX: Fixed possible BI exception "Unknown BI aggregation group ..."...
+ * 3574 FIX: Fixed broken aggregations snapin when using aggregations based on hard states...
Reporting & Availability:
* 3267 New availability option for reclassifying host state "unreachable"...
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index 7024a9d..8cfb1e5 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -178,13 +178,18 @@ def aggregation_groups():
migrate_bi_configuration() # convert bi_packs into legacy variables
# on demand: show all configured groups
group_names = set([])
- for a in config.aggregations + config.host_aggregations:
- if a[0] == config.DISABLED:
+ for entry in config.aggregations + config.host_aggregations:
+ if entry[0] == config.DISABLED:
continue
- if type(a[0]) == list:
- group_names.update(a[0])
+
+ if entry[0] == config.HARD_STATES:
+ entry = entry[1:]
+
+ if type(entry[0]) == list:
+ group_names.update(entry[0])
else:
- group_names.add(a[0])
+ group_names.add(entry[0])
+
group_names = list(group_names)
else:
Module: check_mk
Branch: master
Commit: 263fa838460559897425a02980b909f1a146adce
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=263fa838460559…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu May 12 08:29:49 2016 +0200
Better error message on distributed logwatch if slave core is outdated
---
web/htdocs/logwatch.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/web/htdocs/logwatch.py b/web/htdocs/logwatch.py
index 5a05518..3d77f8a 100644
--- a/web/htdocs/logwatch.py
+++ b/web/htdocs/logwatch.py
@@ -514,6 +514,11 @@ def logfiles_of_host(site, host_name):
"Filter: name = %s\n" % lqencode(host_name))
if site: # Honor site hint if available
sites.live().set_only_sites(None)
+ if file_names == None: # Not supported by that Livestatus version
+ raise MKGeneralException(
+ _("The monitoring core of the target site '%s' has the version '%s'. That "
+ "does not support fetching logfile information. Please upgrade "
+ "to a newer version.") % (site, sites.state(site)["program_version"]))
return file_names
Module: check_mk
Branch: master
Commit: 49a64f3d4824fcbf951a94361d3bf242fed52655
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=49a64f3d4824fc…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed May 11 12:51:41 2016 +0200
3470 FIX mounts: Fix exception when displaying check parameters in WATO services list
The reason for this exception was that the autodiscovery now creates Unicode
strings while the WATO parameter definition only allowed normal strings.
---
.werks/3470 | 11 +++++++++++
ChangeLog | 1 +
web/plugins/wato/check_parameters.py | 4 +++-
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.werks/3470 b/.werks/3470
new file mode 100644
index 0000000..a9ac90e
--- /dev/null
+++ b/.werks/3470
@@ -0,0 +1,11 @@
+Title: mounts: Fix exception when displaying check parameters in WATO services list
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1462963852
+
+The reason for this exception was that the autodiscovery now creates Unicode
+strings while the WATO parameter definition only allowed normal strings.
diff --git a/ChangeLog b/ChangeLog
index 6752478..2d6af3e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -213,6 +213,7 @@
* 3529 FIX: agent_netapp: fixed problem with older netapp versions (7Mode - Version 8.0)...
* 3573 FIX: ps: Fixed possible wrong matching of ps and ucb ps commands
* 3131 FIX: if64, if64adm: These checks now display the speed of interfaces slower than 1Mbit correctly...
+ * 3470 FIX: mounts: Fix exception when displaying check parameters in WATO services list...
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 952083c..1247a6b 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -2855,7 +2855,9 @@ register_check_parameters(
help = _("Specify all expected mount options here. If the list of "
"actually found options differs from this list, the check will go "
"warning or critical. Just the option <tt>commit</tt> is being "
- "ignored since it is modified by the power saving algorithms.")),
+ "ignored since it is modified by the power saving algorithms."),
+ valuespec = TextUnicode(),
+ ),
TextAscii(
title = _("Mount point"),
allow_empty = False),