When i delete some config file on the config master, this config file still keeps in /var/lib/icinga2/api/zones/ of the config master. And the other agent slaves also keep this file.
The enabled feature includes ‘api checker command debuglog ido-mysql mainlog syslog’.
please help-out me. thanks advanced
The zone.conf is shown as follows.
/*
* Generated by Icinga 2 node setup commands
* on 2020-04-28 16:21:49 +0800
*/
object Endpoint "master1-10.172.8.90" {
log_duration = 20m
// That's us
}
object Endpoint "master2-10.173.192.212" {
host = "10.173.192.212" // The master actively tries to connect to the secondary master
log_duration = 20m // Disable the replay log for command endpoint agents
}
object Endpoint "agent1-10.173.64.55" {
host = "10.173.64.55" // The master actively tries to connect to the agent1
#log_duration = 0 // Disable the replay log for command endpoint agents
}
object Endpoint "agent2-10.180.3.129" {
host = "10.180.3.129" // The master actively tries to connect to the agent1
#log_duration = 0 // Disable the replay log for command endpoint agents
}
object Endpoint "agent1-10.178.19.112" {
host = "10.178.19.112"
}
object Endpoint "agent2-10.178.20.240" {
host = "10.178.20.240" //Actively connect to the secondary agent
#log_duration = 0 // Disable the replay log for command endpoint agents
}
object Zone "master" {
endpoints = [ "master1-10.172.8.90","master2-10.173.192.212" ]
}
object Zone "search"{
endpoints = ["agent1-10.173.64.55","agent2-10.180.3.129" ]
parent = "master"
}
object Zone "rec"{
endpoints = ["agent1-10.178.19.112","agent2-10.178.20.240" ]
parent = "master"
}
object Zone "global-templates" {
global = true
}