Page 1 of 4

Nagios XI - Google Maps Plugin

Posted: Wed Aug 31, 2016 9:27 pm
by rh2832
Hello, New to Nagios XI and have setup the the vm appliance but am having problems with the Google Maps Plug-in.

- The appliance is in a DMZ and is configured to utilize a proxy for internet connectivity.
- All monitored hosts are local or accessible over a vpn from the dmz where the XI appliance exists.
- Installing the google plug-in was successful.
- I have added lat/long for two devices in different locations.
- I have set "Map Defaults" to 41.881832, -87.623177 with "Default Zone Level" 5
- 3 agents configured with

40.789543,-74.056534
35.787743,-78.644257
27.964157,-82.452606

- When i bring up the google map the earth map it shows up for about 2 seconds with the status icons for the hosts I have added but then refreshes to a page that says
Oops! Something went wrong.
This page didn't load Google Maps correctly. See the JavaScript console for technical details.

I have removed the lat/long for the 3 hosts above but renders the same results regardless of what i do.

Appreciate your feedback!!

Re: Nagios XI - Google Maps Plugin

Posted: Thu Sep 01, 2016 11:21 am
by lmiltchev
It is possible that you might need to whitelist *.googleapis.com and *.gstatic.com. See the post below:
http://stackoverflow.com/questions/9581 ... nd-a-proxy

Re: Nagios XI - Google Maps Plugin

Posted: Thu Sep 01, 2016 8:37 pm
by rh2832
Thanks for the quick feedback. No issues with white listing and added to browser and java security settings. Page loads for about 2 seconds and then goes gray every time. Is there a way to enable debug logging or try and hit a page manually to troubleshoot this further?

Re: Nagios XI - Google Maps Plugin

Posted: Fri Sep 02, 2016 11:17 am
by lgroschen
If you open the web browser console and reload the page are there Javascript errors in the console? Also you can check the apache error log here: /var/log/httpd/error_log

Re: Nagios XI - Google Maps Plugin

Posted: Wed Sep 07, 2016 8:05 pm
by rh2832
I did not find any errors in the /var/log/httpd/error_log , access_log or /var/log/messages. I was able to find errors using f12 debug tools below.

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/ jquery-1.11.2.min.js:4:25327
"Google Maps API error: MissingKeyMapError https://developers.google.com/maps/docu ... -map-error" js:34:391
"Google Maps API warning: NoApiKeys https://developers.google.com/maps/docu ... o-api-keys" util.js:208:12
"Google Maps API warning: SensorNotRequired https://developers.google.com/maps/docu ... t-required"

Re: Nagios XI - Google Maps Plugin

Posted: Thu Sep 08, 2016 4:21 pm
by tmcdonald
Does this happen for all browsers, versions, and across operating systems? It sounds like your browser is disabling some functionality for security purposes, which in a DMZ + VPN + proxy environment seems likely.

Re: Nagios XI - Google Maps Plugin

Posted: Mon Oct 31, 2016 4:26 pm
by kcarlson
rh2832, did you find a solution to this? I also seem to be having the identical issue.

Thanks!

Re: Nagios XI - Google Maps Plugin

Posted: Tue Nov 01, 2016 1:10 pm
by dwhitfield
@rh2832,

What version of XI are you running? If this is a bug, we need to make sure it exists in the most recent version before reporting. Thanks!

Re: Nagios XI - Google Maps Plugin

Posted: Thu Nov 03, 2016 10:46 am
by kcarlson
Not wanting to hijack the thread but updated to Nagios 5.3.2 this AM to see if it solved the issue and did not. The Google Map component is at 1.5.0 and says up to date. Attached is a screen grab of what @rh2832 was referring to in the f12 debug. Just hoping to keep this issue moving forward.

Thanks!

Re: Nagios XI - Google Maps Plugin

Posted: Thu Nov 03, 2016 11:17 am
by dwhitfield
@rh2832, what happens if you go to https://www.google.com/maps/ from the same browser? What about http://maps.google.com?