| 
									
										
										
										
											2015-07-18 16:15:57 +01:00
										 |  |  | # Network Map
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-31 16:49:01 +00:00
										 |  |  | ## LibreNMS has the ability to show you a network map based on:
 | 
					
						
							| 
									
										
										
										
											2015-07-18 16:15:57 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | - xDP Discovery | 
					
						
							|  |  |  | - MAC addresses | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | By default, both are are included but you can enable / disable either one using the following config option: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```php | 
					
						
							|  |  |  | $config['network_map_items'] = array('mac','xdp'); | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Either remove mac or xdp depending on which you want. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-01-30 21:06:58 -05:00
										 |  |  | A global map will be drawn from the information in the database, it is worth noting that this could lead to a large network map. | 
					
						
							| 
									
										
										
										
											2015-07-18 16:15:57 +01:00
										 |  |  | Network maps for individual devices are available showing the relationship with other devices. | 
					
						
							| 
									
										
										
										
											2015-07-29 02:00:26 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-01-30 22:37:28 -05:00
										 |  |  | One can also specify the parameters to be used for drawing and updating the network map. | 
					
						
							| 
									
										
										
										
											2015-07-29 02:00:26 +02:00
										 |  |  | Please see http://visjs.org/docs/network/ for details on the configuration parameters. | 
					
						
							|  |  |  | ```php | 
					
						
							|  |  |  | $config['network_map_vis_options'] = '{ | 
					
						
							|  |  |  |   layout:{ | 
					
						
							|  |  |  |       randomSeed:2 | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   "edges": { | 
					
						
							|  |  |  |     "smooth": { | 
					
						
							|  |  |  |         enabled: false | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     font: { | 
					
						
							|  |  |  |         size: 12, | 
					
						
							|  |  |  |         color: "red", | 
					
						
							|  |  |  |         face: "sans", | 
					
						
							|  |  |  |         background: "white", | 
					
						
							|  |  |  |         strokeWidth:3, | 
					
						
							|  |  |  |         align: "middle", | 
					
						
							|  |  |  |         strokeWidth: 2 | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   "physics": { | 
					
						
							|  |  |  |     "forceAtlas2Based": { | 
					
						
							|  |  |  |       "gravitationalConstant": -800, | 
					
						
							|  |  |  |       "centralGravity": 0.03, | 
					
						
							|  |  |  |       "springLength": 50, | 
					
						
							|  |  |  |       "springConstant": 0, | 
					
						
							|  |  |  |       "damping": 1, | 
					
						
							|  |  |  |       "avoidOverlap": 1 | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     "maxVelocity": 50, | 
					
						
							|  |  |  |     "minVelocity": 0.01, | 
					
						
							|  |  |  |     "solver": "forceAtlas2Based", | 
					
						
							|  |  |  |     "timestep": 0.30 | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | }'; | 
					
						
							|  |  |  | ``` |