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: