[icinga-checkins] icinga.org: icingaweb2-module-director/feature-ddo-playground: StateList: accept and ignore notifications for now

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


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

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sat Jun 25 08:59:26 2016 +0200

StateList: accept and ignore notifications for now

---

 library/Director/Ddo/StateList.php |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/library/Director/Ddo/StateList.php b/library/Director/Ddo/StateList.php
index 315d860..ae24d32 100644
--- a/library/Director/Ddo/StateList.php
+++ b/library/Director/Ddo/StateList.php
@@ -22,11 +22,12 @@ class StateList
 
     public function processCheckResult($result)
     {
+        // Hint: ->type is not always available, check this:
         $type = $result->type;
         $types = array(
             'CheckResult'            => 'check_result',
             'StateChange'            => 'check_result',
-            'Notification',
+            'Notification'           => null,
             'AcknowledgementSet'     => null,
             'AcknowledgementCleared' => null,
             'CommentAdded'           => 'comment',



More information about the icinga-checkins mailing list