Page 1 of 1

Clustering of two Nagios Log Server

Posted: Tue Dec 18, 2018 10:19 am
by floki
Hi guys, is it possible to cluster two existing Nagios Log Server? Note that our servers are licensed. Thanks a lot :D

Re: Clustering of two Nagios Log Server

Posted: Wed Dec 19, 2018 10:01 am
by cdienger
Unfortunately there isn't a good way to merge two existing clusters.

Re: Clustering of two Nagios Log Server

Posted: Sun Dec 23, 2018 10:57 pm
by floki
hmmm I found this guide:
Re-clustering Procedure:

1. Stop Elasticsearch
2. Edit /usr/local/nagioslogserver/var/cluster_uuid
2.1. Enter the cluster_ID of the Primary Nagios Log Server
3. /usr/local/nagioslogserver/var/cluster_hosts
3.1. Enter the IP address of the Primary Nagios log Server
4. Both servers must have the same node_uuid
5. Start Elasticsearch

is this possible?

Re: Clustering of two Nagios Log Server

Posted: Wed Dec 26, 2018 10:56 am
by mcapra
Add a "step 1.5" to wipe all existing ElasticSearch data and cluster state, and it *MIGHT* work.

Trying to join 2 individual ElasticSearch nodes with individual data and cluster state into a 2-node cluster doesn't generally work out well. Particularly with each individual node likely sharing index names. It's really much easier to just start from scratch (by joining a "clean" node to one of your existing nodes) if you don't have data to preserve. If you do have data to preserve, you'd need to dump it and "re-send" it to the newly created ElasticSearch cluster. I'd think this could be accomplished via the snapshots and maintenance section by physically moving the Curator snapshots, though I am unsure of the level of official support for such work.

Re: Clustering of two Nagios Log Server

Posted: Wed Dec 26, 2018 2:25 pm
by cdienger
We don't have any official documented way to merge, but using snapshots may do the trick and be most straight forward. I'm not aware of anyone that's used them to merge so I'll look into it and do some testing on my end and let you know what we find.

Re: Clustering of two Nagios Log Server

Posted: Sat Dec 29, 2018 10:18 pm
by floki
oh thanks :) please let me know the results, though we don't need to keep the data right now since these is a new setup for production. The guy before me just installed them separately which is supposed to be clustered :lol:

Re: Clustering of two Nagios Log Server

Posted: Wed Jan 02, 2019 11:17 am
by cdienger
Using the snapshot method didn't work out since it will complain about the other existing indices with the same name.

Since data retention isn't an issue, I would go the route of installing NLS on a new instance and then joining it to the other machine to form a cluster.

Re: Clustering of two Nagios Log Server

Posted: Thu Jan 03, 2019 8:12 pm
by floki
Yeah, I think that would be the best option to cluster