Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hosts Geo map not working #646

Closed
satishdotpatel opened this issue Jul 5, 2016 · 6 comments
Closed

Hosts Geo map not working #646

satishdotpatel opened this issue Jul 5, 2016 · 6 comments

Comments

@satishdotpatel
Copy link

I have two ntopng server, one of them i am getting this error when i got to "Hosts Geo Map" I am running 2.5.160701 - Community Edition

Oops! Something went wrong.
This page didn't load Google Maps correctly. See the JavaScript console for technical details.

@satishdotpatel
Copy link
Author

Found solution:

Google change some policy so you need to obtain API key and insert into /usr/share/ntopng/scripts/lua/hosts_geomap.lua

<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&key=YOUR_API_KEY"></script>

https://www.latecnosfera.com/2016/06/google-maps-api-error-missing-keymap-error-solved.html

simonemainardi added a commit that referenced this issue Jul 6, 2016
Users can now generate a custom Google Maps API key and
set it via ntopng Preferences page.

Addresses #646
@simonemainardi
Copy link
Contributor

thanks for pointing it out. We have added a new field in the ntopng preferences page to set the google api key

image

simonemainardi added a commit that referenced this issue Jul 8, 2016
Users can now generate a custom Google Maps API key and
set it via ntopng Preferences page.

Addresses #646
@ghost
Copy link

ghost commented Feb 1, 2017

Yeah your preferences area doesn't help if the page doesn't load regardless of my api key. Tried another api key too.

@dejtronschik
Copy link

Google requires SSL/TLS connection for maps API to work as Java console states.
I have the same problem and will test https redirecting later. Insecure connection is deprecated.
image

@simonemainardi
Copy link
Contributor

I think you have turn HTTPS on for ntopng, see https://github.com/ntop/ntopng/blob/dev/doc/README.SSL

@dejtronschik
Copy link

dejtronschik commented Sep 12, 2018

Great, Simone, it works under ntop SSL! I've turned
-W 8080
option and certs under httpdocs folder and my API showed me the map and geotargeting of the collected IPs.
I think the issue above was with the same collision, but we need ghost to confirm.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants