Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
783 B
PHP
Raw Permalink Normal View History

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
$rrd_filename = Rrd::name($device['hostname'], ['app', 'mysql', $app->app_id]);
2010-10-31 20:24:21 +00:00
$array = [
'TOC' => ['descr' => 'Table Cache'],
'OFs' => ['descr' => 'Open Files'],
'OTs' => ['descr' => 'Open Tables'],
'OdTs' => ['descr' => 'Opened Tables'],
];
2010-10-31 20:24:21 +00:00
2011-09-21 13:01:28 +00:00
$i = 0;
2021-03-28 17:25:30 -05:00
if (Rrd::checkRrdExists($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
$rrd_list[$i]['descr'] = $var['descr'];
$rrd_list[$i]['ds'] = $ds;
2017-02-24 15:22:15 +00:00
// $rrd_list[$i]['colour'] = $var['colour'];
$i++;
}
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 = '';
2011-09-21 13:01:28 +00:00
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/generic_multi_simplex_seperated.inc.php';