2010-10-31 20:24:21 +00:00
|
|
|
<?php
|
|
|
|
|
2011-09-21 13:01:28 +00:00
|
|
|
include('includes/graphs/common.inc.php');
|
2010-10-31 20:24:21 +00:00
|
|
|
|
2011-09-21 13:01:28 +00:00
|
|
|
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
2010-10-31 20:24:21 +00:00
|
|
|
|
2011-09-21 13:01:28 +00:00
|
|
|
$array = array('IBPse' => 'Buffer Pool Size',
|
|
|
|
'IBPDBp' => 'Database Pages',
|
|
|
|
'IBPFe' => 'Free Pages',
|
|
|
|
'IBPMps' => 'Modified Pages',
|
|
|
|
);
|
2010-10-31 20:24:21 +00:00
|
|
|
|
2011-09-21 13:01:28 +00:00
|
|
|
$i = 0;
|
|
|
|
if (is_file($rrd_filename))
|
|
|
|
{
|
|
|
|
foreach ($array as $ds => $vars)
|
|
|
|
{
|
|
|
|
$rrd_list[$i]['filename'] = $rrd_filename;
|
2011-09-22 15:05:11 +00:00
|
|
|
if (is_array($vars))
|
2011-09-21 13:01:28 +00:00
|
|
|
{
|
|
|
|
$rrd_list[$i]['descr'] = $vars['descr'];
|
|
|
|
} else {
|
|
|
|
$rrd_list[$i]['descr'] = $vars;
|
|
|
|
}
|
|
|
|
$rrd_list[$i]['ds'] = $ds;
|
|
|
|
$i++;
|
|
|
|
}
|
|
|
|
} else { echo("file missing: $file"); }
|
|
|
|
|
|
|
|
$colours = "mixed";
|
|
|
|
$nototal = 1;
|
|
|
|
$unit_text = "Commands";
|
|
|
|
|
|
|
|
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
|
|
|
|
|
|
|
?>
|