[icinga-checkins] icinga.org: icinga-web/next: Fix unhandled host problems listing ghost hosts

git at icinga.org git at icinga.org
Thu Apr 11 16:38:59 CEST 2013


Module: icinga-web
Branch: next
Commit: 7d4746a7ee008879d39ad767835acc3785e735b0
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=7d4746a7ee008879d39ad767835acc3785e735b0

Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Thu Apr 11 16:38:11 2013 +0200

Fix unhandled host problems listing ghost hosts

This bug was introduced by the changes to the credential system.

The Join of status data into the unhandled host problem should be INNER, not LEFT.

fixes #3953

---

 app/modules/Api/config/views/host.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/modules/Api/config/views/host.xml b/app/modules/Api/config/views/host.xml
index db525a0..dfb8227 100644
--- a/app/modules/Api/config/views/host.xml
+++ b/app/modules/Api/config/views/host.xml
@@ -191,7 +191,7 @@
                 hs.has_been_checked as host_has_been_checked
             FROM IcingaHosts h
             INNER JOIN h.instance i
-            LEFT JOIN h.status hs WITH
+            INNER JOIN h.status hs WITH
             (
                 hs.current_state != 0 AND
                 hs.problem_has_been_acknowledged = 0 AND





More information about the icinga-checkins mailing list