"; $updated_time .= __('Last update'). " : ". ui_print_timestamp (db_get_sql ("SELECT min(utimestamp) FROM tgroup_stat"), true); $updated_time .= ""; } else { $updated_time = __("Updated at realtime"); } // Header ui_print_page_header (__("Tactical view"), "images/op_monitoring.png", false, "", false, $updated_time); $data = reporting_get_group_stats(); if(tags_has_user_acl_tags()) { ui_print_tags_warning(); } echo '
'; // --------------------------------------------------------------------- // The status horizontal bars (Global health, Monitor sanity... // --------------------------------------------------------------------- $table->width = "100%"; $table->class = ""; $table->cellpadding = 2; $table->cellspacing = 2; $table->border = 0; $table->head = array (); $table->data = array (); $table->style = array (); $table->data[0][0] = reporting_get_stats_indicators($data, 120, 20); $table->rowclass[] = ''; html_print_table ($table); unset ($table); // --------------------------------------------------------------------- // Monitor checks // --------------------------------------------------------------------- $table->width = "100%"; $table->class = ""; $table->cellpadding = 4; $table->cellspacing = 4; $table->border = 0; $table->head = array (); $table->data = array (); $table->style = array (); $table->data[0][0] = reporting_get_stats_alerts($data); $table->data[0][0] .= reporting_get_stats_modules_status($data, 180, 100); $table->data[0][0] .= reporting_get_stats_agents_monitors($data); $table->rowclass[] = ''; html_print_table($table); // --------------------------------------------------------------------- // Server performance // --------------------------------------------------------------------- if ($is_admin) { $table->width = "99%"; $table->class = ""; $table->cellpadding = 4; $table->cellspacing = 4; $table->border = 0; $table->head = array (); $table->data = array (); $table->style = array (); $table->data[0][0] = reporting_get_stats_servers(false); $table->rowclass[] = ''; html_print_table($table); } echo ' | '; //Left column echo ''; // --------------------------------------------------------------------- // Last events information // --------------------------------------------------------------------- $tags_condition = tags_get_acl_tags($config['id_user'], 0, 'ER', 'event_condition', 'AND'); events_print_event_table ("estado<>1 $tags_condition", 10, "100%"); // --------------------------------------------------------------------- // Server information // --------------------------------------------------------------------- if ($is_admin) { $tiny = true; require($config['homedir'] . '/godmode/servers/servers.build_table.php'); } echo ' | '; echo '