Module: check_mk
Branch: master
Commit: 0b4affeb95540d830fbafccd3aa688f46c4f8ae4
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0b4affeb95540d…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Tue Nov 21 15:48:32 2017 +0100
5520 FIX rstcli, rstcli.pdisks: Fix broken parse function
Some unexpected lines in the corresponding agent section could lead to
neither check nor discovery working (ie crashing). This has been fixed
for all known cases.
Change-Id: Ibdcea18161f05dec47f1fc50c348873e11f7ba5b
---
.werks/5520 | 13 +++++++++++++
checks/rstcli | 4 ++++
2 files changed, 17 insertions(+)
diff --git a/.werks/5520 b/.werks/5520
new file mode 100644
index 0000000..f7ac77a
--- /dev/null
+++ b/.werks/5520
@@ -0,0 +1,13 @@
+Title: rstcli, rstcli.pdisks: Fix broken parse function
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i2
+Date: 1511275342
+
+Some unexpected lines in the corresponding agent section could lead to
+neither check nor discovery working (ie crashing). This has been fixed
+for all known cases.
diff --git a/checks/rstcli b/checks/rstcli
index 25694a5..e900720 100644
--- a/checks/rstcli
+++ b/checks/rstcli
@@ -71,6 +71,10 @@ def parse_rstcli_sections(info):
if current_section is not None:
yield current_section
current_section = (":".join(line).strip("-").strip(), [])
+ elif len(line) < 2:
+ # On some systems, there are lines that only consist of
+ # a contextless 0. Skip those to avoid parsing errors later.
+ continue
else:
if current_section is None:
raise MKGeneralException("error: %s" % " ".join(line))
Module: check_mk
Branch: master
Commit: a9f6dc44fb6f9502803d968c75895a8f0ef4706a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a9f6dc44fb6f95…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 17 10:57:15 2017 +0100
Updated bug entries #3013
Change-Id: Ice1940b193defefa70f64cd1376eb13cc8806264
---
.bugs/3013 | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/.bugs/3013 b/.bugs/3013
new file mode 100644
index 0000000..e900eaa
--- /dev/null
+++ b/.bugs/3013
@@ -0,0 +1,12 @@
+Title: Improve performance of some pages (using automations)
+Component: wato
+State: open
+Date: 2017-11-17 10:55:13
+Targetversion: 1.5.0
+Class: bug
+
+Some pages that rely on Check_MK automation calls are terrible slow. For example
+the rule editor of the "Check intervals for SNMP checks" is slow because the
+automation call that is used to list the check of Check_MK is called 4 times
+when rendering the page. This should really be cached on any layer, maybe in the
+valuespec itself.
Module: check_mk
Branch: master
Commit: 74c6f6ee6c3709d2a29d21db9eb58c158fb03891
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=74c6f6ee6c3709…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 17 13:57:56 2017 +0100
Added helpful message when viewing the service discovery page of clusters which have no services
Change-Id: I475d48498d6c86b942dd70e255bdb7b882cbddc7
---
web/htdocs/wato.py | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 2bf513a..ae36e06 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -2818,7 +2818,7 @@ class ModeDiscovery(WatoMode):
("mode", "object_parameters"),
("host", self._host_name)]), "rulesets")
if self._host.is_cluster():
- html.context_button(_("Clustered Services"),
+ html.context_button(_("Clustered services"),
watolib.folder_preserving_link([("mode", "edit_ruleset"),
("varname", "clustered_services")]), "rulesets")
@@ -2917,6 +2917,15 @@ class ModeDiscovery(WatoMode):
(_("Service discovery failed for this host"), e, retry_link))
return
+ if not check_table and self._host.is_cluster():
+ url = watolib.folder_preserving_link([("mode", "edit_ruleset"),
+ ("varname", "clustered_services")])
+ html.show_info(_("Could not find any service for your cluster. You first need to "
+ "specify which services of your nodes shal be added to the "
+ "cluster. This is done using the <a href=\"%s\">%s</a> ruleset.") %
+ (url, _("Clustered services")))
+ return
+
map_icons = {self.SERVICE_UNDECIDED: "undecided",
self.SERVICE_MONITORED: "monitored",
self.SERVICE_IGNORED: "disabled"}