Implement a function to fix the rrd path

This commit is contained in:
Mark Schouten
2015-11-10 11:44:30 +01:00
parent 24550b0c02
commit 669eb872a5
6 changed files with 29 additions and 14 deletions

View File

@@ -1,14 +1,14 @@
<?php
require 'includes/graphs/application/ceph_common.inc.php';
$ds_in = 'apply_ms';
$ds_out = 'commit_ms';
$in_text = 'Apply';
$out_text = 'Commit';
$rrd = join('-', array('app', 'ceph', $vars['id'], 'osd', $vars['osd'])).'.rrd';
$ceph_osd_rrd = join('/', array($config['rrd_dir'], $device['hostname'], $rrd));
$ceph_osd_rrd = ceph_rrd('osd');
if (is_file($ceph_osd_rrd)) {
$rrd_filename = $ceph_osd_rrd;