Page 1 of 1

Connect an installed NLS instance to an existing cluster?

Posted: Fri Aug 21, 2020 9:29 pm
by stooge
Once Nagios Log Server has been installed on a device, not connected to a cluster, can it then be joined to a cluster? I haven't seen a configuration option to do that. When I first installed NLS and accessed it using a browser, I was given the option to install or connect. I chose to install, but now I would like to connect it to a cluster. How can I do this?

Re: Connect an installed NLS instance to an existing cluster

Posted: Mon Aug 24, 2020 11:05 am
by scottwilkerson
This is not recommended but can be accomplished by performing the following on the new instance (data on the existing new instance will be lost)
Stop elasticsearch

Code: Select all

systemctl stop elasticsearch
edit /usr/local/nagioslogserver/var/cluster_uuid to contain the cluster ID fro the existing cluster (found on upper right Admin -> Cluster Status)

edit /usr/local/nagioslogserver/var/cluster_hosts to contain the IP of the other nodes in the cluster (one per line

Then, restart elasticsearch

Code: Select all

systemctl start elasticsearch
this should make the new instance join the existing cluster