".__('Database maintenance')." » ";
echo __('Database information')."";
if ($config['flash_charts']) {
$width=600;
$height=400;
echo grafico_db_agentes_purge ($id_agente, $width, $height);
} else {
echo '
';
}
echo '
';
echo '
';
echo '';
echo ''.__('Modules per agent').'';
if ($config['flash_charts']) {
echo graph_db_agentes_modulos ($width, $height);
} else {
echo ' ';
}
echo ' |
|
';
echo '';
echo ''.__('Packets per agent').'';
if ($config['flash_charts']) {
echo grafico_db_agentes_paquetes ($width, $height);
} else {
echo ' ';
}
echo ' |
';
echo '
'.__('Press here to get database information as text').' 
';
echo '';
//Merged from db_info_data.php because the queries are the same, so the cache
//will kick in.
$table->data = array ();
$table->head = array ();
$table->head[0] = __('Agent name');
$table->head[1] = __('Assigned modules');
$table->head[2] = __('Total data');
$agents = get_group_agents (1);
$count = get_agent_modules_data_count (array_keys ($agents));
unset ($count["total"]); //Not interested in total
asort ($count, SORT_NUMERIC);
foreach ($count as $agent_id => $value) {
$data = array ();
//First row is a link to the agent
$data[0] = '
'.$agents[$agent_id].'';
//Second row is a number of modules for the agent
$data[1] = get_agent_modules_count ($agent_id);
//Then the number of data packets for the agent
$data[2] = $value;
array_unshift ($table->data, $data);
}
print_table ($table);
echo '
'.__('Press here to get database information as a graph').' ';
?>