Page 1 of 2

google map with no display

Posted: Wed Nov 21, 2012 5:47 pm
by relateqld
We are running nagios xi 2012 R1.2 with centos 6.3, I installed google map components and dashlet. But when I open dashlet, there is no display. anyone else has same problem?

Re: google map with no display

Posted: Fri Nov 23, 2012 8:42 am
by scottwilkerson
Can we tail the httpd error_log to see any errors that may have emerged while trying to access this page

Code: Select all

tail -f /var/log/httpd/error_log

Re: google map with no display

Posted: Sun Nov 25, 2012 5:12 pm
by relateqld
tried to monitor httpd error, but it didn't show any message while accessing the google map page. I attached the google map screenshot where you can see, there only empty page.

Re: google map with no display

Posted: Mon Nov 26, 2012 10:38 am
by lmiltchev
Did you try setting the map defaults? Do you see anything when you click on "Set Map Defaults" in the upper right corner?

Re: google map with no display

Posted: Mon Nov 26, 2012 5:42 pm
by relateqld
Yes, I can see the "set map default", but after that, no difference

Re: google map with no display

Posted: Mon Nov 26, 2012 5:59 pm
by mguthrie
I've seen this before with improperly formatted coordinates for a host. Can you right-click on the page, select "View Frame Source", and post the page source inside a set of code tags?

Re: google map with no display

Posted: Mon Nov 26, 2012 7:31 pm
by relateqld
Please find the source code in attachment.

Re: google map with no display

Posted: Mon Nov 26, 2012 7:32 pm
by relateqld
rename it to txt file

Re: google map with no display

Posted: Tue Nov 27, 2012 10:14 am
by mguthrie
The google maps component uses the notes field for the geo-coordinates for hosts, and it's *supposed* to filter out invalid coordinates, but it looks like there's a bug in that filtering, which is causing the map image to break. We'll post an updated version of the component on this thread with the fix once we get it updated.

Re: google map with no display

Posted: Tue Nov 27, 2012 1:34 pm
by mguthrie
Try the attached revision of the component. It should filter the notes data properly so that the map displays correctly.