diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 0fc3cb077b..5cee5f067a 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2012-01-26 Sergio Martin + + * include/functions_api.php: Improved the get all agents + API function to retrieve more data as address, description, + operating system and url address + 2012-01-25 Juan Manuel Ramon * include/functions_reporting.php: Fixed Sla graph when it has diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 1df886811e..da4cd80b56 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -807,7 +807,7 @@ function get_all_agents($thrash1, $thrash2, $other, $thrash3) { // Initialization of array $result_agents = array(); // Filter by state - $sql = "SELECT id_agente, nombre FROM tagente WHERE disabled = 0 " . $where; + $sql = "SELECT id_agente, nombre, direccion, comentarios, tconfig_os.name, url_address FROM tagente, tconfig_os WHERE tagente.id_os = tconfig_os.id_os AND disabled = 0 " . $where; $all_agents = db_get_all_rows_sql($sql);