[icinga-checkins] icinga.org: icinga-api/master: * Downtime fix again

git at icinga.org git at icinga.org
Tue Jan 18 10:03:22 CET 2011


Module: icinga-api
Branch: master
Commit: 577b948201b8419468a7c42c108c011e1016d524
URL:    https://git.icinga.org/?p=icinga-api.git;a=commit;h=577b948201b8419468a7c42c108c011e1016d524

Author: Marius Hein <marius.hein at netways.de>
Date:   Mon Jan 17 17:05:07 2011 +0100

* Downtime fix again

---

 .../data_interfaces/IcingaApiSearchIdoMysql.php    |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/objects/search/data_interfaces/IcingaApiSearchIdoMysql.php b/objects/search/data_interfaces/IcingaApiSearchIdoMysql.php
index 3c7c75d..04b9cfc 100644
--- a/objects/search/data_interfaces/IcingaApiSearchIdoMysql.php
+++ b/objects/search/data_interfaces/IcingaApiSearchIdoMysql.php
@@ -415,10 +415,11 @@ implements IcingaApiSearchIdoInterface {
 			
 			${if_table:i,dt:left join ${TABLE_PREFIX}instances i on i.instance_id = dt.instance_id}
 			
-			where
-				not dt.actual_end_time 
-				and not dt.was_cancelled
-				and (not dt.was_started=0 and dt.scheduled_start_time >= NOW())
+			where 
+				not dt.was_cancelled 
+				and not(dt.was_started=0 and dt.scheduled_start_time<=NOW()) 
+				and not dt.actual_end_time
+				
 			
 			${FILTER_AND}
 			${GROUPBY}





More information about the icinga-checkins mailing list