Connect an installed NLS instance to an existing cluster?

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
stooge
Posts: 12
Joined: Fri Jul 31, 2020 12:17 pm

Connect an installed NLS instance to an existing cluster?

Post 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?
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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked