Hi,

I have a two master HA configuration that doesn't seem to be working as expected.
These are running Icinga2 2.5.4.
One master(cmon-03) was configured as master with the wizard, the other as client(cmon-04), both masters have icingaweb configured. Each hasitsown postgresqldatabase and one syncs the configuration to the otherusing zones.d(except for the cluster checks that I'm still working on).

The zones.conf looks like this in both servers:
object Endpoint "cmon-03" {
        host = "cmon-03"
}

object Endpoint "cmon-04" {
        host = "cmon-04"
}

object Zone "global-templates" {
        global = true
}

object Zone "master" {
        endpoints = [ "cmon-03", "cmon-04" ]
}
[ client zones configs and endpoints ]

Clients are defined in zones.d/master/hosts.conf and there is a zones.d/global-templates with all the common information, none of those include the two masters. All clients and the "second master(cmon-04)" are configured to accept commands from the api.

I can see clients receiving the checks from both in their logs, and icinga2web shows in both similar BUT not identical informationand that is the source of my concern: Some of the acknowledgederrors in one (cmon-03) don't seem to be acknowledged in the other(cmon-04), on the one with no acknowledgements, I can seethe MonitoringHealth complaining abouta "Backend icinga is not running" .

Icinga2 IS running and an "icinga2 node list" returns just fine in both systems, but somehowthe master receiving the configuration (cmon-04), doesn't seem to be aware of itself, restarting icinga2 doesn't do anything to the web interface, changes in the configuration aren't reflected in it either despite the fact that /var/lib/icinga2/api/zones data is consistent with the one in the other master (cmon-03) I see no error in the logs indicating issues with the connection between the two, I do see:

[2016-11-01 16:14:53 -0400] information/ApiListener: New client connection for identity 'cmon-04' from [---]:48582 [2016-11-01 16:14:53 -0400] information/ApiListener: Sending config updates for endpoint 'cmon-04'. [2016-11-01 16:14:53 -0400] information/ApiListener: Syncing global zone 'global-templates' to endpoint 'cmon-04'. [2016-11-01 16:14:53 -0400] information/ApiListener: Syncing zone 'master' to endpoint 'cmon-04'. [2016-11-01 16:14:53 -0400] information/ApiListener: Syncing runtime objects to endpoint 'cmon-04'. [2016-11-01 16:14:53 -0400] information/ApiListener: Finished sending config updates for endpoint 'cmon-04'. [2016-11-01 16:14:53 -0400] information/ApiListener: Sending replay log for endpoint 'cmon-04'. [2016-11-01 16:14:53 -0400] warning/ApiListener: Could not open spool file: /var/lib/icinga2/api/log/current
Context:
    (0) Replaying log for Endpoint 'cmon-04'

[2016-11-01 16:14:53 -0400] warning/ApiListener: Could not open spool file: /var/lib/icinga2/api/log/current
Context:
    (0) Replaying log for Endpoint 'cmon-04'

[2016-11-01 16:14:53 -0400] information/ApiListener: Finished sending replay log for endpoint 'cmon-04'. [2016-11-01 16:14:53 -0400] warning/ApiListener: Ignoring config update for zone 'global-templates' because we have an authoritative version of the zone's config. [2016-11-01 16:14:53 -0400] warning/ApiListener: Ignoring config update for zone 'master' because we have an authoritative version of the zone's config.

There is no log in cmon-03, but there is on cmon-04:

[root@cmon-04 icinga2]# ll /var/lib/icinga2/api/log/
total 548
-rw-r--r-- 1 icinga icinga 553203 Nov  1 12:00 1478016053
-rw-r--r-- 1 icinga icinga      0 Nov  1 12:00 1478016054
-rw-r--r-- 1 icinga icinga      0 Nov  1 12:00 1478016056
-rw-r--r-- 1 icinga icinga      0 Nov  1 12:00 1478016057
-rw-r--r-- 1 icinga icinga      0 Nov  1 12:01 1478016116
-rw-r--r-- 1 icinga icinga   2655 Nov  1 12:15 1478016902
[.... more 0 files...]

Even removing those and restarting, doesn't change the web view, checks seem to be running fine, but if/when the main master fails, I want to be able to rely in the other one at the same level.

I'm sorry if this are too much of a newbie question and thanks in advance any help you can provide.
Best,
j
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to