[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Had to change status condition in order to let StatusSummary work with api changes

git at icinga.org git at icinga.org
Tue Sep 14 11:22:18 CEST 2010


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

Author: jmosshammer <jmosshammer at ws-jmosshammer.(none)>
Date:   Tue Sep 14 11:22:33 2010 +0200

* Had to change status condition in order to let StatusSummary work with api changes

---

 .../models/System/StatusOverallModel.class.php     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/modules/Cronks/models/System/StatusOverallModel.class.php b/app/modules/Cronks/models/System/StatusOverallModel.class.php
index ca8d5fa..30128ca 100644
--- a/app/modules/Cronks/models/System/StatusOverallModel.class.php
+++ b/app/modules/Cronks/models/System/StatusOverallModel.class.php
@@ -30,7 +30,7 @@ class Cronks_System_StatusOverallModel extends CronksBaseModel {
 		foreach ($sources as $stype=>$tarray) {
 			$type = explode("_",strtoupper($stype));
 			$search = $this->api->createSearch()->setSearchTarget($stype);
-			$search->setSearchFilter($type[0]."_IS_PENDING","0","=");
+			$search->setSearchFilter($type[0]."_IS_PENDING","1","!=");
 			IcingaPrincipalTargetTool::applyApiSecurityPrincipals($search);
 			$this->buildDataArray($search, $tarray[0], $tarray[1], $target);
 		}





More information about the icinga-checkins mailing list