[icinga-checkins] icinga.org: icinga-core/mfriedrich/cgis: classic-ui: ost/ service healt in rac.cgi now clickable

git at icinga.org git at icinga.org
Tue Apr 3 10:01:59 CEST 2012


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

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Sun Mar 18 09:50:57 2012 +0100

classic-ui: ost/service healt in rac.cgi now clickable

---

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

diff --git a/cgi/tac.c b/cgi/tac.c
index 82925e7..fbbb213 100644
--- a/cgi/tac.c
+++ b/cgi/tac.c
@@ -1967,11 +1967,11 @@ void display_tac_overview(void) {
 	printf("<table border=0 cellspacing=4 cellspadding=0>\n");
 	printf("<tr>\n");
 	printf("<td align=left valign=center class='healthItem'>Host Health:</td>");
-	printf("<td valign=top width=100 class='healthBar'><img src='%s%s' border=0 width=%d height=20 alt='%2.1f%% Health' title='%2.1f%% Health'></td>\n", url_images_path, host_health_image, (percent_host_health < 5.0) ? 5 : (int)percent_host_health, percent_host_health, percent_host_health);
+	printf("<td valign=top width=100 class='healthBar'><a href='%s?host=all&style=hostdetail&hoststatustypes=%d'><img src='%s%s' border=0 width=%d height=20 alt='%2.1f%% Health' title='%2.1f%% Health'></a></td>\n", STATUS_CGI, HOST_DOWN | HOST_UNREACHABLE, url_images_path, host_health_image, (percent_host_health < 5.0) ? 5 : (int)percent_host_health, percent_host_health, percent_host_health);
 	printf("</tr>\n");
 	printf("<tr>\n");
 	printf("<td align=left valign=center class='healthItem'>Service Health:</td>");
-	printf("<td valign=top width=100 class='healthBar'><img src='%s%s' border=0 width=%d height=20 alt='%2.1f%% Health' title='%2.1f%% Health'></td>\n", url_images_path, service_health_image, (percent_service_health < 5.0) ? 5 : (int)percent_service_health, percent_service_health, percent_service_health);
+	printf("<td valign=top width=100 class='healthBar'><a href='%s?host=all&style=detail&servicestatustypes=%d'><img src='%s%s' border=0 width=%d height=20 alt='%2.1f%% Health' title='%2.1f%% Health'></td>\n", STATUS_CGI, SERVICE_CRITICAL | SERVICE_WARNING | SERVICE_PENDING, url_images_path, service_health_image, (percent_service_health < 5.0) ? 5 : (int)percent_service_health, percent_service_health, percent_service_health);
 	printf("</tr>\n");
 	printf("</table>\n");
 	printf("</td>\n");





More information about the icinga-checkins mailing list