".__('There are no servers configured into the database').""; return; } $table->width = '98%'; $table->size = array (); $table->style = array (); $table->style[0] = 'font-weight: bold'; $table->align = array (); $table->align[1] = 'center'; $table->head = array (); $table->head[0] = __('Name'); $table->head[1] = __('Status'); $table->head[2] = __('Type'); $table->head[3] = __('Load') . ui_print_help_tip (__("Modules running on this server / Total modules of this type"), true); $table->head[4] = __('Modules'); $table->head[5] = __('Lag') . ui_print_help_tip (__("Modules delayed / Max. Delay (sec)"), true); $table->head[6] = __('T/Q') . ui_print_help_tip (__("Threads / Queued modules currently"), true); // This will have a column of data such as "6 hours" $table->head[7] = __('Updated'); $table->data = array (); foreach ($servers as $server) { $data = array (); $data[0] = ''.$server['name'].''; if ($server['status'] == 0) { $data[1] = ui_print_status_image (STATUS_SERVER_DOWN, '', true); } else { $data[1] = ui_print_status_image (STATUS_SERVER_OK, '', true); } // Type $data[2] = ''.$server["img"].' ('.ucfirst($server["type"]).")"; if ($server["master"] == 1) $data[2] .= ui_print_help_tip (__("This is a master server"), true); // Load $data[3] = progress_bar($server["load"], 60, 20, $server["lag_txt"], 0); $data[4] = $server["modules"] . " ".__('of')." ". $server["modules_total"]; $data[5] = ''.$server["lag_txt"].''; $data[6] = $server['threads'].' : '.$server['queued_modules']; $data[7] = ui_print_timestamp ($server['keepalive'], true); array_push ($table->data, $data); } html_print_table ($table); //Legend echo ""; echo ""; echo ""; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ""; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo "
" . __('Legend') . "
'.__('Network server').''.__('Master').''.__('Data server').''.__('MD5 check').''.__('SNMP console').''.__('Plugin server').'
'.__('Recon server').''.__('WMI server').''.__('Export server').''.__('Inventory server').''.__('Web server').''.__('Prediction server').'
"; ?>