Hello, I have a problem with hosts in module map
Icinga 2 installed on CentOS 8
my configuration
/etc/icingaweb2/modules/map/config.ini
[provider]
osm_provider = “OpenStreetMap”
[options]
location_lat = “vars.location_lat”
location_lon = “vars.location_lon”
[openstreetmap]
url = “https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png”
attribution = “Map data © OpenStreetMap contributors”
For test, my configuration
/etc/icinga2/conf.d/hosts.conf
object Host “example_host” {
import “generic-host”
address = “192.168.1.1”
vars.location_lat = 40.7128
vars.location_lon = -74.0060
}
But, I don’t have any hosts in map.
Already check for erros on
sudo icinga2 daemon -C
Verify file permissions with
ls -l /etc/icingaweb2/modules/map/config.ini
with command
icinga2 object list --type Host --name example_host
…
- vars
- location_lat = 40.712800
% = modified in ‘/etc/icinga2/conf.d/hosts.conf’, lines 57:5-57:31 - location_lon = -74.006000
% = modified in ‘/etc/icinga2/conf.d/hosts.conf’, lines 58:5-58:32
- location_lat = 40.712800
- volatile = false
- zone = “”
…
Any help, maybe I forget something?
Thanks