mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Implement a function to fix the rrd path
This commit is contained in:
@@ -3,10 +3,9 @@
|
||||
$scale_min = 0;
|
||||
|
||||
require 'includes/graphs/common.inc.php';
|
||||
require 'includes/graphs/application/ceph_common.inc.php';
|
||||
|
||||
$rrd = join('-', array('app', 'ceph', $vars['id'], 'df', $vars['pool'])).'.rrd';
|
||||
|
||||
$ceph_pool_rrd = join('/', array($config['rrd_dir'], $device['hostname'], $rrd));
|
||||
$ceph_pool_rrd = ceph_rrd('df');
|
||||
|
||||
if (is_file($ceph_pool_rrd)) {
|
||||
$rrd_filename = $ceph_pool_rrd;
|
||||
|
||||
Reference in New Issue
Block a user