2010-10-31 20:24:21 +00:00
|
|
|
<?php
|
|
|
|
|
2019-04-11 23:26:42 -05:00
|
|
|
require 'includes/html/graphs/common.inc.php';
|
2010-10-31 20:24:21 +00:00
|
|
|
|
2016-07-07 01:33:43 -05:00
|
|
|
$rrd_filename = rrd_name($device['hostname'], array('app', 'mysql', $app['app_id']));
|
2010-10-31 20:24:21 +00:00
|
|
|
|
2011-11-03 12:51:57 +00:00
|
|
|
$array = array(
|
2015-07-10 13:36:21 +02:00
|
|
|
'TLIe' => 'immed',
|
|
|
|
'TLWd' => 'waited',
|
|
|
|
);
|
2011-11-03 12:51:57 +00:00
|
|
|
|
|
|
|
$i = 0;
|
2016-07-08 15:09:11 -05:00
|
|
|
if (rrdtool_check_rrd_exists($rrd_filename)) {
|
2017-02-24 15:22:15 +00:00
|
|
|
foreach ($array as $ds => $var) {
|
2015-07-10 13:36:21 +02: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;
|
2015-07-10 13:36:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
$rrd_list[$i]['ds'] = $ds;
|
|
|
|
$i++;
|
2011-11-03 12:51:57 +00:00
|
|
|
}
|
2016-08-18 20:28:22 -05:00
|
|
|
} else {
|
2015-07-10 13:36:21 +02:00
|
|
|
echo "file missing: $file";
|
|
|
|
}
|
2010-10-31 20:24:21 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$colours = 'mixed';
|
2011-11-03 12:51:57 +00:00
|
|
|
$nototal = 0;
|
2015-07-10 13:36:21 +02:00
|
|
|
$unit_text = 'Table locks';
|
2010-10-31 20:24:21 +00:00
|
|
|
|
2019-04-11 23:26:42 -05:00
|
|
|
require 'includes/html/graphs/generic_multi_simplex_seperated.inc.php';
|