Hey guys,
Great site and software suite you have, and apologies for sharing my burden with you.
I've currently got a single Icinga2 master up and running, and I've been adding my Windows Server 2012 R2 hosts in via the Agent Wizard. I also wanted to monitor the small amount of Ubuntu hosts I have, so I ran through the `icinga2 node wizard` process.
What is odd, is that the process runs through fine (requests certs, stores them, etc.) and ends with the following lines:
- Accept commands from master? [y/N]: y
- information/cli: Disabling the Notification feature.
- Disabling feature notification. Make sure to restart Icinga 2 for these changes to take effect.
- information/cli: Enabling the Apilistener feature.
- Enabling feature api. Make sure to restart Icinga 2 for these changes to take effect.
- information/cli: Created backup file '/etc/icinga2/features-available/api.conf.orig'.
- information/cli: Generating local zones.conf.
- information/cli: Dumping config items to file '/etc/icinga2/zones.conf'.
- information/cli: Created backup file '/etc/icinga2/zones.conf.orig'.
- information/cli: Updating constants.conf.
- information/cli: Created backup file '/etc/icinga2/constants.conf.orig'.
- information/cli: Updating constants file '/etc/icinga2/constants.conf'.
- information/cli: Updating constants file '/etc/icinga2/constants.conf'.
- Done.
- Now restart your Icinga 2 daemon to finish the installation!
So, if I `sudo service icinga2 restart` (tried on both the satellite and the master), the master never gets this new satellite in its `icinga2 node list`.
Config on the new satellites looks fine too, so I'm scratching my head. I even tried using the `node wizard` on a Windows host and I had the same end result.
The configs on the newly configured satellites look exactly like a working one:
- zones.conf
- /*
- * Generated by Icinga 2 node setup commands
- * on 2016-07-06 21:54:08 +0100
- */
- object Endpoint "bgs-icinga01" {
- host = "bgs-icinga01";
- port = "5665";
- }
- object Zone "master" {
- endpoints = [ "bgs-icinga01" ];
- }
- object Endpoint NodeName {
- }
- object Zone ZoneName {
- endpoints = [ NodeName ];
- parent = "master";
- }
- constants.conf
- /**
- * This file defines global constants which can be used in
- * the other configuration files.
- */
- /* The directory which contains the plugins from the Monitoring Plugins project. */
- const PluginDir = "/usr/lib/nagios/plugins"
- /* The directory which contains the Manubulon plugins.
- * Check the documentation, chapter "SNMP Manubulon Plugin Check Commands", for details.
- */
- const ManubulonPluginDir = "/usr/lib/nagios/plugins"
- /* The directory which you use to store additional plugins which ITL provides user contributed command definitions for.
- * Check the documentation, chapter "Plugins Contribution", for details.
- */
- const PluginContribDir = "/usr/lib/nagios/plugins"
- /* Our local instance name. By default this is the server's hostname as returned by `hostname --fqdn`.
- * This should be the common name from the API certificate.
- */
- const NodeName = "BGS-GRAFANA01"
- /* Our local zone name. */
- const ZoneName = "BGS-GRAFANA01"
- /* Secret key for remote node tickets */
- const TicketSalt = ""
Any ideas? Is there a way to get some verbose output?
Thanks again!