World Map Question

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
gwakem
Posts: 238
Joined: Mon Jan 23, 2012 2:02 pm
Location: Asheville, NC

World Map Question

Post 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.
--
Griffin Wakem
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: World Map Question

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
gwakem
Posts: 238
Joined: Mon Jan 23, 2012 2:02 pm
Location: Asheville, NC

Re: World Map Question

Post 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?
--
Griffin Wakem
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: World Map Question

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked