Page 2 of 4

Re: Nagios XI - Google Maps Plugin

Posted: Thu Nov 03, 2016 1:08 pm
by kcarlson
Tried the component in multiple browsers (Chrome,Firefox,IE) all have same issue but all three browsers can get to google.com/maps and maps.google.com just fine.

Re: Nagios XI - Google Maps Plugin

Posted: Thu Nov 03, 2016 2:33 pm
by dwhitfield
We have ourselves a good-news, bad-news situation here. Mostly good news though.

Bad News: You need to remove the old Google Maps component.

Good News: I have attached the updated Google Maps component.

To install, first, download the component. Then, go to Admin -> Manage Components (under System Extensions). Next browse for the new, downloaded Google Maps component. Click "Upload & Install".

Then, you'll need to configure from Home -> Google Maps (under Maps).

Please let us know if this does not resolve your issue.

Re: Nagios XI - Google Maps Plugin

Posted: Thu Nov 03, 2016 3:04 pm
by kcarlson
Same result for me. Map appears for a brief second then goes back to the grey "Oops!" screen.

Re: Nagios XI - Google Maps Plugin

Posted: Thu Nov 03, 2016 4:53 pm
by dwhitfield
@kcarlson, could you clear your browser cache? Maybe Google has a cookie or something from before the API change.

Re: Nagios XI - Google Maps Plugin

Posted: Fri Nov 04, 2016 5:02 am
by Pachinko
I am having the same issue with my Nagios XI test installation.
I have tried multiple browsers and I have removed the old Google Map component and installed the new one you attached. I cleared the browser cache before I retried. Unfortunately I have the same Oops screen.
I am having no issues surfing to https://www.google.com/maps/ and http://maps.google.com. For both sites I can see the map clearly.
oops.png

Re: Nagios XI - Google Maps Plugin

Posted: Fri Nov 04, 2016 9:02 am
by kcarlson
I also cleared my browser cache this morning to no luck.

Re: Nagios XI - Google Maps Plugin

Posted: Fri Nov 04, 2016 10:25 am
by dwhitfield
Can all three of you guys PM me your profiles? Admin > System Config > System Profile and click the Download Profile button in the top right corner.

Also, if you could download the version of the Google Map component from the Manage Components screen and upload that (in thread or via PM). I just want to make sure it's uploading properly. I know it gives version #s on the Manage Components screen, but I just want to make sure all three of you have the same exact version.

Thanks!

UPDATE: component and profile received from @kcarlson

Re: Nagios XI - Google Maps Plugin

Posted: Fri Nov 04, 2016 11:57 am
by dwhitfield
You are going to generate an Google Maps API key (generating a key is free). Documentation is at https://developers.google.com/maps/docu ... pi-key#key

Once you have the key, in map.php, you will need to add the key to the URL in the javascript call

Code: Select all

<!--Replace below line with google's premier client ID script for appropriate commercial use-->
        <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true"></script>
Just below the anchor in https://developers.google.com/maps/docu ... pi-key#key there is an example.

We need to update our documentation as well, to make that more clear. To be clear, this is a change in the way Google works.

Please let us know if that does not work for you.

Re: Nagios XI - Google Maps Plugin

Posted: Fri Nov 04, 2016 1:44 pm
by kcarlson
That took care of it! Just to clarify what was done after getting the API key I replaced

<script type="text/javascript" src="https://maps.google.com/maps/api/js?sen ... "></script>

with

<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=[b]YourAPIKey[/b]"></script>

Thanks for all the help!

Re: Nagios XI - Google Maps Plugin

Posted: Fri Nov 04, 2016 1:50 pm
by dwhitfield
kcarlson wrote:That took care of it!
Fantastic! For clarity, we aren't 100% sure what is happening because we weren't able to reproduce it, but we think there must be some grace period without the API, which is why it worked for a bit after the June announcement. It's possible it is related to the proxy in some way, but again, we were unable to reproduce it.

Of course, we'll leave this open for OP and @Pachinko to report results.