Skip to content

Configuration Worldmap

Frédéric MOHIER edited this page Sep 7, 2015 · 2 revisions

Worldmap plugin configuration

The Web UI Worldmap plugin allows to display the monitored hosts on a Google map.

plugin configuration

The default plugin configuration is defined in the file /var/lib/shinken/modules/webui2/plugins/worldmap/plugin.cfg:

[plugin]
# Default position/zoom
# France / Romans is default camera position
default_lat=45.054148
default_lng=5.080625
default_zoom=16

# Map tiles layer
# - Google maps layer, leave empty (default)
# - Open Street Map layer, value as OSM
map_layer=

# Map hosts are filtered 
# - list of hosts business level to display
# The hosts with the defined business levels are the only hosts displayed on the map
# map_hostsLevel=1,2,3,4,5
# For all hosts to be displayed
map_hostsLevel=3,4,5
# Only the most important one ...

# - list of services to display (always)
# The hosts defined in this list are always displayed whatever their business level
map_hostsShow=shinken24

# - list of hosts to hide (always)
# The hosts defined in this list are never displayed whatever their business level
map_hostsHide=


# Map services are filtered 
# - list of services business level to display
# The services with the defined business levels are the only services used to build the hosts overall state on the map
# Whatever their business level, they are displayed in the host content window except if they are in the map_servicesHide list ...
map_servicesLevel=3,4,5

# - list of services to hide (always)
# The services defined in this list are never displayed whatever their business level
map_servicesHide=nsca_memory

hosts related properties

To locate hosts on the world map, the WebUI needs to get GPS coordinates for the hosts. Latitude and logitude are provided in, respectively, _LOC_LAT and _LOC_LNG host custom variables.

Host definition:

define host{

   ... 
# GPS
   _LOC_LAT             45.054700
   _LOC_LNG             5.080856
   ...
}