';
echo '
'.$lang_label["agent_name"].' |
'.strtoupper(salida_limpia($nombre_agente)).' | ';
echo "
".$lang_label["refresh_data"]." ";
echo "";
// Data base access graph
echo ' | ';
echo '
';
echo '
'.$lang_label["ip_address"].' |
';
// Show all address for this agent, show first the main IP (taken from tagente table)
echo "";
echo ' |
'.$lang_label["os"].' |
- '.dame_so_name($id_os);
if ($os_version != "")
echo ' '.salida_limpia($os_version);
echo ' | ';
echo '
';
// Parent
echo '
'.lang_string("Parent").' |
';
echo "";
echo dame_nombre_agente($id_parent).' | ';
// Agent Interval
echo '
'.$lang_label["interval"].' |
'. human_time_description_raw($intervalo).' | ';
echo '
';
// Comments
echo '
'.$lang_label["description"].' |
'.$comentarios.' | ';
echo '
';
// Group
echo '
'.$lang_label["group"].' |
'.dame_grupo($id_grupo).' |
';
// Agent version
echo ''.lang_string ("agentversion"). '';
echo ' | '.salida_limpia($agent_version). ' | ';
// Total packets
echo '
'. lang_string ("total_packets"). ' | ';
echo '';
$total_paketes= 0;
$sql_3='SELECT COUNT(*) FROM tagente_datos WHERE id_agente = '.$id_agente;
$result_3=mysql_query($sql_3);
$row3=mysql_fetch_array($result_3);
$total_paketes = $row3[0];
echo $total_paketes;
echo ' |
';
// Last contact
echo '
'.$lang_label["last_contact"]." / ".$lang_label["remote"].'
|
';
if ($ultima_act == "0000-00-00 00:00:00"){
echo $lang_label["never"];
} else {
echo $ultima_act;
}
echo " / ";
if ($ultima_act_remota == "0000-00-00 00:00:00"){
echo $lang_label["never"];
} else {
echo $ultima_act_remota;
}
// Next contact
$ultima = strtotime($ultima_act);
$ahora = strtotime("now");
$diferencia = $ahora - $ultima;
// Get higher interval set for the set of modules from this agent
$sql_maxi ="SELECT MAX(module_interval) FROM tagente_modulo WHERE id_agente = ".$id_agente;
$result_maxi=mysql_query($sql_maxi);
if ($row_maxi=mysql_fetch_array($result_maxi))
if ($row_maxi[0] > 0 )
$intervalo = $row_maxi[0];
if ($intervalo > 0){
$percentil = round($diferencia/(($intervalo*2) / 100));
} else {
$percentil = -1;
}
echo " |
".$lang_label['next_contact']."
|
|