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

Bugfix: Automap: Fixed parent calculation in automap (Thanks to Oliver Graf)

---

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

diff --git a/ChangeLog b/ChangeLog
index aea558c..238730e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@ Core
   * 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)
+  * Bugfix: Automap: Fixed parent calculation in automap (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/NagiosHost.php 
b/share/server/core/classes/objects/NagiosHost.php
index 6da2afc..e262e40 100644
--- a/share/server/core/classes/objects/NagiosHost.php
+++ b/share/server/core/classes/objects/NagiosHost.php
@@ -455,7 +455,7 @@ class NagiosHost extends NagVisStatefulObject {
         }
         foreach($aParents AS $parentName) {
             // If the host is in ignoreHosts, don't recognize it
-            if(count($ignoreHosts) == 0 || !in_array($childName, 
$ignoreHosts)) {
+            if(count($ignoreHosts) == 0 || !in_array($parentName, 
$ignoreHosts)) {
                 /*
                  * Check if the host is already on the map (If it's not done, 
the
                  * objects with more than one parent will be printed several 
times on the


------------------------------------------------------------------------------
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