[icinga-checkins] icinga.org: icinga-api/elippmann/oci8: * oci8: fixed *_IS_PENDING

git at icinga.org git at icinga.org
Fri Jul 1 13:34:42 CEST 2011


Module: icinga-api
Branch: elippmann/oci8
Commit: 5d6d5e80c52f164f7694df8177ebdd639c7e56a1
URL:    https://git.icinga.org/?p=icinga-api.git;a=commit;h=5d6d5e80c52f164f7694df8177ebdd639c7e56a1

Author: Eric Lippmann <eric.lippmann at netways.de>
Date:   Fri Jul  1 13:34:08 2011 +0200

* oci8: fixed *_IS_PENDING

---

 .../data_interfaces/IcingaApiSearchIdoOci8.php     |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/objects/search/data_interfaces/IcingaApiSearchIdoOci8.php b/objects/search/data_interfaces/IcingaApiSearchIdoOci8.php
index c9052ba..83718de 100644
--- a/objects/search/data_interfaces/IcingaApiSearchIdoOci8.php
+++ b/objects/search/data_interfaces/IcingaApiSearchIdoOci8.php
@@ -591,7 +591,7 @@ class IcingaApiSearchIdoOci8
 		'HOST_CHILD_NAME' => array('oh', 'name1'),
 		'HOST_CUSTOMVARIABLE_NAME' => array('cvsh', 'varname'),
 		'HOST_CUSTOMVARIABLE_VALUE' => array('cvsh', 'varvalue'),
-		'HOST_IS_PENDING' => array('hs','has_been_checked','(%s-hs.should_be_scheduled)*-1>0'),
+		'HOST_IS_PENDING' => array('hs','has_been_checked','DECODE((%s-hs.should_be_scheduled), -1, 1, 0)'),
 
 		// Service data
 		'SERVICE_ID' => array('s', 'id'),
@@ -647,7 +647,7 @@ class IcingaApiSearchIdoOci8
 		'SERVICE_CUSTOMVARIABLE_NAME' => array('cvss', 'varname'),
 		'SERVICE_CUSTOMVARIABLE_VALUE' => array('cvss', 'varvalue'),
 		'SERVICE_STATE_COUNT' => array('count(ss', 'current_state)'),
-		'SERVICE_IS_PENDING' => array('ss','has_been_checked','(%s-ss.should_be_scheduled)*-1>0'),
+		'SERVICE_IS_PENDING' => array('ss','has_been_checked','DECODE((%s-ss.should_be_scheduled), -1, 1, 0)'),
 
 		// Config vars
 		'CONFIG_VAR_ID' => array('cfv', 'id'),





More information about the icinga-checkins mailing list