Author:   Lars Michelsen <[email protected]>
Date:     Fri Aug 23 21:48:32 2013 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Fri Aug 23 21:48:32 2013 +0200

Fixed dynamic maps which use more than one backend as source

---

 share/server/core/sources/dynmap.php |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/share/server/core/sources/dynmap.php 
b/share/server/core/sources/dynmap.php
index 2a95529..6ec6e1d 100644
--- a/share/server/core/sources/dynmap.php
+++ b/share/server/core/sources/dynmap.php
@@ -13,18 +13,20 @@ function dynmap_get_objects($MAPCFG, $p) {
         // only use the internal names
         foreach ($ret AS $key => $val) {
             if ($type == 'service') {
-                $obj_id = $MAPCFG->genObjId($val['name1'] . '~~' . 
$val['name2']);
+                $obj_id = $MAPCFG->genObjId($backend_id.'~~'.$val['name1'] . 
'~~' . $val['name2']);
                 $object = array(
                     'type'                => $type,
                     'object_id'           => $obj_id,
+                    'backend_id'          => array($backend_id),
                     'host_name'           => $val['name1'],
                     'service_description' => $val['name1'],
                 );
             } else {
-                $obj_id = $MAPCFG->genObjId($val['name1']);
+                $obj_id = $MAPCFG->genObjId($backend_id.'~~'.$val['name1']);
                 $object = array(
                     'type'                => $type,
                     'object_id'           => $obj_id,
+                    'backend_id'          => array($backend_id),
                     $type.'_name'         => $val['name1'],
                 );
             }


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to