diff --git a/pandora_console/include/ajax/map.ajax.php b/pandora_console/include/ajax/map.ajax.php index 64c91361bc..96995389c7 100644 --- a/pandora_console/include/ajax/map.ajax.php +++ b/pandora_console/include/ajax/map.ajax.php @@ -40,8 +40,8 @@ if (is_ajax ()) { WHERE id_agente = " . $id_node_data); $node_data = $node_data[0]; if (!empty($node_data)) { - $link = $config['homeurl'] . 'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=' . $node_data['id_agente']; - $return_data .= '
'; + $link = $config['homeurl'] . 'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=' . $id_node_data; + $return_data .= '
'; $return_data .= '
'; $return_data .= 'Agent: ' . $node_data['nombre'] . ''; $return_data .= '| X '; @@ -73,12 +73,20 @@ if (is_ajax ()) { WHERE id_agente_modulo = " . $id_node_data); $node_data = $node_data[0]; if (!empty($node_data)) { - $return_data .= '
'; - $return_data .= 'Module: ' . $node_data['nombre'] . '
'; - $agent_module = db_get_row_sql("SELECT nombre FROM tagente WHERE id_agente = " . $node_data['id_agnte']); - $agent_module = $agent_module['nombre']; - $return_data .= 'Agent: ' . $agent_module . '
'; - $return_data .= 'Description: ' . $node_data['descripcion'] . ''; + $link = $config['homeurl'] . 'index.php?sec=estado&sec2=operation/agentes/status_monitor&ag_group=0&status=0&id_module=' . $id_node_data; + $return_data .= '
'; + $return_data .= '
'; + $return_data .= 'Module: ' . $node_data['nombre'] . '
'; + $return_data .= '| X '; + $return_data .= ' -> |'; + $return_data .= '
'; + + $return_data .= '
'; + $agent_module = db_get_row_sql("SELECT nombre FROM tagente WHERE id_agente = " . $node_data['id_agente']); + $agent_module = $agent_module['nombre']; + $return_data .= 'Agent: ' . $agent_module . '
'; + $return_data .= 'Description: ' . $node_data['descripcion'] . ''; + $return_data .= '
'; $return_data .= '
'; } else {