".__('There was a problem loading agent').""; echo ""; echo ""; exit; } } echo "

".__('Pandora Agents')." > ".__('Agent general information')."

"; // Blank space below title echo "
"; echo ''; echo "
"; echo ''; echo ''; echo "'; echo ''; echo ''; // Parent echo ''; // Agent Interval echo ''; // Comments echo ''; // Group echo ''; // Agent version echo ''; // Total packets echo ''; echo ''; // Last contact echo '
'.__('Agent name').' '.strtoupper(salida_limpia($nombre_agente)).' ".__('Refresh data')." "; echo ""; // Data base access graph echo '
'.__('IP Address').''; // Show all address for this agent, show first the main IP (taken from tagente table) echo ""; echo '
'.__('OS').' - '.dame_so_name($id_os); if ($os_version != "") { echo ' '.salida_limpia($os_version); } echo '
'.__('Parent').''; echo ""; echo dame_nombre_agente($id_parent).'
'.__('Interval').''. human_time_description_raw($intervalo).'
'.__('Description').''.$comentarios.'
'.__('Group').''; echo ""; echo '
'.__('Agent Version'). ''; echo ''.salida_limpia($agent_version). '
'. __('Total packets'). ''; $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')." / ".__('Remote').''; if ($ultima_act == "0000-00-00 00:00:00"){ echo __('Never'); } else { echo $ultima_act; } echo " / "; if ($ultima_act_remota == "0000-00-00 00:00:00"){ echo __('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 "
".__('Next agent contact')."
".__('Agent access rate (24h)')."

".__('Events generated -by module-')."

"; ?>