diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php index 6d1a94ac66..aea3f5978a 100644 --- a/pandora_console/include/class/Tree.class.php +++ b/pandora_console/include/class/Tree.class.php @@ -1685,7 +1685,8 @@ class Tree { $module['snapshot'] = ui_get_snapshot_link(array( 'id_module' => $module['id'], 'interval' => $module['current_interval'], - 'module_name' => $module['name'] + 'module_name' => $module['name'], + 'id_node' => $module['serverID'] ? $module['serverID'] : 0, ), true); } diff --git a/pandora_console/operation/agentes/snapshot_view.php b/pandora_console/operation/agentes/snapshot_view.php index 497c2dc803..958ea46dc2 100644 --- a/pandora_console/operation/agentes/snapshot_view.php +++ b/pandora_console/operation/agentes/snapshot_view.php @@ -52,10 +52,6 @@ if ($id_node > 0) { $row_module = modules_get_agentmodule($id); $row_state = db_get_row('tagente_estado', 'id_agente_modulo', $id); -if ($id_node > 0) { - metaconsole_restore_db(); -} - // Build the info $label = get_parameter ("label", io_safe_output($row_module['module_name'])); $last_timestamp = get_parameter("timestamp", $row_state['timestamp']);