mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	* QFP Discovery module * QFP Polling module - Utilization * Add Cisco QFP module in module list * Web UI QFP discovery module * Add average packet size graph * Health overview QFP graph * Polling and UI improvements, test data * Reformatting and style checks * Readd snmprec data * Fix module performance stats collecting
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * 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, either version 3 of the License, or (at your
 | |
|  * option) any later version.  Please see LICENSE.txt at the top level of
 | |
|  * the source code distribution for details.
 | |
|  *
 | |
|  * @package    LibreNMS
 | |
|  * @subpackage webui
 | |
|  * @link       http://librenms.org
 | |
|  * @copyright  2019 LibreNMS
 | |
|  * @author     Pavle Obradovic <pobradovic08@gmail.com>
 | |
|  */
 | |
| 
 | |
| /*
 | |
|  * Priority packets handled by QFP
 | |
|  */
 | |
| $i = 1;
 | |
| $rrd_list[$i]['filename']        = $rrd_filename;
 | |
| $rrd_list[$i]['descr']           = $components['name'];
 | |
| $rrd_list[$i]['ds_in']           = 'InPriorityPps';
 | |
| $rrd_list[$i]['ds_out']          = 'OutPriorityPps';
 | |
| $rrd_list[$i]['descr']           = 'Priority';
 | |
| $rrd_list[$i]['colour_area_in']  = 'FACF5A';
 | |
| $rrd_list[$i]['colour_area_out'] = 'FF5959';
 | |
| 
 | |
| /*
 | |
|  * Non-priority packets handled by QFP
 | |
|  */
 | |
| $i =2;
 | |
| $rrd_list[$i]['filename']        = $rrd_filename;
 | |
| $rrd_list[$i]['descr']           = $components['name'];
 | |
| $rrd_list[$i]['ds_in']           = 'InNonPriorityPps';
 | |
| $rrd_list[$i]['ds_out']          = 'OutNonPriorityPps';
 | |
| $rrd_list[$i]['descr']           = 'NonPriority';
 | |
| $rrd_list[$i]['colour_area_in']  = '085F63';
 | |
| $rrd_list[$i]['colour_area_out'] = '49BEB7';
 | |
| 
 | |
| $units       = 'pps';
 | |
| $units_descr = 'Packets/s';
 | |
| $colours_in  = 'purples';
 | |
| $multiplier  = '1';
 | |
| $colours_out = 'oranges';
 | |
| 
 | |
| $args['nototal'] = 1;
 | |
| 
 | |
| include 'includes/html/graphs/generic_multi_seperated.inc.php';
 |