Files

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

46 lines
992 B
PHP
Raw Permalink Normal View History

<?php
2011-10-07 19:29:39 +00:00
$scale_min = 0;
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/common.inc.php';
$rrd_filename = Rrd::name($device['hostname'], ['app', 'nginx', $app->app_id]);
$array = [
'Reading' => [
'descr' => 'Reading',
'colour' => '750F7DFF',
],
'Writing' => [
'descr' => 'Writing',
'colour' => '00FF00FF',
],
'Waiting' => [
'descr' => 'Waiting',
'colour' => '4444FFFF',
],
'Active' => [
'descr' => 'Starting',
'colour' => '157419FF',
],
2020-11-22 05:52:58 +01:00
];
2011-10-07 19:29:39 +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) {
$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";
}
$colours = 'mixed';
2011-10-07 19:29:39 +00:00
$nototal = 1;
$unit_text = 'Workers';
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/generic_multi_simplex_seperated.inc.php';