Integrate WhatsUp Gold with Google Maps

1

You can copy the code below or download all files necessary here (v2016 and below)

You can copy the code below or download all files necessary here (v2017 and above)

These were originally written by someone else who I would like to credit. I worked off the original and made a new one which could show devices. [Need to get name] I then looked into the Google Maps API further and found a useful function someone had made, markerwithlabel.js. I can not take credit for either of those things, so please send thanks to Gary Little for markerwithlabel.js. markerwithlabel.js is freely and publicly available from here.

Instructions:

  • Download the proper zip file aboveile, and and unzip. Make sure GoogleMaps_Devices.asp or GoogleMaps_Groups.asp [depending on which code you copied] to <Your install directory>IpswitchWhatsUp\HTML\NmConsole\DeviceManagement\DeviceList
  • Copy labelwithmarker.js to same directory
  • Make a dashboard with this information –> Columns: 1 –> Width: Max supported by monitor (1280 for example) –> Add Content: Free Form Text/HTML report
  • Menu -> Configure on the Free Form Text/HTML report
  • For device dashboard, copy and paste this: <center><iframe src=”/NmConsole/DeviceManagement/DeviceList/GoogleMaps_Devices.asp” style=”border:0px #FFFFFF none;” name=”dash_frame” scrolling=”no” frameborder=”0″ marginheight=”0px” marginwidth=”0px” height=”700px” width=”100%”></iframe></center>
  • For the group dashboard, copy and paste this: <center><iframe src=”/NmConsole/DeviceManagement/DeviceList/GoogleMaps_Groups.asp” style=”border:0px #FFFFFF none;” name=”dash_frame” scrolling=”no” frameborder=”0″ marginheight=”0px” marginwidth=”0px” height=”700px” width=”100%”></iframe></center>
  • To add devices to the devices map: Add a device attribute to the device in WUG using the attribute name ‘LatLong’ with the value being x,y (Latitude,Longitude)
  • To add groups to the group map: Right-click the group and select properties. Update the description with the value x,y (Latitude,Longitude)

http://itouchmap.com/latlong.html — I use this site to grab the latitude,longitude information.

Post your comment