";
echo "";
$id_grupo=dame_id_grupo($id_agente);
if (give_acl($id_user, $id_grupo, "AW")==1){
echo "
";
}
echo "
".$nombre_agente." | ";
if ( $agent_type == 0) {
// Show SO icon :)
echo "
.") | ";
} elseif ($agent_type == 1) {
// Show network icon
echo "
 | ";
}
// If there are a module interval bigger than agent interval
if ($biginterval > $intervalo) {
echo "
".$biginterval." | ";
} else {
echo "".$intervalo." | ";
}
echo '
( '.dame_grupo($id_grupo).' ) | ';
echo " ".
$numero_modulos." / ".$numero_monitor;
if ($monitor_bad <> 0) {
echo " / ".$monitor_bad."";
}
if ($monitor_down <> 0){
echo " / ".$monitor_down."";
}
echo " |
";
if ($numero_monitor <> 0){
if ($estado_general <> 0){
if ($estado_cambio == 0){
echo " ";
} else {
echo " ";
}
} elseif ($monitor_ok > 0) {
echo " ";
}
elseif ($numero_datamodules > 0) {
echo " ";
}
elseif ($monitor_down > 0) {
echo " ";
}
} else {
echo " ";
}
// checks if an alert was fired recently
echo " | ";
if (check_alert_fired($id_agente) == 1) {
echo " ";
} else {
echo " ";
}
echo " | ";
echo "";
if ( $ultimo_contacto == "0000-00-00 00:00:00"){
echo $lang_label["never"];
} else {
$ultima = strtotime($ultimo_contacto);
$ahora = strtotime("now");
$diferencia = $ahora - $ultima;
if ($biginterval > 0){
$percentil = round($diferencia/(($biginterval*2) / 100));
} else {
echo "N/A";
}
echo "
$ultimo_contacto";
}
} // If pertenece/belongs to group
}
echo " |