";
if ($row2["estado"] == 0)
echo "";
else
echo "";
// Event type
echo " | ";
switch ($row2["event_type"]){
case "unknown":
echo "";
break;
case "alert_recovered":
echo "";
break;
case "alert_manual_validation":
echo "";
break;
case "monitor_up":
echo "";
break;
case "monitor_down":
echo "";
break;
case "alert_fired":
echo "";
break;
case "system";
echo "";
break;
case "recon_host_detected";
echo "";
break;
}
// Event description
$event_title = safe_input ($row2["evento"]);
echo " | ";
echo substr($row2["evento"],0,45);
if (strlen($row2["evento"]) > 45)
echo "..";
if ($row2["id_agente"] > 0){
// Agent name
$agent_name = dame_nombre_agente($row2["id_agente"]);
echo " | ";
echo substr($agent_name, 0, 14);
if (strlen($agent_name) > 14)
echo "..";
echo "";
// Module name / Alert
echo " | ";
if ($row2["id_agentmodule"] != 0)
echo "";
echo " ";
if ($row2["id_alert_am"] != 0)
echo "";
// Group icon
echo " | | ";
// for System or SNMP generated alerts
} else {
if ($row2["event_type"] == "system"){
echo "".lang_string("System");
} else {
echo " | ".$lang_label["alert"]."SNMP";
}
}
// User who validated event
echo " | ";
if ($row2["estado"] <> 0)
echo "".substr($row2["id_usuario"],0,8)." ".dame_nombre_real($row2["id_usuario"])."";
// Timestamp
echo " | ";
echo human_time_comparation($row2["timestamp"]);
// Several options grouped here
echo " | ";
// Validate event
if (($row2["estado"] == 0) and (give_acl($config["id_user"], $id_group,"IW") ==1))
echo " ";
// Delete event
if (give_acl($config["id_user"], $id_group,"IM") ==1)
echo " ";
// Create incident from this event
if (give_acl($config["id_user"], $id_group,"IW") == 1)
echo "";
// Checbox
echo " | ";
echo "";
echo " |
";
}
$offset_counter++;
}
echo "