[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: classic-ui: fixed Warning and Unknown States are mixed up in Alert Summary Report #3488

git at icinga.org git at icinga.org
Thu Jan 3 10:31:26 CET 2013


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

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Tue Dec 18 19:06:15 2012 +0100

classic-ui: fixed Warning and Unknown States are mixed up in Alert Summary Report #3488

refs: #3488

States got mixed up when reading log data. should be fixed now.

---

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

diff --git a/Changelog b/Changelog
index 97a03bf..9facce9 100644
--- a/Changelog
+++ b/Changelog
@@ -43,6 +43,7 @@ FIXES
 * classic ui: fixed committing acknowledgement cmd negates flags for send_notification and sticky_ack #3329 - RB
 * classic ui: fixed backtrack_archives only getting calculated on a daily log rotation basis #3416 - RB
 * classic ui: fixed invalid freeing of last_check in 'scheduling queue' for first time checks #3444 - RB
+* classic ui: fixed Warning and Unknown States are mixed up in Alert Summary Report #3488 - RB
 
 * docs: add missing cmd_mod description in cgi params #3438 - MF
 * docs: search_string as cgi GET param works also for status.cgi #3451 - MF
diff --git a/cgi/summary.c b/cgi/summary.c
index e0b19ae..6326d54 100644
--- a/cgi/summary.c
+++ b/cgi/summary.c
@@ -1188,9 +1188,9 @@ void read_archived_event_data(void) {
 				if (temp_entry->type == LOGENTRY_SERVICE_CRITICAL)
 					state = AE_SERVICE_CRITICAL;
 				else if (temp_entry->type == LOGENTRY_SERVICE_WARNING)
-					state = AE_SERVICE_UNKNOWN;
-				else if (temp_entry->type == LOGENTRY_SERVICE_UNKNOWN)
 					state = AE_SERVICE_WARNING;
+				else if (temp_entry->type == LOGENTRY_SERVICE_UNKNOWN)
+					state = AE_SERVICE_UNKNOWN;
 				else if (temp_entry->type == LOGENTRY_SERVICE_RECOVERY || temp_entry->type == LOGENTRY_SERVICE_OK)
 					state = AE_SERVICE_OK;
 				else





More information about the icinga-checkins mailing list