Files
librenms-librenms/includes/html/graphs/application/drbd_queue.inc.php
T

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

36 lines
769 B
PHP
Raw Normal View History

2012-04-19 15:36:46 +00:00
<?php
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/common.inc.php';
2012-04-19 15:36:46 +00:00
$rrd_filename = Rrd::name($device['hostname'], ['app', 'drbd', $app->app_instance]);
2012-04-19 15:36:46 +00:00
$array = [
'lo' => 'Local I/O',
'pe' => 'Pending',
'ua' => 'UnAcked',
'ap' => 'App Pending',
];
2012-04-19 15:36:46 +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
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++;
2012-04-19 15:36:46 +00:00
}
2016-08-18 20:28:22 -05:00
} else {
echo "file missing: $file";
}
2012-04-19 15:36:46 +00:00
$colours = 'mixed';
2012-04-19 15:36:46 +00:00
$nototal = 0;
$unit_text = '';
2012-04-19 15:36:46 +00:00
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/generic_multi_simplex_seperated.inc.php';