[icinga-checkins] icinga.org: icinga-web/mhein/default: Added static join in host_status, should fix wrong state information

git at icinga.org git at icinga.org
Fri Aug 26 16:28:46 CEST 2011


Module: icinga-web
Branch: mhein/default
Commit: bbeeef5239fd218db9d9978f51754d76f47d6009
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=bbeeef5239fd218db9d9978f51754d76f47d6009

Author: Jannis Moßhanner <jannis.mosshammer at netways.de>
Date:   Fri Aug 26 14:38:02 2011 +0200

Added static join in host_status, should fix wrong state information

---

 .../LegacyLayer/TargetModifierModel.class.php      |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/modules/Api/models/Store/LegacyLayer/TargetModifierModel.class.php b/app/modules/Api/models/Store/LegacyLayer/TargetModifierModel.class.php
index e46dbfa..8483153 100644
--- a/app/modules/Api/models/Store/LegacyLayer/TargetModifierModel.class.php
+++ b/app/modules/Api/models/Store/LegacyLayer/TargetModifierModel.class.php
@@ -494,7 +494,7 @@ class Api_Store_LegacyLayer_TargetModifierModel extends IcingaStoreTargetModifie
                 $this->forceGroup[] = "hs.current_state";
                 $this->retainedAlias = "h";
                 $this->aliasDefs = array(
-                                       "h"  => array("src" => "oh", "relation" => "host"),
+                                       "h"  => array("src" => "oh", "relation" => "host","alwaysJoin"=>true),
                                        "s"  => array("src" => "h", "relation" => "services"),
                                        "oh" => array("src" => "hs", "relation" => "hostobject", "alwaysJoin" => true),
                                        "i"  => array("src" => "h", "relation" => "instance"),





More information about the icinga-checkins mailing list