[icinga-checkins] icinga.org: icinga-core/mfriedrich/cgis: classic-ui: change behavior of scheduling queue filter in extinfo.cgi #2421

git at icinga.org git at icinga.org
Thu Apr 19 12:07:14 CEST 2012


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

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Fri Apr 13 21:31:45 2012 +0200

classic-ui: change behavior of scheduling queue filter in extinfo.cgi #2421

refs: #2421

filtering for a certain host and service, host only entries
are not displayed anymore

---

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

diff --git a/cgi/extinfo.c b/cgi/extinfo.c
index 605de58..454fac7 100644
--- a/cgi/extinfo.c
+++ b/cgi/extinfo.c
@@ -3450,7 +3450,8 @@ void show_scheduling_queue(void) {
 			if (host_name && *host_name != '\0' && strcmp(host_name, temp_hststatus->host_name))
 				continue;
 
-			if (host_name && *host_name == '\0' && service_desc && *service_desc != '\0')
+			/* skip host if users just want to see a service */
+			if (service_desc && *service_desc != '\0')
 				continue;
 		}
 





More information about the icinga-checkins mailing list