'.__('There was a problem loading agent').''; return; } $is_extra = enterprise_hook('policies_is_agent_extra_policy', array($id_agente)); if($is_extra === ENTERPRISE_NOT_HOOK) { $is_extra = false; } if (! check_acl ($config["id_user"], $agent["id_grupo"], "AR") && !$is_extra) { db_pandora_audit("ACL Violation", "Trying to access Agent General Information"); require_once ("general/noaccess.php"); return; } // Blank space below title, DONT remove this, this // Breaks the layout when Flash charts are enabled :-o echo '
'.__('Agent name').' | '; if ($agent['disabled']) { $cellName = "" . ui_print_agent_name ($agent["id_agente"], true, 500, "upper", true) . ui_print_help_tip(__('Disabled'), true) . ""; } else { $cellName = ui_print_agent_name ($agent["id_agente"], true, 500, "upper", true); } echo ''.$cellName.' | '; echo '' . html_print_image("images/refresh.png", true, array("border" => '0', "title" => __('Refresh data'), "alt" => "")) . ' '; echo '' . html_print_image("images/target.png", true, array("border" => '0', "title" => __('Flag'), "alt" => "")) . ' |
'.__('IP Address').' | '; echo '';
$ips = array();
$addresses = agents_get_addresses ($id_agente);
$address = agents_get_address($id_agente);
foreach($addresses as $k => $add) {
if($add == $address) {
unset($addresses[$k]);
}
}
echo $address;
if (!empty($addresses)) {
ui_print_help_tip(__('Other IP addresses').': '.implode(' ',$addresses)); } echo ' | |
'.__('OS').' | '; echo '' . ui_print_os_icon ($agent["id_os"], true, true); // Want to print last 15 characters of OS version, or start from 0 if smaller $osversion_offset = strlen($agent["os_version"]); if ($osversion_offset > 15) $osversion_offset = $osversion_offset - 15; else $osversion_offset = 0; echo ' '.substr($agent["os_version"],$osversion_offset,15).' | |
'.__('Parent').' | '; echo ''.agents_get_name ($agent["id_parent"]).' | |
'.__('Interval').' | '; echo ''.human_time_description_raw ($agent["intervalo"]).' | |
'.__('Description').' | '; echo ''.$agent["comentarios"].' | |
'.__('Group').' | '; echo ''; echo ui_print_group_icon ($agent["id_grupo"], true); echo ' ('; echo ui_print_truncate_text(groups_get_name ($agent["id_grupo"])); echo ') | |
'.__('Agent Version'). ' | '; echo ''.$agent["agent_version"].' | |
'.__('Position (Long, Lat)'). ' | '; echo ''; if ($dataPositionAgent === false) { echo __('There is no GIS data.'); } else { echo ''; if ($dataPositionAgent['description'] != "") echo $dataPositionAgent['description']; else echo $dataPositionAgent['stored_longitude'].', '.$dataPositionAgent['stored_latitude']; echo ""; } echo ' | |
'.__('Url address').' | '; echo '' . $agent["url_address"] . ' | |
'.__('Last contact')." / ".__('Remote').' | '; ui_print_timestamp ($agent["ultimo_contacto"]); echo " / "; if ($agent["ultimo_contacto_remoto"] == "01-01-1970 00:00:00") { echo __('Never'); } else { echo $agent["ultimo_contacto_remoto"]; } echo ' | |
'.__('Timezone Offset'). ' | '; echo ''.$agent["timezone_offset"].' | |
'.__('Next agent contact').' | '; echo '' . progress_bar($progress, 200, 20) . ' | |
'.$field['name'] . ui_print_help_tip (__('Custom field'), true).' | '; $custom_value = db_get_value_filter('description', 'tagent_custom_data', array('id_field' => $field['id_field'], 'id_agent' => $id_agente)); if($custom_value === false || $custom_value == '') { $custom_value = '-'.__('empty').'-'; } echo ''.$custom_value.' |