This article applies to PRTG Network Monitor 19 or later
Acquiring an API key to use Google Maps in PRTG
Important Note:
- To use Google Maps in PRTG Network Monitor version 13 or later, you need to acquire a new API key for Google Maps API v3!
- Important: You have to Enable the Static Maps API in the Google API Console's settings!
- You have to run your PRTG web server as Secure HTTPS server to use Google Maps.
By default, PRTG version 18.3.42 and later uses the geocode of HERE Maps, because Google will forbid a keyless access to the geocoding API in future. Geocoding is used to convert the addresses that you enter in the Location (for Geo Maps) settings into geographic coordinates to show the position of your monitoring objects on the geo map.
If you still want to use the geocoding API of Google, you have to enable your Maps Static API access key for the Geocoding API as well.
We recommend that you do not use Google Static Maps! If you use this option, Geo Maps will be shown with limited functionality.
Step 1: Get a Google account
First you need a Google account. If you do not have one, you can create one here: https://accounts.google.com/NewAccount
Step 2: Use the Google APIs console to create your key
Important: As of PRTG version 13, use the Google Maps API v3 service. See above.
- Open the Google APIs console and log in: https://console.developers.google.com
- Create a project or open an existing one.
- Open the API Library to show all Google APIs.
- In the section Maps, click Maps Static API (you might have to expand the list with View all to see the entry).
- Click Enable to use the Google Maps Static API.
- Open the Credentials tab and click Create credentials. Use the option API key.
- Do not restrict the key (None) or provide the domain of your PRTG installation. For example, get it from the URL of your PRTG installation:
https://<provide this part>/group.htm?id=0&tabid=1
- Copy your API key.
Note: To use the Google Geocoding API instead of the HERE Maps geocoding in PRTG version 18.3.42 or later, additionally enable Geocoding API in the Google console and use the API key that you generated for the Maps Static API before.
Step 3: Enter API key in PRTG
- Copy your API key from the Google page.
- In the PRTG web interface, select Setup | System Administration | User Interface ("System & Website" in previous versions) from the main menu.
- In the Geo Maps (Google Maps Integration) section, select one Map Type and paste your API key into the API Key (required) field.
- Save your settings.
Step 4: Switch web server to SSL
Geo Maps can only be shown if the PRTG web server runs using HTTPS on port 443. To apply this setting, open Setup | System Administration | User Interface from the main menu bar in the PRTG web interface. In the section Web Server, switch the TCP Port for Web Server to Secure HTTPS server (Port 443), click Save, and confirm the restart of the Windows services.
Done
From now on, PRTG will show the location of groups and devices in maps if there is respective location information available in the Objects Settings. No Geo Maps will be displayed if you do not provide location information in PRTG!
Optional: Delete browser cookies
If you still do not see Google Maps in the PRTG web interface, please delete all cookies in the browser you use to access the web interface, or use a different browser.
More
To learn more about the Maps API, see the FAQ section of Google.
Google maps will not work in deprecated PRTG versions 7 through 9.2.0.2175! Please update PRTG to the current version.
Add comment