[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: 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:54 CET 2011


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

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Wed Oct 26 22:46:37 2011 +0200

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

refs: #1464

---

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

diff --git a/cgi/statusmap.c b/cgi/statusmap.c
index 399d1c6..7ce4bf8 100644
--- a/cgi/statusmap.c
+++ b/cgi/statusmap.c
@@ -1468,9 +1468,7 @@ 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)
-					status_color = color_red;
-				else if (parent_hoststatus->status == HOST_UNREACHABLE)
+				if (parent_hoststatus->status == HOST_DOWN || parent_hoststatus->status == HOST_UNREACHABLE)
 					status_color = color_pink;
 				else
 					status_color = color_black;





More information about the icinga-checkins mailing list