2012-04-27 17:18:26 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
global $config;
|
|
|
|
|
|
|
|
$graphs = array('memcached_bits' => 'Traffic',
|
|
|
|
'memcached_commands' => 'Commands',
|
|
|
|
'memcached_data' => 'Data Size',
|
|
|
|
'memcached_items' => 'Items',
|
2012-05-02 22:02:30 +00:00
|
|
|
'memcached_uptime' => 'Uptime',
|
2012-04-27 17:18:26 +00:00
|
|
|
'memcached_threads' => 'Threads',
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
foreach ($graphs as $key => $text)
|
|
|
|
{
|
|
|
|
|
|
|
|
$graph_array['height'] = "100";
|
|
|
|
$graph_array['width'] = "215";
|
2012-05-06 18:38:11 +00:00
|
|
|
$graph_array['to'] = $config['time']['now'];
|
2012-04-27 17:18:26 +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>");
|
|
|
|
|
|
|
|
include("includes/print-graphrow.inc.php");
|
|
|
|
|
|
|
|
echo("</td></tr>");
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|