[icinga-checkins] icinga.org: icinga-core/mbrooks/cgis: fix cfg option of pending states in tac header, enable it by default

git at icinga.org git at icinga.org
Tue Jun 14 21:06:25 CEST 2011


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

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Wed May 18 13:30:25 2011 +0200

fix cfg option of pending states in tac header, enable it by default

---

 cgi/cgiutils.c           |    4 ++--
 sample-config/cgi.cfg.in |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cgi/cgiutils.c b/cgi/cgiutils.c
index 4df7f1c..cc58073 100644
--- a/cgi/cgiutils.c
+++ b/cgi/cgiutils.c
@@ -132,7 +132,7 @@ int		color_transparency_index_b=255;
 int		status_show_long_plugin_output=FALSE;
 int		tac_show_only_hard_state=FALSE;
 int		show_tac_header=TRUE;
-int		show_tac_header_pending=FALSE;
+int		show_tac_header_pending=TRUE;
 int		showlog_initial_states=TRUE;
 int		showlog_current_states=TRUE;
 int		tab_friendly_titles=FALSE;
@@ -560,7 +560,7 @@ int read_cgi_config_file(char *filename){
 			show_tac_header=(atoi(val)>0)?TRUE:FALSE;
 
 		else if(!strcmp(var,"show_tac_header_pending"))
-			show_tac_header=(atoi(val)>0)?TRUE:FALSE;
+			show_tac_header_pending=(atoi(val)>0)?TRUE:FALSE;
 
 		else if(!strcmp(var,"showlog_initial_state") || !strcmp(var,"showlog_initial_states"))
 			showlog_initial_states=(atoi(val)>0)?TRUE:FALSE;
diff --git a/sample-config/cgi.cfg.in b/sample-config/cgi.cfg.in
index a24916f..8a438b6 100644
--- a/sample-config/cgi.cfg.in
+++ b/sample-config/cgi.cfg.in
@@ -455,9 +455,9 @@ show_tac_header=1
 # the tac header. If your display is less than 1024x768
 # and this is enabled, the tactical information may not
 # fit well in the top frame.
-# By default it is disabled.
+# By default it is enabled.
 
-show_tac_header_pending=0
+show_tac_header_pending=1
 
 
 





More information about the icinga-checkins mailing list