Hi,
i am sorry to create a new Thread on this, but i cant find anything very usefull for my problem at all. Maybe many threats would have helped.. but im Searching for a solution since 4 hours and i do not really find anything Helpfull.
I set up a Icinga2 server (with Ubuntu) where i use Icingaweb2 with this "Icinga-Director" Module because that idea sounds awesome... the problem i have is that my XXXMON001 Monitoring-Server can actually ping the other server, but the service i added for the Diskinformation is not working, like its written in the Subject above or as you can see in the Host.png in the Attachements:
QuoteRemote Icinga instance 'Hostname' is not connected to 'MonitoringServerName'
I added that WindowsServer by installing the .exe on it. Since at first the Manual installation did not work i used the Powershell Script.. after that worked i used the Manual installation again (because i tought it actually installs a Basic Services that you normally Monitor, like Load, Diskspace etc.
I think that i more or less already know where the Problem is, when i put this global zone "director-global" into the zones.conf i get errors when i restart the icinga2 daemon.
Thats my zones.conf:
i Changed that manually, before it looked like this, even tough i used that Mastersetup on the Server:
And this is the error out of the " /var/log/icinga2/startup.log ":
- information/cli: Icinga application loader (version: r2.7.0-1)
- information/cli: Loading configuration file(s).
- critical/config: Error: Object 'director-global' of type 'Zone' re-defined: in /etc/icinga2/zones.conf: 14:1-14:29; previous definition: in /etc/icinga2/zones.conf: 10:1-10:29
- Location: in /etc/icinga2/zones.conf: 14:1-14:29
- /etc/icinga2/zones.conf(12): }
- /etc/icinga2/zones.conf(13):
- /etc/icinga2/zones.conf(14): object Zone "director-global" {
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- /etc/icinga2/zones.conf(15): global = true
- /etc/icinga2/zones.conf(16): }
I am also not sure about those zone and node things in general, in the "constants.conf" both have my machines hostname:
- /**
- * 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 = "XXXMON001"
- /* Our local zone name. */
- const ZoneName = "XXXMON001"
- /* Secret key for remote node tickets */
- const TicketSalt = "Notforyoureyes=)"
Somebody has an idea what i am doing wrong?