system = $system; } function show() { global $config; require_once ($config["homedir"] . '/include/functions_graph.php'); $data = reporting_get_group_stats(); $table = null; //$table->width = '100%'; $table->size[0] = '10px'; $table->align[0] = 'center'; $table->align[3] = 'right'; $table->colspan = array(); $table->colspan[0][0] = 2; $table->colspan[0][1] = 2; $table->data[0][0] = "

" . __('Status') . "

" ; $table->data[1][0] = '' . __('G') . ' '; $table->data[1][1] = str_replace('include', '../include', progress_bar($data["global_health"], 70, 8, '', 0)); $table->data[2][0] = '' . __('M') . ' '; $table->data[2][1] = str_replace('include', '../include', progress_bar($data["monitor_health"], 70, 8, '', 0)); $table->data[3][0] = '' . __('M') . ' '; $table->data[3][1] = str_replace('include', '../include', progress_bar($data["module_sanity"], 70, 8, '', 0)); $table->data[4][0] = '' . __('A') . ' '; $table->data[4][1] = str_replace('include', '../include', progress_bar($data["alert_level"], 70, 8, '', 0)); $table->data[5][0] = $table->data[5][1] = ''; $table->data[6][0] = $table->data[6][1] = ''; $table->data[7][0] = $table->data[7][1] = ''; $table->data[8][0] = $table->data[8][1] = ''; $table->data[0][1] = "

" . __('Monitor checks') . "

"; $table->data[1][2] = '' . __('Monitor checks') . ''; $table->data[1][3] = '' . $data["monitor_checks"] . ''; $table->data[2][2] = '' . __('Monitors critical') . ''; $table->data[2][3] = '' . $data["monitor_critical"] . ''; $table->data[3][2] = '' . __('Monitors warning') .''; $table->data[3][3] = '' . $data["monitor_warning"] . ''; $table->data[4][2] = '' . __('Monitors normal') . ''; $table->data[4][3] = '' . $data["monitor_ok"] . ''; $table->data[5][2] = '' . __('Monitors unknown') . ''; $table->data[5][3] = '' . $data["monitor_unknown"] . ''; $table->data[6][2] = '' . __('Monitors not init') . ''; $table->data[6][3] = '' . $data["monitor_not_init"] . ''; $table->data[7][2] = '' . __('Alerts defined') . ''; $table->data[7][3] = '' . $data["monitor_alerts"] . ''; $table->data[8][2] = '' . __('Alerts fired') . ''; $table->data[8][3] = '' . $data["monitor_alerts_fired"] . ''; html_print_table($table); echo "

" . __('Server performance') . "

"; $server_performance = servers_get_performance(); $table = null; //$table->width = '100%'; $table->align = array(); $table->align[1] = 'right'; $table->data[0][0] = '' . __('Local modules rate') . ''; $table->data[0][1] = '' . format_numeric($server_performance ["local_modules_rate"]) . ''; $table->data[1][0] = '' . __('Remote modules rate') . ''; $table->data[1][1] = '' . format_numeric($server_performance ["remote_modules_rate"]) . ''; $table->data[2][0] = '' . __('Local modules') . ''; $table->data[2][1] = '' . format_numeric($server_performance ["total_local_modules"]) . ''; $table->data[3][0] = '' . __('Remote modules') . ''; $table->data[3][1] = '' . format_numeric($server_performance ["total_remote_modules"]) . ''; $table->data[4][0] = '' . __('Total running modules') . ''; $table->data[4][1] = '' . format_numeric($server_performance ["total_modules"]) . ''; html_print_table($table); echo "

" . __('Summary') . "

"; $table = null; //$table->width = '100%'; $table->align[1] = 'right'; $table->data[0][0] = '' . __('Total agents') . ''; $table->data[0][1] = '' . $data["total_agents"] . ''; $table->data[1][0] = '' . __('Uninitialized modules') . ''; $table->data[1][1] = '' . $data["server_sanity"] . ''; $table->data[2][0] = '' . __('Agents unknown') . ''; $table->data[2][1] = '' . $data["agents_unknown"] . ''; html_print_table($table); } } ?>