Adding, pre-configured NLS instances to a cluster

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
technosol
Posts: 36
Joined: Mon May 07, 2018 11:46 am

Adding, pre-configured NLS instances to a cluster

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked