mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Use data_update instead of rrd_update/rrd_create and influx_update Centralize rrd file check so we can check against a remote rrdcached server too Use rrd_name() to generate rrd file names
		
			
				
	
	
		
			20 lines
		
	
	
		
			387 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			387 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
$rrd_filename = rrd_name($device['hostname'], 'cipsec_flow');
 | 
						|
 | 
						|
$ds_in  = 'InPkts';
 | 
						|
$ds_out = 'OutPkts';
 | 
						|
 | 
						|
$colour_area_in  = 'AA66AA';
 | 
						|
$colour_line_in  = '330033';
 | 
						|
$colour_area_out = 'FFDD88';
 | 
						|
$colour_line_out = 'FF6600';
 | 
						|
 | 
						|
$colour_area_in_max  = 'CC88CC';
 | 
						|
$colour_area_out_max = 'FFEFAA';
 | 
						|
 | 
						|
$graph_max = 1;
 | 
						|
$unit_text = 'Pkts   ';
 | 
						|
 | 
						|
require 'includes/graphs/generic_duplex.inc.php';
 |