diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 82fa93c88e..f8fdf3594d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-12-03 Sergio Martin + + * operation/search_agents.php: Fixed alert fired number of modules + and colour of Last contact in the agent table main search for bugs + 3126434 and 3126437 + 2010-11-30 Miguel de Dios * operation/agentes/estado_ultimopaquete.php: fixed when the string data of diff --git a/pandora_console/operation/search_agents.php b/pandora_console/operation/search_agents.php index 77d0974d0f..d8f1ba1103 100755 --- a/pandora_console/operation/search_agents.php +++ b/pandora_console/operation/search_agents.php @@ -191,6 +191,8 @@ else { $agent_info = get_agent_module_info ($agent["id_agente"]); $modulesCell = ''. $agent_info["modules"] . ''; + if ($agent_info["monitor_alertsfired"] > 0) + $modulesCell .= ' : '.$agent_info["monitor_alertsfired"].''; if ($agent_info["monitor_normal"] > 0) $modulesCell .= ' : '.$agent_info["monitor_normal"].''; if ($agent_info["monitor_warning"] > 0) @@ -211,6 +213,9 @@ else { $now = time (); $diferencia = $now - $last_time; $time = print_timestamp ($last_time, true); + $time_style = $time; + if ($diferencia > ($agent["intervalo"] * 2)) + $time_style = ''.$time.''; array_push($table->data, array( $cellName, @@ -220,7 +225,7 @@ else { $modulesCell, $agent_info["status_img"], $agent_info["alert_img"], - ''.$time.'')); + $time_style)); } echo "
";pagination ($totalAgents);