Proxmox rrd fix

Attempt to fix proxmox rrd naming. Create a separate function to generate it's file names.
This commit is contained in:
Tony Murray
2016-08-12 11:05:58 -05:00
parent 516e49b6d3
commit 1949f2f4ea
3 changed files with 77 additions and 51 deletions

View File

@@ -18,7 +18,7 @@
require 'includes/graphs/common.inc.php';
$proxmox_rrd = $config['rrd_dir'].'/proxmox/'.$vars['cluster'].'/'.$vars['vmid'].'_netif_'.$vars['port'].'.rrd';
$proxmox_rrd = proxmox_rrd_name($vars['cluster'], $vars['vmid'], $vars['port']);
if (rrdtool_check_rrd_exists($proxmox_rrd)) {
$rrd_filename = $proxmox_rrd;