[icinga-checkins] icinga.org: icingaweb2-module-director/feature-ddo-playground: StateObject : allow unkown hosts

git at icinga.org git at icinga.org
Tue Jul 19 10:31:52 CEST 2016


Module: icingaweb2-module-director
Branch: feature-ddo-playground
Commit: de6cfdf36baec6c716df2edbea6ef742bceecc19
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=de6cfdf36baec6c716df2edbea6ef742bceecc19

Author: Thomas Gelf <thomas at gelf.net>
Date:   Tue Jun 21 15:42:33 2016 +0200

StateObject: allow unkown hosts

---

 library/Director/Ddo/StateObject.php |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/library/Director/Ddo/StateObject.php b/library/Director/Ddo/StateObject.php
index 4017a90..b048648 100644
--- a/library/Director/Ddo/StateObject.php
+++ b/library/Director/Ddo/StateObject.php
@@ -21,15 +21,16 @@ abstract class StateObject extends DdoObject
 
     protected static $hostStateSortMap = array(
         self::ICINGA_PENDING     => 1,
-        self::ICINGA_UNREACHABLE => 3,
-        self::ICINGA_DOWN        => 4,
+        self::ICINGA_UNREACHABLE => 4,
+        self::ICINGA_DOWN        => 8,
+        self::ICINGA_UNKNOWN     => 2,
         self::ICINGA_UP          => 0,
     );
 
     protected static $serviceStateSortMap = array(
         self::ICINGA_PENDING  => 1,
-        self::ICINGA_UNKNOWN  => 3,
-        self::ICINGA_CRITICAL => 4,
+        self::ICINGA_UNKNOWN  => 4,
+        self::ICINGA_CRITICAL => 8,
         self::ICINGA_WARNING  => 2,
         self::ICINGA_OK       => 0,
     );



More information about the icinga-checkins mailing list