Hi, I hope you can help - I’m been going through steps to try to get Icinga2/Web/Directory configured in a distributed master/slave setup.
As I was having such trouble, I spent time trying to make the base icinga2 setup work in a master/satellite.
On the directory module configuration page, I reach the follwoing configuraion item:
“This is the name of the Endpoint object (and certificate name) you created for your ApiListener object.”
I couldn’t find the creation of an ApiListener object in the Icinga2 or Icinga Web 2 installation steps. So as far as I understand it, this is tha master zone name.
My endpoint is master
(see below) but director wouldn’t pick this up so I had to put the FQDN of the master node (Icinga2,Icinga Web 2 & Director are all on the same host).
When I ran the kickstart wizard, the master
and site-a
zones do not get imported.
I tried to add the master
and site-a
zones (with the latter having “master” as the parent) but director threw this error.
Unable to detect your deployment endpoint. I was looking for the first endpoint configured with an assigned API user in the “master” zone.
I’m not sure what to do next, how I can I get the director config to match the underlying icinga2 config?
Thanks,
Master zones.conf
* Generated by Icinga 2 node setup commands
* on 2019-04-09 13:22:32 +0100
*/
object Endpoint "master" {
}
object Zone "master" {
endpoints = [ "master" ]
}
object Endpoint "site-a" {
host = "siteanode.mydomain.local"
port = "5665"
}
object Zone "site-a" {
endpoints = [ "site-a" ]
parent = "master"
}
object Zone "global-templates" {
global = true
}
object Zone "director-global" {
global = true
}
Satellite zones.conf
:
/*
* Generated by Icinga 2 node setup commands
* on 2019-04-09 13:27:48 +0100
*/
object Endpoint "master" {
host = "masternode.mydomain.local"
port = "5665"
}
object Zone "master" {
endpoints = [ "master" ]
}
object Endpoint "site-a" {
host = "siteanode.mydomain.local"
port = "5665"
}
object Zone "site-a" {
endpoints = [ "site-a" ]
parent = "master"
}
object Zone "global-templates" {
global = true
}
object Zone "director-global" {
global = true
}