$model->url, 'label' => __('Cluster list'), 'selected' => false, ]; $bc[] = [ 'link' => $model->url.'&op=view&id='.$cluster->id(), 'label' => __('Cluster details'), 'selected' => true, ]; $html->prepareBreadcrum($bc); // Header. $main_page = ''; $main_page .= html_print_image( 'images/logs@svg.svg', true, [ 'title' => __('Cluster list'), 'class' => 'main_menu_icon invert_filter', ] ); $main_page .= ''; $edit = ''; $edit .= html_print_image( 'images/configuration@svg.svg', true, [ 'title' => __('Edit this cluster'), 'class' => 'main_menu_icon invert_filter', ] ); $edit .= ''; ui_print_page_header( __('Cluster details').' » '.$cluster->name(), '', false, // Help link. 'cluster_view', true, // Buttons. [ [ 'active' => false, 'text' => $main_page, ], [ 'active' => false, 'text' => $edit, ], ], false, '', GENERIC_SIZE_TEXT, '', $html->printHeader(true) ); if (empty($error) === false) { echo $error; } if (empty($message) === false) { echo $message; } if ($critical === true) { // Print always go back button. HTML::printForm($model->getGoBackForm(), false); return; } $table_events = '
'; $table_events .= '
'; $table_events .= ''; $table_events .= __('Events (Last 24h)'); $table_events .= ''; $table_events .= '
'; $table_events .= '
'; $table_events .= graph_graphic_agentevents( $cluster->agent()->id_agente(), 95, 50, SECONDS_1DAY, '', true, true, 500 ); $table_events .= '
'; $table_events .= '
'; $agentCountModules = html_print_div( [ 'class' => 'agent_details_bullets_cluster', 'content' => reporting_tiny_stats( $counters_bullet, true, 'modules', // Useless. ':', true ), ], true ); $alive_animation = agents_get_starmap(0, 180, 30, $module_involved_ids); $output = '
'; $output .= '
'; $output .= '
'; $output .= get_resume_agent_status_header($cluster->agent()->toArray()); $output .= '
'; $output .= '
'; $output .= '
'; $output .= get_status_agent_chart_pie($cluster->agent()->id_agente(), 150, $counters_chart); $output .= $agentCountModules; $output .= '
'; $output .= '
'; $output .= '
'.__('Cluster Status').'
'; $output .= '
'; $output .= agents_detail_view_status_div( $cluster->agent()->critical_count(), $cluster->agent()->warning_count(), $cluster->agent()->unknown_count(), $cluster->agent()->total_count(), $cluster->agent()->notinit_count() ); $output .= '
'; $output .= '
'; $output .= '
'; $output .= '
'; $output .= $alive_animation; $output .= '
'; $output .= '
'.__('Cluster Mode').' : '.$cluster->getStringTypeName().'
'; $output .= '
'.$cluster->name().'
'; $output .= '
'; $output .= '
'; $output .= '
'; $output .= $table_events; $output .= '
'; $output .= '
'; $output .= get_resume_agent_concat( $cluster->agent()->id_agente(), $allGroups, $cluster->agent()->toArray() ); $output .= '
'; $output .= '
'; $output .= '
'; echo $output; echo '
'; $id_agente = $cluster->agent()->id_agente(); $id_cluster = $cluster->id(); $agent = $cluster->agent()->toArray(); require_once $config['homedir'].'/operation/agentes/estado_monitores.php'; echo '
'; require_once $config['homedir'].'/operation/agentes/alerts_status.php'; // Check permissions to read events. if (check_acl($config['id_user'], 0, 'ER')) { include_once $config['homedir'].'/operation/agentes/status_events.php'; } $buttons = []; $reload = '
'; $reload .= html_print_submit_button( __('Reload'), 'submit', false, [ 'class' => 'sub ok', 'icon' => 'next', ], true ); $reload .= '
'; $buttons[] = $reload; // Print always go back button. $buttons[] = HTML::printForm($model->getGoBackForm(), true); html_print_action_buttons( implode('', $buttons), ['type' => 'form_action'] );