| 
									
										
										
										
											2010-07-20 14:53:55 +00:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Generate a list of ports and then call the multi_bits grapher to generate from the list
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $device = device_by_id_cache($id); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $file = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("screenos-sessions.rrd"); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $rrd_list[0]['filename'] = $file; | 
					
						
							|  |  |  | $rrd_list[0]['descr'] = "Maxiumum"; | 
					
						
							|  |  |  | $rrd_list[0]['rra'] = "max"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $rrd_list[1]['filename'] = $file; | 
					
						
							|  |  |  | $rrd_list[1]['descr'] = "Allocated"; | 
					
						
							|  |  |  | $rrd_list[1]['rra'] = "allocate"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $rrd_list[2]['filename'] = $file; | 
					
						
							|  |  |  | $rrd_list[2]['descr'] = "Failed"; | 
					
						
							|  |  |  | $rrd_list[2]['rra'] = "failed"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-03-17 10:57:51 +00:00
										 |  |  | if ($_GET['debug']) { print_r($rrd_list); } | 
					
						
							| 
									
										
										
										
											2010-07-20 14:53:55 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | $colours   = "mixed"; | 
					
						
							|  |  |  | $nototal   = 1; | 
					
						
							|  |  |  | $unit_text = "Sessions"; | 
					
						
							|  |  |  | $scale_min = "0"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-03-17 16:35:18 +00:00
										 |  |  | include("generic_multi_simplex_seperated.inc.php"); | 
					
						
							| 
									
										
										
										
											2010-07-20 14:53:55 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-03-17 10:57:51 +00:00
										 |  |  | ?>
 |