When first setting up my HA icinga2, I failed to notice
https://icinga.com/docs/icinga-2/latest/doc/06-distributed-monitoring/#disable-log-duration-for-command-endpoints
log_duration = 0 // Disable the replay log for command endpoint agents
The two HA icinga2 master nodes clearly need the replay log, but do any of the agents?
How important is disabling the replay log on the agents, and what impact does disabling vs not disabling have?
Does not disabling have any advantages?
Give as much information as you can, e.g.
-
Version used: version:
r2.13.1-1 -
Operating System and version:
20.04.3 LTS (Focal Fossa) -
Enabled features (
icinga2 feature list):api checker ido-mysql influxdb mainlog notification -
Icinga Web 2 version and modules (System - About)
2.9.3
|setup|2.9.3|
|grafana|1.4.2|
|monitoring|2.9.3| -
Config validation (
icinga2 daemon -C) : no errors ```[2021-09-20 10:24:57 -0400] information/cli: Finished validating the configuration file(s).
* If you run multiple Icinga 2 instances, the `zones.conf` file (or `icinga2 object list --type Endpoint` and `icinga2 object list --type Zone`) from all affected nodes
agent zone.conf
object Endpoint “icinga01.agilitypr.internal” {
host = “xx.xxx.xx.xx”
}
object Endpoint “icinga02.agilitypr.internal” {
host = “xx.xx.xx.xx”
}
object Zone “master” {
endpoints = [ “icinga01.agilitypr.internal”,“icinga02.agilitypr.internal” ]
}
object Zone “global-templates” {
global = true
}
/* Individual hosts */
object Endpoint “agent.agilitypr.internal” {
}
object Zone “agent.agilitypr.internal” {
endpoints = [ “agent.agilitypr.internal” ]
parent = “master”