diff --git a/pandora_console/CHANGELOG b/pandora_console/CHANGELOG index cc57af9399..76190d4d20 100644 --- a/pandora_console/CHANGELOG +++ b/pandora_console/CHANGELOG @@ -1,9 +1,13 @@ +2006-07-17 Raul Mateos + + * configurar_agente.php. Solved small bug that only show the last alert when creating alert in an agent, but the alert was created into database. + 2006-07-13 Sancho Lerena - * estado_grupo.php. Fix bug viewing groups, agent intervar was not read and + * estado_grupo.php. Fix bug viewing groups, agent intervar was not read and misused, resulting in a bad result of module down total sum. - * Some headers changed to show the "official" GPL Header info + * Some headers changed to show the "official" GPL Header info * godmode/setup/setup.php: Fixed small bug showing filelist. diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 43340c10ad..98112d09c5 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -775,6 +775,7 @@ $result=mysql_query($sql1); echo "

".$lang_label["assigned_alerts"]." ".$lang_label["help"]."

"; $color=1; + $string=''; while ($row=mysql_fetch_array($result)){ // All modules of this agent $id_tipo = $row["id_tipo_modulo"]; $nombre_modulo =$row["nombre"]; @@ -783,7 +784,7 @@ $result=mysql_query($sql1); $row2=mysql_fetch_array($result2); //module type modulo is $row2["nombre"]; - $sql3='SELECT * FROM talerta_agente_modulo WHERE id_agente_modulo = '.$row["id_agente_modulo"]; // From all the alerts give me which are to my agent + $sql3='SELECT * FROM talerta_agente_modulo WHERE id_agente_modulo = '.$row["id_agente_modulo"]; // From all the alerts give me which are from my agent $result3=mysql_query($sql3); while ($row3=mysql_fetch_array($result3)){ if ($color == 1){ @@ -799,7 +800,7 @@ $result=mysql_query($sql1); // Alert name defined by $row4["nombre"]; $tipo_modulo = $row2["nombre"]; $nombre_alerta = $row4["nombre"]; - $string = "".$nombre_modulo."/".$tipo_modulo; + $string = $string."".$nombre_modulo."/".$tipo_modulo; $string = $string."".$nombre_alerta; $string = $string."".$row3["time_threshold"]; $string = $string."".$row3["dis_min"]."/".$row3["dis_max"];