Page 1 of 1

Adding, pre-configured NLS instances to a cluster

Posted: Mon Aug 13, 2018 8:39 am
by technosol
Hi,

I have 4 NLS instances configured. 2 of them are in a cluster and the other two are individual instances.

Instance 1 and 2 --> clustered

Instance 3 - Single instance - installed and configured as a single node
Instance 4 - Single instance - installed and configured as a single node

I want to add 4th NLS instance to the cluster. How can I do that?

I have found a guide; https://assets.nagios.com/downloads/nag ... luster.pdf
But this guide is just for adding a new node to the cluster. (during the installation process we can add it to the cluster)

My requirement is; adding pre-tested/configured NLS instance to an existing cluster.

Thank you.

Re: Adding, pre-configured NLS instances to a cluster

Posted: Mon Aug 13, 2018 1:14 pm
by scottwilkerson
You cannot merge settings and logs from one Instance into an existing cluster.

You can make the Instance join the cluster with the following procedure, but any "configuration" you did to the instance will be lost as it stores the config information in the cluster itself..

To to this stop elasticsearch

Code: Select all

service elasticsearch stop
edit /usr/local/nagioslogserver/var/cluster_uuid and enter the cluster ID of the cluster to join

Edit /usr/local/nagioslogserver/var/cluster_hosts and enter at least one of the IP addresses in the active cluster, removing all others (besided this hosts IP)

start elasticsearch

Code: Select all

service elasticsearch start