| 
									
										
										
										
											2009-10-16 09:01:50 +00:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-25 12:24:34 +00:00
										 |  |  | // Generate a list of ports and then call the multi_bits grapher to generate from the list
 | 
					
						
							| 
									
										
										
										
											2015-07-10 13:36:21 +02:00
										 |  |  | $i = 0; | 
					
						
							|  |  |  | foreach (dbFetchRows('SELECT * FROM `ports` WHERE `device_id` = ? AND `pagpGroupIfIndex` = ?', array($port['device_id'], $port['ifIndex'])) as $int) { | 
					
						
							| 
									
										
										
										
											2016-08-18 20:28:22 -05:00
										 |  |  |     $rrd_file = get_port_rrdfile_path($hostname, $int['port_id']); | 
					
						
							| 
									
										
										
										
											2016-07-08 15:09:11 -05:00
										 |  |  |     if (rrdtool_check_rrd_exists($rrd_file)) { | 
					
						
							| 
									
										
										
										
											2016-01-21 22:04:33 +01:00
										 |  |  |         $rrd_list[$i]['filename'] = $rrd_file; | 
					
						
							| 
									
										
										
										
											2015-07-10 13:36:21 +02:00
										 |  |  |         $rrd_list[$i]['descr']    = $int['ifDescr']; | 
					
						
							|  |  |  |         $i++; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2009-10-16 09:01:50 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-10 13:36:21 +02:00
										 |  |  | $units       = 'bps'; | 
					
						
							|  |  |  | $total_units = 'B'; | 
					
						
							|  |  |  | $colours_in  = 'greens'; | 
					
						
							|  |  |  | $multiplier  = '8'; | 
					
						
							| 
									
										
										
										
											2009-10-27 13:04:16 +00:00
										 |  |  | $colours_out = 'blues'; | 
					
						
							| 
									
										
										
										
											2009-10-16 09:01:50 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-27 13:04:16 +00:00
										 |  |  | $nototal = 1; | 
					
						
							| 
									
										
										
										
											2015-07-10 13:36:21 +02:00
										 |  |  | $ds_in   = 'INOCTETS'; | 
					
						
							|  |  |  | $ds_out  = 'OUTOCTETS'; | 
					
						
							| 
									
										
										
										
											2009-10-16 09:01:50 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-10 13:36:21 +02:00
										 |  |  | require 'includes/graphs/generic_multi_bits_separated.inc.php'; |