Author:   Lars Michelsen <[email protected]>
Date:     Sat Jun 25 10:52:02 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Sat Jun 25 10:52:02 2011 +0200

Bugfix: Fixed false CRITICAL states when using NDO Backend (Thanks to Oliver 
Graf)

---

 ChangeLog                                          |    1 +
 .../core/classes/objects/NagVisStatefulObject.php  |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 38a8bbf..aea558c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@ Core
   * Bugfix: NDO Backend: Fixed wrong SQL syntax in getHostState function
   * Bugfix: NDO Backend: Fixed wrong hard state handling
   * Bugfix: Fixed redirects after map add/rename/delete
+  * Bugfix: Fixed false CRITICAL states when using NDO Backend (Thanks to 
Oliver Graf)
 
 Frontend
   * Labels of objects can now be moved again; The edit mode is affected by the 
objects lock/unlock state
diff --git a/share/server/core/classes/objects/NagVisStatefulObject.php 
b/share/server/core/classes/objects/NagVisStatefulObject.php
index ebd490c..366ed63 100644
--- a/share/server/core/classes/objects/NagVisStatefulObject.php
+++ b/share/server/core/classes/objects/NagVisStatefulObject.php
@@ -817,7 +817,7 @@ class NagVisStatefulObject extends NagVisObject {
             foreach($this->aStateCounts AS $sState => $aSubstates) {
                 // Loop all substates (normal,ack,downtime,...)
                 foreach($aSubstates AS $sSubState => $iCount) {
-                    if($iCount === 0)
+                    if($iCount == 0)
                         continue;
 
                     // Count all child objects


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to