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!!


2014-07-07 13:03 GMT+02:00 Michael Friedrich <[email protected]>:
On 07.07.2014 12:11, Alfonso Pace wrote:
Hi,
I have configured my Icinga in cluster mode but I have an error and I
can't undestand where is the problem...
The error is the follow:
tail /var/log/icinga2/startup.log
[2014-07-07 07:03:40 -0400] information/ConfigItem: Checked 2 HostGroup(s).
[2014-07-07 07:03:40 -0400] information/ConfigItem: Checked 3
ServiceGroup(s).
[2014-07-07 07:03:40 -0400] information/ConfigItem: Checked 1 Host(s).
[2014-07-07 07:03:40 -0400] information/ConfigItem: Checked 10 Service(s).
[2014-07-07 07:03:40 -0400] information/ConfigItem: Checked 1 User(s).
[2014-07-07 07:03:40 -0400] information/ConfigItem: Checked 11
Notification(s).
[2014-07-07 07:03:40 -0400] information/ConfigItem: Checked 1
ScheduledDowntime(s).
[2014-07-07 07:03:40 -0400] information/ConfigItem: Checked 1 UserGroup(s).
[2014-07-07 07:03:40 -0400] information/ConfigItem: Checked 1
IcingaApplication(s).
[2014-07-07 07:03:40 -0400] critical/icinga-app: The daemon could not be
started. See logfile for details.

I looked the /var/log/icinga2/error.log config and there is the information:
  tail /var/log/icinga2/error.log
         (11) libbase.so: icinga::WorkQueue::WorkerThreadProc() (+0x56f)
[0x3e63f160bf] (??:0)
         (12) libboost_thread-mt.so.5: thread_proxy (+0x77)
[0x3e62e0ad47] (??:0)
         (13) /lib64/libpthread.so.0() [0x3a368079d1]
         (14) libc.so.6: clone (+0x6d) [0x3a364e8b5d] (??:0)

***
* This would indicate a runtime problem or configuration error. If you
believe this is a bug in Icinga 2
* please submit a bug report at https://dev.icinga.org/ and include this
stack trace as well as any other
* information that might be useful in order to reproduce this problem.
***

I created configuration using this paragraph:
http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/monitoring-remote-systems#distributed-monitoring-high-availability

I setting in my master machine the hostname icinga2a and the zone.
In zones.conf i have setted the remote icinga slave and the zone checker.
I created the certificates using the command for my 2 installation.
In my environment I have 2 machine in the same network:
1 icinga installation for the master (1 machine)
1 icinga installation for the slave (1 machine)

You have to copy the certificates in the slave machine? In the slave
machinemust replicate the configuration file zones.conf?

I want to see YOUR configuration. I am aware of the documentation, I
partially wrote it.







2014-07-06 15:35 GMT+02:00 Michael Friedrich
<[email protected] <mailto:[email protected]>>:

    On 30.06.2014 10:09, Alfonso Pace wrote:
    Hello everyone, I have a problem with the configuration of icinga
    2 cluster.
    I would like to install a master server (NOC) and a slave that
    sends the information to the master node. What should be set on
    the master node? What values ​​do I put in and what constants.cfg
    in zones.cfg?
    I need to create certificates only on the master or the slave?
    Someone could tell me the detailed procedure please?
    Once you have configured both servers to the distributed mode and
    then creating a noc where I have to save the configuration file
    for the check? Should be placed on the central server (Master NOC)
    that will send them to the various zones or servers should be
    placed in individual zones?
    Can anyone help me?
    Thanks in advance!

    That's why too much questions.

    First off, you should consider reading the documentation and setup
    your certificate chain. Then get an idea about the scenario (one
    config master, and a remote satellite). Once you've drawn a plan,
    create the zone and endpoint configuration based on that. Bring up
    the 2 nodes (2 local test vms could help).

    If the cluster handshake works, verify how to add additional
    configuration for synchronisation.


    --
    --
    ATTENTION: Privacy Policy – D.L.gs 196/2003
    The information contained in this email message are of a private
    and confidential nature and are exclusively addressed to the
    person indicated above. In case you have received this email in
    error, we comunicate to you that by Law, it is forbidden for
    another person to use, make known, distribute or copy  the
    contents. You are asked to report it immediately, replying to the
    sender and destroying the contents (including any attached files)
    without making a copy or reading the contents. The message and the
    attachments are protected and scanned with an antivirus protection


    _______________________________________________
    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]
    <mailto:[email protected]>

    ** Open Source Backup Conference 2014 - September - osbconf.org
    <http://osbconf.org> **
    ** Puppet Camp Duesseldorf 2014 - Oktober - netways.de/puppetcamp
    <http://netways.de/puppetcamp> **
    ** OSMC 2014 - November - netways.de/osmc <http://netways.de/osmc> **
    ** OpenNebula Conf 2014 - Dezember - opennebulaconf.com
    <http://opennebulaconf.com> **

    _______________________________________________
    icinga-users mailing list
    [email protected] <mailto:[email protected]>
    https://lists.icinga.org/mailman/listinfo/icinga-users




--
--
ATTENTION: Privacy Policy – D.L.gs <http://D.L.gs> 196/2003
The information contained in this email message are of a private and
confidential nature and are exclusively addressed to the person
indicated above. In case you have received this email in error, we
comunicate to you that by Law, it is forbidden for another person to
use, make known, distribute or copy  the contents. You are asked to
report it immediately, replying to the sender and destroying the
contents (including any attached files) without making a copy or reading
the contents. The message and the attachments are protected and scanned
with an antivirus protection


_______________________________________________
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



--
--
ATTENTION: Privacy Policy – D.L.gs 196/2003
The information contained in this email message are of a private and confidential nature and are exclusively addressed to the person indicated above. In case you have received this email in error, we comunicate to you that by Law, it is forbidden for another person to use, make known, distribute or copy  the contents. You are asked to report it immediately, replying to the sender and destroying the contents (including any attached files) without making a copy or reading the contents. The message and the attachments are protected and scanned with an antivirus protection


_______________________________________________
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

Reply via email to