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

36 lines
816 B
PHP
Raw Normal View History

2012-04-19 15:36:46 +00:00
<?php
require 'includes/graphs/common.inc.php';
2012-04-19 15:36:46 +00:00
$rrd_filename = rrd_name($device['hostname'], array('app', 'drbd', $app['app_instance']));
2012-04-19 15:36:46 +00:00
$array = array(
'lo' => 'Local I/O',
'pe' => 'Pending',
'ua' => 'UnAcked',
'ap' => 'App Pending',
);
2012-04-19 15:36:46 +00:00
$i = 0;
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($array as $ds => $vars) {
$rrd_list[$i]['filename'] = $rrd_filename;
if (is_array($vars)) {
$rrd_list[$i]['descr'] = $vars['descr'];
2016-08-18 20:28:22 -05:00
} else {
$rrd_list[$i]['descr'] = $vars;
}
$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
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';