2015-11-10 11:06:03 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
$ds_in = 'rbytes';
|
|
|
|
|
$in_text = 'Read';
|
|
|
|
|
$ds_out = 'wrbytes';
|
|
|
|
|
$out_text = 'Write';
|
|
|
|
|
|
|
|
|
|
$format = 'bytes';
|
|
|
|
|
|
2022-07-22 16:01:55 -05:00
|
|
|
$ceph_pool_rrd = Rrd::name($device['hostname'], ['app', 'ceph', $app->app_id, 'pool', $vars['pool']]);
|
2015-11-10 11:06:03 +01:00
|
|
|
|
2021-03-28 17:25:30 -05:00
|
|
|
if (Rrd::checkRrdExists($ceph_pool_rrd)) {
|
2015-11-10 11:06:03 +01:00
|
|
|
$rrd_filename = $ceph_pool_rrd;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$colour_area_in = 'FF3300';
|
|
|
|
|
$colour_line_in = 'FF0000';
|
|
|
|
|
$colour_area_out = 'FF6633';
|
|
|
|
|
$colour_line_out = 'CC3300';
|
|
|
|
|
|
|
|
|
|
$colour_area_in_max = 'FF6633';
|
|
|
|
|
$colour_area_out_max = 'FF9966';
|
|
|
|
|
|
|
|
|
|
$unit_text = 'Bytes I/O';
|
|
|
|
|
|
2019-04-11 23:26:42 -05:00
|
|
|
require 'includes/html/graphs/generic_duplex.inc.php';
|