'.__('There was a problem loading agent').''; return; } if (! give_acl ($config["id_user"], $agent["id_grupo"], "AR")) { audit_db ($config["id_user"], $REMOTE_ADDR, "ACL Violation", "Trying to access Agent General Information"); require_once ("general/noaccess.php"); return; } echo "

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

"; // Blank space below title echo '
 
'; //Floating div echo '
'; echo ''.__('Agent access rate (24h)').'
'; echo ''; echo '
 
'; echo ''.__('Events generated -by module-').'
'; echo ''; echo '
'; echo '
'; echo ''; //Agent name echo ''; echo ''; echo ''; //Addresses echo ''; echo ''; //OS echo ''; echo ''; // Parent echo ''; echo ''; // Agent Interval echo ''; echo ''; // Comments echo ''; echo ''; // Group echo ''; echo ''; // Agent version echo ''; echo ''; // Last contact echo ''; // Next contact (agent) $difference = get_system_time () - strtotime ($agent["ultimo_contacto"]); $sql = sprintf ("SELECT MAX(module_interval) FROM tagente_modulo WHERE id_agente = %d", $id_agente); $max = (int) get_db_sql ($sql); if ($max > 0) { //First check if there is a maximum module interval $progress = round ($difference / (($max * 2) / 100)); } elseif ($agent["intervalo"] > 0) { //Then if there is a generic agent interval $progress = round ($difference / (($agent["intervalo"] * 2) / 100)); } else { //Otherwise there is no progress to be reported $progress = -1; } echo ''; echo ''; //End of table echo '
'.__('Agent name').''.strtoupper($agent["nombre"]).' '; echo '
'.__('IP Address').''; print_select (get_agent_addresses ($id_agente), "not_used", get_agent_address ($id_agente)); echo '
'.__('OS').''.print_os_icon ($agent["id_os"], true, true).' '.$agent["os_version"].'
'.__('Parent').''.get_agent_name ($agent["id_parent"]).'
'.__('Interval').''.human_time_description_raw ($agent["intervalo"]).'
'.__('Description').''.$agent["comentarios"].'
'.__('Group').''; echo print_group_icon ($agent["id_grupo"], true); echo ' ('; echo get_group_name ($agent["id_grupo"]); echo ')
'.__('Agent Version'). ''.$agent["agent_version"].'
'.__('Last contact')." / ".__('Remote').''; print_timestamp ($agent["ultimo_contacto"]); echo " / "; if ($agent["ultimo_contacto_remoto"] == "0000-00-00 00:00:00") { echo __('Never'); } else { echo $agent["ultimo_contacto_remoto"]; } echo '
'.__('Next agent contact').'
'; ?>