|
On 07.07.2014 13:59, Alfonso Pace wrote:
My CONFIG is
- icinga2.conf
include "constants.conf"
include "zones.conf"
include <itl>
include <plugins>
include "features-enabled/*.conf"
include_recursive "conf.d"
Ok, standard default.
- constants.conf
const PluginDir = "/usr/lib64/nagios/plugins"
const NodeName = "icinga2a"
const ZoneName = "config-ha-master"
And the one on your secondary icinga2b host looks like?
- zones.conf
object Endpoint NodeName {
host = NodeName
}
object Endpoint "icinga2b" {
host = "icinga2b"
}
object Zone ZoneName {
endpoints = [ NodeName ]
}
object Zone "check-satellite" {
endpoints = [ "icinga2b" ]
parent = ZoneName
}
object Zone "global-templates" {
global = true
}
Same - the one on the secondary host looks like?
The CA is located in /root/icinga2/ and the file api.conf is the follow:
object ApiListener "api" {
cert_path = SysconfDir + "/icinga2/pki/" + NodeName + ".crt"
key_path = SysconfDir + "/icinga2/pki/" + NodeName + ".key"
ca_path = SysconfDir + "/icinga2/pki/ca.crt"
accept_config=true
}
# ls -la /etc/icinga2/pki/
I attach my conf file. In another link I found this:
library "cluster"
object ClusterListener "cluster" {
ca_path = "/etc/icinga2/ca/ca.crt"
cert_path = "/etc/icinga2/ca/icinga-node-1.crt"
key_path = "/etc/icinga2/ca/icinga-node-1.key"
bind_port = 8888
peers = [ "icinga-node-2" ]
}
Where should I put this setup? I have to create a file called cluster.conf?
That's
outdated and does not work with 2.0.0. Where did you find that? It's not in the official documentation which will *always* reflect the latest and greatest supported stuff. I wouldn't trust the internet that much, if a project provides valuable documentation.
And if there is something unclear, help make it better, or even tell about it.
Thank's in advance for your precious help!!
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users
--
Michael Friedrich, DI (FH)
Application Developer
NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | [email protected]
** Open Source Backup Conference 2014 - September - osbconf.org **
** Puppet Camp Duesseldorf 2014 - Oktober - netways.de/puppetcamp **
** OSMC 2014 - November - netways.de/osmc **
** OpenNebula Conf 2014 - Dezember - opennebulaconf.com **
|
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users