Nagios XI - Google Maps Plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rh2832
Posts: 6
Joined: Wed Aug 24, 2016 10:00 pm

Nagios XI - Google Maps Plugin

Post 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!!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI - Google Maps Plugin

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
rh2832
Posts: 6
Joined: Wed Aug 24, 2016 10:00 pm

Re: Nagios XI - Google Maps Plugin

Post 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?
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: Nagios XI - Google Maps Plugin

Post 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
/Luke
rh2832
Posts: 6
Joined: Wed Aug 24, 2016 10:00 pm

Re: Nagios XI - Google Maps Plugin

Post 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"
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios XI - Google Maps Plugin

Post 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.
Former Nagios employee
kcarlson
Posts: 56
Joined: Thu Oct 20, 2016 9:17 am

Re: Nagios XI - Google Maps Plugin

Post by kcarlson »

rh2832, did you find a solution to this? I also seem to be having the identical issue.

Thanks!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios XI - Google Maps Plugin

Post 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!
kcarlson
Posts: 56
Joined: Thu Oct 20, 2016 9:17 am

Re: Nagios XI - Google Maps Plugin

Post 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!
You do not have the required permissions to view the files attached to this post.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios XI - Google Maps Plugin

Post by dwhitfield »

@rh2832, what happens if you go to https://www.google.com/maps/ from the same browser? What about http://maps.google.com?
Locked