So once again, the community is at it again.  Dal wrote a pretty sweet little integration which allows you to display your nodes on a Google Map.

 

You will need to download the zip file from the thwack community exchange Google Maps for Orion NPM.  I recommend to either do this directly on your Orion server or you will have to copy it over manually if you cannot do that.

 

Once you have done this, next extract it to the inetpub/SolarWinds directory

 

image

 

There are 3 files here that are used:

 
      
  • makexml.aspx -> used to get data from the Solarwinds Database and makes a xml file.
  •    
  • data.xml -> the xml file made by makexml.aspx
  •    
  • displayxml.aspx -> the javascript that actually displays the data from data.xml.
 

Next, using the Orion Custom Property Editor, you will need to create 7 new node custom properties (Start –> All Programs –> SolarWinds Orion –> Grouping and Access Control –> Custom Property Editor)

 
      
  • ConnectionType: To tell what equipment has been used to make the connection between the points (Icons), Modem, fiber, etc.
  •    
  • Enhetstype: What kind of equipment is this: L3-switch, Router, Radio, etc (not used for Google Maps yet)
  •    
  • Latitude: No explanation needed
  •    
  • Longitude: No explanation needed        
  •    
  • Mapname: The cryptic link name Orion makes for maps made in Network Atlas. Needs to be pulled manually from the MapStudioFiles.
  •    
  • Polyline: The encoded polyline, between two or more points. Made with http://code.google.com/intl/nb/apis/maps/documentation/polylineutility.html
  •    
  • Stedsnavn: (Sitename in English?) The name of the place you want to put on the map. Used to group together nodes at the same location (Site).
 

  
If you want to test his implementation, you can use the files he put in the zip and go to - http://your-server-ip/GMaps/displayxml.aspx

 

However, if you want to do this for your implementation, here is what you need to do:

 
      
  1. Populate the above custom properties against the nodes you want to map
  2.    
  3. Obtain your own Google key, it can be done easily from here: http://code.google.com/intl/nb/apis/maps/signup.html
  4.    
  5. Edit makexml.aspx database connection section with your SolarWinds Orion database information     
    image
  6.    
  7. Delete the existing data.xml from the directory
  8.    
  9. Open your browser of choice and copy in the following URL - http://<yourServerIP>/GMaps/makexml.aspx.  If you have done everything right to this point, you will get something like this in return on the web page and this will create your own copy of a data.xml file     
    image      
    *Note – the first time I tried this I kept getting a permissions error and had to go in and modify the permission on the directory and turn off read-only on the files
  10.    
  11. Now the Google Maps API key, you got in step 2 above, you will need to copy that into the displayxml.aspx file here     
    image 
  12.    
  13. Also, within this same file, you will want to change the default map location and zoom level, which can be accomplished by changing this line     

    gmap.setCenter(new GLatLng(62.484415, 6.342545), 11);         
    The number 11 is the zoom level.

      
 

So now we are at a pivot point.  If you wanted to create an external link within Orion that shows up on your main toolbar, you can stop now and just copy the URL /GMaps/displayxml.aspx">/GMaps/displayxml.aspx">http://<yourServerIP>/GMaps/displayxml.aspx

 

If you want to have this show up and work on your Network Summary Home page as a Custom HTML resource, you have a couple more steps to complete

 

Within the displayxml.aspx file you have a couple more locations to update and put a ../GMaps in front of them.  Easiest way is to do a find in notepad

 
      
  • search for data.xml and add ../GMaps in front of it - mine looks like request.open('GET', '../GMaps/data.xml', true);
  •    
  • search for  mm_20_green.png iconGreen.image = '../GMaps/Icons/mm_20_green.png';     
    12 locations
 

Now, go to the Network Summary Home page and click customize in the upper right hand corner and click the plus sign to add, under Miscellaneous, add a custom HTML resource, click submit.  This will return you back to the Network Summary Home page and for that resource click edit and enter the entire context of the displayxml.aspx file into here and click submit a voila, Google Maps on your Network Summary Home page.

 

One extra item of note, you will need to run the makexml file manually on a periodic basis to pick up changes to Orion database or figure out a way to schedule this.

 

 

  Here is what mine looks like now as an example: 

 

 

image

 

Here is what the author, Dal’s, map looks like:

 

 

So for you other community members out there, this work has earned Dal a SolarWinds t-shirt, which I will be sending to him.  If you have done something cool with Orion or written some customizations, let us know and we may send you a shirt too.