Files

36 lines
851 B
PHP
Raw Permalink Normal View History

2010-10-31 20:24:21 +00:00
<?php
require 'includes/graphs/common.inc.php';
2010-10-31 20:24:21 +00:00
$rrd_filename = rrd_name($device['hostname'], array('app', 'mysql', $app['app_id']));
2010-10-31 20:24:21 +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 (rrdtool_check_rrd_exists($rrd_filename)) {
2017-02-24 15:22:15 +00:00
foreach ($array as $ds => $var) {
2016-08-18 20:28:22 -05:00
$rrd_list[$i]['filename'] = $rrd_filename;
2017-02-24 15:22:15 +00:00
if (is_array($var)) {
$rrd_list[$i]['descr'] = $var['descr'];
2016-08-18 20:28:22 -05:00
} else {
2017-02-24 15:22:15 +00:00
$rrd_list[$i]['descr'] = $var;
}
$rrd_list[$i]['ds'] = $ds;
$i++;
2011-09-21 13:01:28 +00:00
}
2016-08-18 20:28:22 -05:00
} else {
echo "file missing: $file";
}
2011-09-21 13:01:28 +00:00
$colours = 'mixed';
2011-09-21 13:01:28 +00:00
$nototal = 1;
$unit_text = 'Commands';
2011-09-21 13:01:28 +00:00
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';