mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Attempt to fix proxmox rrd naming. Create a separate function to generate it's file names.
		
			
				
	
	
		
			31 lines
		
	
	
		
			896 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			896 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| /*
 | |
|  * Copyright (C) 2015 Mark Schouten <mark@tuxis.nl>
 | |
|  *
 | |
|  * This program is free software; you can redistribute it and/or
 | |
|  * modify it under the terms of the GNU General Public License
 | |
|  * as published by the Free Software Foundation; version 2 dated June,
 | |
|  * 1991.
 | |
|  *
 | |
|  * This program is distributed in the hope that it will be useful,
 | |
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | |
|  * GNU General Public License for more details.
 | |
|  *
 | |
|  * See http://www.gnu.org/licenses/gpl.txt for the full license
 | |
|  */
 | |
| 
 | |
| require 'includes/graphs/common.inc.php';
 | |
| 
 | |
| $proxmox_rrd = proxmox_rrd_name($vars['cluster'], $vars['vmid'], $vars['port']);
 | |
| 
 | |
| if (rrdtool_check_rrd_exists($proxmox_rrd)) {
 | |
|     $rrd_filename = $proxmox_rrd;
 | |
| }
 | |
| 
 | |
| $ds_in  = 'INOCTETS';
 | |
| $ds_out = 'OUTOCTETS';
 | |
| 
 | |
| require 'includes/graphs/generic_data.inc.php';
 |