Page 1 of 1

World Map Question

Posted: Thu May 16, 2019 10:34 am
by gwakem
NagiosXI 5.6.1 on RHEL 7.5
The world Map componant in XI looks great. All of my locations are entered and show up correctly. However, the default view is zoomed in too far, and I cannot see all locations. In looking through the menus, componants area, and Nagios knowledgebase, I cannot seem to find any way to set the default zoom level.

In addition to the zoom level, is there a way to set the threshold of locations on the map that must be reached before auto grouping them together? I love this feature, but in some places it groups with pin points that I feel should be far enough to leave separate.

Re: World Map Question

Posted: Thu May 16, 2019 2:47 pm
by cdienger
In /usr/local/nagiosxi/html/includes/components/map/scripts/main.js, you'll find a section like:

Code: Select all

   map = L.map('map_container', {
        center: default_coords,
        zoom: 10,
        layers: [selected_layer]
    });
10 is the default zoom level and lowering the value will cause the default to be zoomed out. In my testing browsers are pretty reluctant to reload javascript files so you may need to clear the browser cache out/restart it a couple times before the changes take effect. Also be aware that updates the the wizard may overwrite this setting.

Regarding the clustering, do you hvae some example long/lat pairs and some screenshots? I'll need to dig in a bit more to see if we can adjust the clustering threshold and would like some examples to test with.

Re: World Map Question

Posted: Fri May 17, 2019 11:22 am
by gwakem
That did the trick with the zooming, thanks!

For the coordinates, I will try and pull some examples. WHat would be the best way to get them to you? PM?

Re: World Map Question

Posted: Fri May 17, 2019 3:27 pm
by npolovenko
@gwakem, Please PM me and @cdienger a few coordinates of hosts that you don't think should be clustered together. We'll test them out in the lab and get back to you.