Page 1 of 1
Remove log server instance?
Posted: Tue Jan 03, 2017 10:28 am
by pwoolford
I'm running a demo of Log Server and so far things are working great. I'm planning to go live with 2 instances but in my testing I currently have 3 servers in the cluster. I cannot figure out how to remove a log server instance from the cluster. Seems like a simple task but I can't find anything in the documentation or through searching. Is this possible to do?
Thanks in advance for any help.
Re: Remove log server instance?
Posted: Tue Jan 03, 2017 11:36 am
by mcapra
Decommissioning (or it it's a VM, deleting) the machine hosting the node is the easiest way.
I would suggest powering down the machine, allowing the system to quiesce, then removing the node from the "Instance Status" page in the GUI like so:
2017_01_03_10_36_21_Instance_Status_Nagios_Log_Server.png
As a note, if Elasticsearch remains installed+configured on the machine you're removing, it will attempt to rejoin the cluster if it's powered on again.
Re: Remove log server instance?
Posted: Wed Jan 04, 2017 7:37 am
by pwoolford
Thanks! I hadn't shut down the old instance yet so the remove option wasn't there.
Re: Remove log server instance?
Posted: Wed Jan 04, 2017 11:35 am
by dwhitfield
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
Re: Remove log server instance?
Posted: Mon Jan 30, 2017 2:52 am
by judge01
after powering the server off and removing the instance in the GUI, what needs to be done on the elasticsearch so that it dont try to connect to the cluster again? I need to remove 1 instance from the cluster and have it run as a standalone, is this possible? do i need to re-install NLS again?
Re: Remove log server instance?
Posted: Mon Jan 30, 2017 11:38 am
by rkennedy
judge01 wrote:after powering the server off and removing the instance in the GUI, what needs to be done on the elasticsearch so that it dont try to connect to the cluster again? I need to remove 1 instance from the cluster and have it run as a standalone, is this possible? do i need to re-install NLS again?
In the future, please create your own thread for this. If you'd like a single instance to run standalone then you'd need to reconfigure your elasticsearch.yml settings accordingly, and make sure your cluster_uuid / cluster_hosts are clean / seperate. The directory they're in are
/usr/local/nagioslogserver/var. Should you have problems, the fastest solution will be to reinstall.
Re: Remove log server instance?
Posted: Mon Jan 30, 2017 7:35 pm
by judge01
Thank you and my apologies. will do that next time. Again, thank you so much.
Re: Remove log server instance?
Posted: Tue Jan 31, 2017 11:17 am
by mcapra
Sure thing! Did you have additional questions regarding this issue?