[icinga-checkins] icinga.org: icinga-core/dev/cgis: classic ui: fixed invalid json output for tac.cgi #2160

git at icinga.org git at icinga.org
Fri Feb 24 17:28:38 CET 2012


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

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Tue Dec  6 20:57:06 2011 +0100

classic ui: fixed invalid json output for tac.cgi #2160

refs: #2160

---

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

diff --git a/Changelog b/Changelog
index ed12220..cc5e262 100644
--- a/Changelog
+++ b/Changelog
@@ -4,6 +4,13 @@ Icinga 1.6.x Change Log
 
 Thanks to all contributers, testers and developers. Please read AUTHORS and THANKS for a detailed list :-)
 
+1.7.0 - 01/03/2012
+
+FIXES
+* classic ui: fixed invalid json output for tac.cgi #2160
+
+
+
 1.6.0 - 30/11/2011
 
 ENHANCEMENTS
diff --git a/cgi/tac.c b/cgi/tac.c
index ae8c189..56aea71 100644
--- a/cgi/tac.c
+++ b/cgi/tac.c
@@ -1710,8 +1710,8 @@ void display_tac_overview(void) {
 		printf("\"total_active_host_checks_with_passive_disabled\": %d,\n", total_active_host_checks_with_passive_disabled);
 
 		printf("\"total_active_service_checks\": %d,\n", total_active_service_checks);
-		printf("\"total_passive_service_checks\": %d\n", total_passive_service_checks);
-		printf("\"total_disabled_service_checks\": %d\n", total_disabled_service_checks);
+		printf("\"total_passive_service_checks\": %d,\n", total_passive_service_checks);
+		printf("\"total_disabled_service_checks\": %d,\n", total_disabled_service_checks);
 		printf("\"total_active_service_checks_with_passive_disabled\": %d\n", total_active_service_checks_with_passive_disabled);
 
 		printf(" }\n");





More information about the icinga-checkins mailing list