[icinga-checkins] icinga.org: icinga-web/next: Fix StatusSummary: Do not drop host/ service when state==NULL (refs #3844)

git at icinga.org git at icinga.org
Wed Mar 13 12:19:29 CET 2013


Module: icinga-web
Branch: next
Commit: 226623a2e6dc4bc84d608b534130d941d8571950
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=226623a2e6dc4bc84d608b534130d941d8571950

Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Wed Mar 13 11:44:37 2013 +0100

Fix StatusSummary: Do not drop host/service when state==NULL (refs #3844)

---

 .../models/Provider/StatusSummaryModel.class.php   |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/app/modules/Cronks/models/Provider/StatusSummaryModel.class.php b/app/modules/Cronks/models/Provider/StatusSummaryModel.class.php
index 61b82ec..e86e954 100644
--- a/app/modules/Cronks/models/Provider/StatusSummaryModel.class.php
+++ b/app/modules/Cronks/models/Provider/StatusSummaryModel.class.php
@@ -106,9 +106,13 @@ class Cronks_Provider_StatusSummaryModel extends CronksBaseModel {
         foreach ($records as $record) {
             $state = $record['a_current_state'];
             
+            /* DO NOT check for this, due to a missing inital (pending)
+               state this *can* be NULL (#3838) -mfrosch
+            *//*
             if (!is_numeric($state)) {
                 continue;
             }
+            */
             
             if ((!$record['a_has_been_checked'])) {
                 $state = IcingaConstants::HOST_PENDING;





More information about the icinga-checkins mailing list