Module: nagvis
Branch: master
Commit: f6f1ce3b66d8f790f23b50a3506e468f761f3aa9
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=f6f1ce3b66d8f790f23b50a3506e468f761f3aa9

Author: Lars Michelsen <[email protected]>
Date:   Tue Jun  1 10:46:50 2010 +0200

#304 Fixed the filterGroup automap parametr

---

 share/server/core/classes/NagVisAutoMap.php |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/share/server/core/classes/NagVisAutoMap.php 
b/share/server/core/classes/NagVisAutoMap.php
index ed88731..6c365a8 100644
--- a/share/server/core/classes/NagVisAutoMap.php
+++ b/share/server/core/classes/NagVisAutoMap.php
@@ -200,9 +200,17 @@ class NagVisAutoMap extends GlobalMap {
                        }
                }
                
+               /**
+                * It is possible to filter the object tree by a hostgroup.
+                * In this mode a list of hostnames in this group is fetched 
and the
+                * parent/child trees are filtered using this list.
+                */
                if($this->filterGroup != '') {
-                       $this->filterGroupObject = new 
NagiosHostgroup($this->CORE, $this->BACKEND, $this->backend_id, 
$this->filterGroup);
-                       $this->filterGroupObject->fetchMemberHostObjects();
+                       $this->filterGroupObject = new 
NagVisHostgroup($this->CORE, $this->BACKEND, $this->backend_id, 
$this->filterGroup);
+                       
$this->filterGroupObject->setConfiguration(Array('hover_menu' => 1, 
'hover_childs_show' => 1));
+                       $this->filterGroupObject->queueState(GET_STATE, 
GET_SINGLE_MEMBER_STATES);
+                       $this->BACKEND->execute();
+                       $this->filterGroupObject->applyState();
                        
                        $this->filterChildObjectTreeByGroup();
                        


------------------------------------------------------------------------------

_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to