[icinga-checkins] icinga.org: icinga-core/dev/core: Revert "classic-ui: link to first unreachable host is drawn in pink in statusmap.cgi #1464"

git at icinga.org git at icinga.org
Tue Nov 15 18:58:33 CET 2011


Module: icinga-core
Branch: dev/core
Commit: 940cc62d363e57629848c28862db7ea31b2401c3
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=940cc62d363e57629848c28862db7ea31b2401c3

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Tue Nov  1 20:50:37 2011 +0100

Revert "classic-ui: link to first unreachable host is drawn in pink in statusmap.cgi #1464"

This reverts commit cdb62f8b1c92b9812da716af32fe1c1127dfd712.

the bike shed problem

---

 cgi/statusmap.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/cgi/statusmap.c b/cgi/statusmap.c
index 7ce4bf8..399d1c6 100644
--- a/cgi/statusmap.c
+++ b/cgi/statusmap.c
@@ -1468,7 +1468,9 @@ void draw_host_links(void) {
 			/* determine color to use when drawing links to parent host */
 			parent_hoststatus = find_hoststatus(parent_host->name);
 			if (parent_hoststatus != NULL) {
-				if (parent_hoststatus->status == HOST_DOWN || parent_hoststatus->status == HOST_UNREACHABLE)
+				if (parent_hoststatus->status == HOST_DOWN)
+					status_color = color_red;
+				else if (parent_hoststatus->status == HOST_UNREACHABLE)
 					status_color = color_pink;
 				else
 					status_color = color_black;





More information about the icinga-checkins mailing list