Connect an installed NLS instance to an existing cluster?
Connect an installed NLS instance to an existing cluster?
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?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Connect an installed NLS instance to an existing cluster
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
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
this should make the new instance join the existing cluster
Stop elasticsearch
Code: Select all
systemctl stop elasticsearchedit /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