2010-10-31 20:24:21 +00:00
|
|
|
<?php
|
|
|
|
global $config;
|
|
|
|
|
2012-04-19 16:27:39 +00:00
|
|
|
print_optionbar_start();
|
|
|
|
|
2012-05-06 19:03:03 +00:00
|
|
|
echo("<span style='font-weight: bold;'>".nicecase($app['app_type'])."</span> » ");
|
2012-04-19 16:27:39 +00:00
|
|
|
|
|
|
|
$app_sections = array('system' => "System",
|
2012-05-06 19:03:03 +00:00
|
|
|
'queries' => "Queries",
|
2012-04-19 16:27:39 +00:00
|
|
|
'innodb' => "InnoDB");
|
|
|
|
|
|
|
|
unset($sep);
|
|
|
|
foreach ($app_sections as $app_section => $app_section_text)
|
|
|
|
{
|
|
|
|
echo($sep);
|
|
|
|
|
|
|
|
if (!$vars['app_section']) { $vars['app_section'] = $app_section; }
|
|
|
|
|
|
|
|
if ($vars['app_section'] == $app_section)
|
|
|
|
{
|
|
|
|
echo("<span class='pagemenu-selected'>");
|
|
|
|
}
|
2012-05-06 20:24:12 +00:00
|
|
|
echo(generate_link($app_section_text,$vars,array('app_section'=>$app_section)));
|
2012-04-19 16:27:39 +00:00
|
|
|
if ($vars['app_section'] == $app_section) { echo("</span>"); }
|
|
|
|
$sep = " | ";
|
|
|
|
}
|
|
|
|
print_optionbar_end();
|
|
|
|
|
|
|
|
$graphs['system'] = array(
|
2011-09-20 14:37:54 +00:00
|
|
|
'mysql_connections' => 'Connections',
|
|
|
|
'mysql_files_tables' => 'Files and Tables',
|
2012-04-19 16:27:39 +00:00
|
|
|
'mysql_myisam_indexes' => 'MyISAM Indexes',
|
|
|
|
'mysql_network_traffic' => 'Network Traffic',
|
|
|
|
'mysql_table_locks' => 'Table Locks',
|
|
|
|
'mysql_temporary_objects' => 'Temporary Objects'
|
|
|
|
);
|
|
|
|
|
|
|
|
$graphs['queries'] = array(
|
|
|
|
'mysql_command_counters' => 'Command Counters',
|
2012-04-21 00:36:55 +00:00
|
|
|
'mysql_query_cache' => 'Query Cache',
|
2012-04-19 16:27:39 +00:00
|
|
|
'mysql_query_cache_memory' => 'Query Cache Memory',
|
|
|
|
'mysql_select_types' => 'Select Types',
|
|
|
|
'mysql_slow_queries' => 'Slow Queries',
|
|
|
|
'mysql_sorts' => 'Sorts',
|
2012-04-21 00:36:55 +00:00
|
|
|
);
|
2012-04-19 16:27:39 +00:00
|
|
|
|
|
|
|
$graphs['innodb'] = array(
|
2011-09-20 14:37:54 +00:00
|
|
|
'mysql_innodb_buffer_pool' => 'InnoDB Buffer Pool',
|
|
|
|
'mysql_innodb_buffer_pool_activity' => 'InnoDB Buffer Pool Activity',
|
|
|
|
'mysql_innodb_insert_buffer' => 'InnoDB Insert Buffer',
|
|
|
|
'mysql_innodb_io' => 'InnoDB IO',
|
|
|
|
'mysql_innodb_io_pending' => 'InnoDB IO Pending',
|
|
|
|
'mysql_innodb_log' => 'InnoDB Log',
|
|
|
|
'mysql_innodb_row_operations' => 'InnoDB Row Operations',
|
|
|
|
'mysql_innodb_semaphores' => 'InnoDB semaphores',
|
|
|
|
'mysql_innodb_transactions' => 'InnoDB Transactions',
|
2012-04-21 00:36:55 +00:00
|
|
|
);
|
2010-10-31 20:24:21 +00:00
|
|
|
|
2012-04-19 16:27:39 +00:00
|
|
|
foreach ($graphs[$vars['app_section']] as $key => $text)
|
2011-03-16 23:10:10 +00:00
|
|
|
{
|
|
|
|
$graph_type = $key;
|
|
|
|
$graph_array['height'] = "100";
|
|
|
|
$graph_array['width'] = "215";
|
2012-05-06 18:38:11 +00:00
|
|
|
$graph_array['to'] = $config['time']['now'];
|
2011-03-16 23:10:10 +00:00
|
|
|
$graph_array['id'] = $app['app_id'];
|
|
|
|
$graph_array['type'] = "application_".$key;
|
|
|
|
echo('<h3>'.$text.'</h3>');
|
|
|
|
|
|
|
|
echo("<tr bgcolor='$row_colour'><td colspan=5>");
|
|
|
|
|
2012-04-26 16:49:38 +00:00
|
|
|
include("includes/print-graphrow.inc.php");
|
2012-04-06 13:56:23 +00:00
|
|
|
|
2011-03-16 23:10:10 +00:00
|
|
|
echo("</td></tr>");
|
2010-10-31 20:24:21 +00:00
|
|
|
}
|
|
|
|
|
2012-04-19 16:27:39 +00:00
|
|
|
?>
|