Remove log server instance?

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
pwoolford
Posts: 2
Joined: Wed Dec 28, 2016 6:37 pm

Remove log server instance?

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Remove log server instance?

Post 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.
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
pwoolford
Posts: 2
Joined: Wed Dec 28, 2016 6:37 pm

Re: Remove log server instance?

Post by pwoolford »

Thanks! I hadn't shut down the old instance yet so the remove option wasn't there.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Remove log server instance?

Post by dwhitfield »

It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
judge01
Posts: 33
Joined: Sun Dec 04, 2016 9:16 pm

Re: Remove log server instance?

Post 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?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Remove log server instance?

Post 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.
Former Nagios Employee
judge01
Posts: 33
Joined: Sun Dec 04, 2016 9:16 pm

Re: Remove log server instance?

Post by judge01 »

Thank you and my apologies. will do that next time. Again, thank you so much.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Remove log server instance?

Post by mcapra »

Sure thing! Did you have additional questions regarding this issue?
Former Nagios employee
https://www.mcapra.com/
Locked