diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index f896f6cb75..bee4170654 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,5 +1,10 @@ 2007-07-13 Sancho Lerena + * pandora_console/godmode/agentes/configurar_agente.php: Fixed + problem when creating manually an agent: does not create IP + address in tadress table, so Recon Server create again system with + the same IP. + * operation/agentes/estado_ultimopaquete.php: Fixed problem with modules in tagente_estado with no data (because they has not been initializated, due from it's creation it cannot get real diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index e15f77eb7a..018a9cf854 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -113,13 +113,15 @@ if (isset($_POST["create_agent"])) { // Create a new and shining agent } else { $sql_insert ="INSERT INTO tagente (nombre, direccion, id_grupo, intervalo, comentarios,modo, id_os, disabled) VALUES ('".$nombre_agente."', '".$direccion_agente."', '".$grupo."', '".$intervalo."', '".$comentarios."',".$modo.", ".$id_os.", '".$disabled."')"; } - $result=mysql_query($sql_insert); + $result=mysql_query($sql_insert); if ($result) { $agent_created_ok = 1; $id_agente = mysql_insert_id(); // Create special MODULE agent_keepalive $sql_insert ="INSERT INTO tagente_modulo (nombre, id_agente, id_tipo_modulo, descripcion) VALUES ('agent_keepalive', ".$id_agente.",-1,'Agent Keepalive monitor')"; $result=mysql_query($sql_insert); + // Create address for this agent in taddress + agent_add_address ($id_agente, $direccion_agente); } }