diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 7df5638409..e468762221 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2012-03-24 Junichi Satoh + + * operation/agentes/status_monitor.php: Fixed SQL error with PostgreSQL. + 2012-03-24 Junichi Satoh * include/functions_agents.php, include/functions_config.php, diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index 658f3d0392..bbdc084a57 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -375,7 +375,7 @@ elseif ($status == 5) { //Not init } // Build final SQL sentences -$count = db_get_sql ("SELECT COUNT(tagente_modulo.id_agente_modulo)". $sql . ") ORDER BY tagente.id_grupo, tagente.nombre"); +$count = db_get_sql ("SELECT COUNT(tagente_modulo.id_agente_modulo)". $sql . ")"); switch ($config["dbtype"]) { case "mysql": $sql = "SELECT tagente_modulo.id_agente_modulo, @@ -422,7 +422,7 @@ switch ($config["dbtype"]) { tagente_modulo.max_critical, tagente_modulo.str_critical, tagente_modulo.extended_info, - tagente_estado.utimestamp AS utimestamp".$sql." LIMIT " . $config["block_size"] . " OFFSET " . $offset; + tagente_estado.utimestamp AS utimestamp".$sql.") LIMIT " . $config["block_size"] . " OFFSET " . $offset; break; case "oracle": $set = array();