Module: check_mk
Branch: master
Commit: e353482f0773a8ee0b71d490e4fadf4c83616995
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e353482f0773a8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 15 08:13:15 2017 +0100
4366 FIX Fixed random exception related to html.unplug() in GUI
Change-Id: Ic794a9861fcf05193f27ec0e3ff5477ee8292d65
---
.werks/4366 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/htmllib.py | 27 ++++++++++++++++-----------
3 files changed, 27 insertions(+), 11 deletions(-)
diff --git a/.werks/4366 b/.werks/4366
new file mode 100644
index 0000000..cdf871d
--- /dev/null
+++ b/.werks/4366
@@ -0,0 +1,10 @@
+Title: Fixed random exception related to html.unplug() in GUI
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.5.0i1
+Date: 1487142764
+
+
diff --git a/ChangeLog b/ChangeLog
index 1d1ef1d..fdb2954 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
Multisite:
* 4365 FIX: Service availability: Host down could not be rewritten to other states like CRIT
+ * 4366 FIX: Fixed random exception related to html.unplug() in GUI
1.4.0b1:
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 6c97fa9..535f391 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -361,25 +361,30 @@ class OutputFunnel(object):
# Pull the plug for a moment to allow the sink content to pass through.
def flush(self):
- if self.is_plugged():
- text = self.plug_text[self.plug_level]
- self.plug_text[self.plug_level] = ""
- self.plug_level -= 1
- self.write(text)
- self.plug_level += 1
+ if not self.is_plugged():
+ return None
+
+ text = self.plug_text[self.plug_level]
+ self.plug_text[self.plug_level] = ""
+ self.plug_level -= 1
+ self.write(text)
+ self.plug_level += 1
# Get the sink content in order to do something with it.
def drain(self):
- if self.is_plugged():
- text = self.plug_text[self.plug_level]
- self.plug_text[self.plug_level] = ''
- return text
- else:
+ if not self.is_plugged():
return ''
+ text = self.plug_text[self.plug_level]
+ self.plug_text[self.plug_level] = ''
+ return text
+
def unplug(self):
+ if not self.is_plugged():
+ return
+
self.flush()
self.plug_text.pop()
self.plug_level -= 1
Module: check_mk
Branch: master
Commit: 31258ef42e8caf1b02b8536a4c7bf7b03b2572da
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=31258ef42e8caf…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 14 15:14:44 2017 +0100
4365 FIX Service availability: Host down could not be rewritten to other states like CRIT
Change-Id: Id28e3a384030c61c5de45817bcb9ef99938ced96
---
.werks/4365 | 9 +++++++++
ChangeLog | 3 +++
web/htdocs/availability.py | 4 +++-
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.werks/4365 b/.werks/4365
new file mode 100644
index 0000000..336db5c
--- /dev/null
+++ b/.werks/4365
@@ -0,0 +1,9 @@
+Title: Service availability: Host down could not be rewritten to other states like CRIT
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.5.0i1
+Date: 1487081636
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 51038e1..d0bd40b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
Checks & Agents:
* 4331 FIX: check_sql: Is now printing FreeTDS debug messages in verbose mode (with MSSQL)
+ Multisite:
+ * 4365 FIX: Service availability: Host down could not be rewritten to other states like CRIT
+
1.4.0b1:
Core & Setup:
diff --git a/web/htdocs/availability.py b/web/htdocs/availability.py
index db50c8d..1c750ed 100644
--- a/web/htdocs/availability.py
+++ b/web/htdocs/availability.py
@@ -736,7 +736,9 @@ def compute_availability(what, av_rawdata, avoptions):
else:
s = "in_downtime"
elif what != "host" and span["host_down"] and avoptions["consider"]["host_down"]:
- s = "host_down"
+ # Reclassification due to state grouping
+ s = avoptions["state_grouping"].get("host_down", "host_down")
+
elif span["is_flapping"] and avoptions["consider"]["flapping"]:
s = "flapping"
else:
Module: check_mk
Branch: master
Commit: 508dbf647e0c32556f93d04eb357ce300e9b8001
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=508dbf647e0c32…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Feb 14 15:15:20 2017 +0100
4203 FIX Fix failed SSH login in Linux remote alert handlers on some distributions
When the baked agent package automatically creates the SSH access for
executing remote alert handlers by modifying <tt>.ssh/authorized_keys</tt>
it puts two spaces instead of just one after the word <tt>ssh-rsa</tt>. This
seems to make <b>some</b> versions of SSH unhappy and ignore that key. This
has been fixed. You need to rebake and reinstall your agents in order to
fix that after updating Check_MK.
As a workaround you can manually remove the duplicate space in
<tt>.ssh/authorized_keys</tt> in the home directory of the target user.
Change-Id: I9dc3b467500ab7c2d9f12282ced4da1b28cd1202
---
.werks/4203 | 18 ++++++++++++++++++
ChangeLog | 1 +
2 files changed, 19 insertions(+)
diff --git a/.werks/4203 b/.werks/4203
new file mode 100644
index 0000000..9e92d72
--- /dev/null
+++ b/.werks/4203
@@ -0,0 +1,18 @@
+Title: Fix failed SSH login in Linux remote alert handlers on some distributions
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.5.0i1
+Date: 1487081543
+
+When the baked agent package automatically creates the SSH access for
+executing remote alert handlers by modifying <tt>.ssh/authorized_keys</tt>
+it puts two spaces instead of just one after the word <tt>ssh-rsa</tt>. This
+seems to make <b>some</b> versions of SSH unhappy and ignore that key. This
+has been fixed. You need to rebake and reinstall your agents in order to
+fix that after updating Check_MK.
+
+As a workaround you can manually remove the duplicate space in
+<tt>.ssh/authorized_keys</tt> in the home directory of the target user.
diff --git a/ChangeLog b/ChangeLog
index d0bd40b..1d1ef1d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
1.5.0i1:
Checks & Agents:
* 4331 FIX: check_sql: Is now printing FreeTDS debug messages in verbose mode (with MSSQL)
+ * 4203 FIX: Fix failed SSH login in Linux remote alert handlers on some distributions...
Multisite:
* 4365 FIX: Service availability: Host down could not be rewritten to other states like CRIT