From 205bcf8e0a736290555933ef7d92e2002c8a0014 Mon Sep 17 00:00:00 2001 From: jsatoh Date: Sat, 24 Mar 2012 13:03:58 +0000 Subject: [PATCH] 2012-03-24 Junichi Satoh * operation/agentes/status_monitor.php: Fixed SQL error with PostgreSQL. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5827 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/operation/agentes/status_monitor.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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();