Hi guys, Today I setup an icinga cluster consisting of one master and one satellite according to the guide in the official documentation [0].
I got through the steps alright and both nodes are up and running but I've got a problem with the configuration of the zones. I've got the host files for both zones in their respective directories, like below: - icinga2 -- zones.d ---- icinga2a ---- | hosts.conf ---- icinga2b ---- | hosts.conf I can see all defined servers from both config files in the icingaweb2 interface of the master, however, they're all in the "PENDING" state. Interestingly enough, according to the Plugin Output the checks were executed as they have statuses such as "CRITICAL - Host Unreachable" or "PING OK - Packet loss = 0%, RTA = 0.41 ms". In the icinga2.log of icinga2a, I can see that the syncing works as expected, but on the icinga2b web interface, there's only the cluster monitoring active, as defined in cluster/icinga2b.conf. *icinga2.log from icinga2a* [2015-09-25 16:46:49 +0200] information/Application: Got reload command: Starting new instance. [2015-09-25 16:46:50 +0200] information/Application: Received request to shut down. [2015-09-25 16:46:50 +0200] information/Application: Shutting down... [2015-09-25 16:46:50 +0200] information/CheckerComponent: Checker stopped. [2015-09-25 16:46:50 +0200] information/DbConnection: Pausing IDO connection: ido-mysql [2015-09-25 16:46:50 +0200] information/ApiClient: Reconnecting to API endpoint 'icinga2b' via host '10.132.0.92' and port '5665' [2015-09-25 16:46:50 +0200] information/IdoMysqlConnection: MySQL IDO instance id: 1 (schema version: '1.13.0') [2015-09-25 16:46:50 +0200] information/ConfigItem: Activated all objects. [2015-09-25 16:46:50 +0200] information/ApiListener: New client connection for identity 'icinga2b' [2015-09-25 16:46:50 +0200] information/ApiListener: Syncing global zone 'global-templates'. I was curious to what was in the satelites log files, so I had a peak: *icinga2.log from icinga2b* [2015-09-25 18:58:17 +0200] information/Application: Received request to shut down. [2015-09-25 18:58:17 +0200] information/Application: Shutting down... [2015-09-25 18:58:17 +0200] information/CheckerComponent: Checker stopped. [2015-09-25 18:58:17 +0200] information/DbConnection: Pausing IDO connection: ido-mysql [2015-09-25 18:58:17 +0200] information/IdoMysqlConnection: MySQL IDO instance id: 1 (schema version: '1.13.0') [2015-09-25 18:58:17 +0200] information/ConfigItem: Activated all objects. [2015-09-25 18:58:17 +0200] information/ApiListener: New client connection for identity 'icinga2a' [2015-09-25 18:58:17 +0200] warning/ApiListener: *Ignoring config update for zone 'icinga2b' because we have an authoritative version of the zone's config*. [2015-09-25 19:00:10 +0200] warning/ApiClient: Error while sending JSON-RPC message for identity 'icinga2a' [2015-09-25 19:00:10 +0200] warning/ApiClient: API client disconnected for identity 'icinga2a' [2015-09-25 19:00:10 +0200] warning/ApiListener: Removing API client for endpoint 'icinga2a'. 0 API clients left. [2015-09-25 19:00:10 +0200] warning/ApiClient: Error while sending JSON-RPC message for identity 'icinga2a' [2015-09-25 19:00:10 +0200] warning/ApiClient: API client disconnected for identity 'icinga2a' [2015-09-25 19:00:10 +0200] warning/ApiListener: Removing API client for endpoint 'icinga2a'. 0 API clients left. [2015-09-25 19:00:12 +0200] information/ApiClient: Reconnecting to API endpoint 'icinga2a' via host '10.131.237.244' and port '5665' [2015-09-25 19:00:36 +0200] information/ApiListener: New client connection for identity 'icinga2a' [2015-09-25 19:00:36 +0200] warning/ApiListener: Ignoring config update for zone 'icinga2b' because we have an authoritative version of the zone's config. >From the line in bold I understand the mechanism is working as expected but this makes me wonder if the hosts the satelite is responsible for need to be configured in zones.d/icinga2a/hosts.conf instead. I did try to merge the two files but it didn't have the desired effect. My questions are the following ones: 1. Why are the checks in "PENDING" state allthough they seemed to have been executed? 2. Where are the satelites host config supposed to be saved? >From the google searches, documentation and Redmine trackers I wasn't able to completely answer the questions. I'm very grateful for hints, links and explanations in advance. Cheers, Nicolas [0] https://wiki.icinga.org/display/howtos/Icinga2+Distributed+Cluster+Install+with+CentOS+6 -- Freundliche GrĂ¼sse, Nicolas Odermatt
_______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
