2010-12-03 Sergio Martin <sergio.martin@artica.es>

* 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



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3652 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-12-03 13:08:21 +00:00
parent 7adee61349
commit b72d10d742
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2010-12-03 Sergio Martin <sergio.martin@artica.es>
* 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 <miguel.dedios@artica.es>
* operation/agentes/estado_ultimopaquete.php: fixed when the string data of

View File

@ -191,6 +191,8 @@ else {
$agent_info = get_agent_module_info ($agent["id_agente"]);
$modulesCell = '<b>'. $agent_info["modules"] . '</b>';
if ($agent_info["monitor_alertsfired"] > 0)
$modulesCell .= ' : <span class="orange">'.$agent_info["monitor_alertsfired"].'</span>';
if ($agent_info["monitor_normal"] > 0)
$modulesCell .= '</b> : <span class="green">'.$agent_info["monitor_normal"].'</span>';
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 = '<b><span style="color: #ff0000">'.$time.'</span></b>';
array_push($table->data, array(
$cellName,
@ -220,7 +225,7 @@ else {
$modulesCell,
$agent_info["status_img"],
$agent_info["alert_img"],
'<b><span style="color: #ff0000">'.$time.'</span></b>'));
$time_style));
}
echo "<br />";pagination ($totalAgents);