remove instance from cluster nls 2.0

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

remove instance from cluster nls 2.0

Post by benhank »

How do I remove a server/ instance in nls 2.0?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: remove instance from cluster nls 2.0

Post by scottwilkerson »

just shut off elasticsearch on that instance
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: remove instance from cluster nls 2.0

Post by npolovenko »

Hello, @benhank.If you go to the admin menu and then open the Instance Status menu you'll be able to remove an instance by clicking on the "trash" icon in the actions table.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: remove instance from cluster nls 2.0

Post by benhank »

A little explanation.
We have a single install of NLS on one server.
i then installed NLS on a test server and connected it to the production server.
now that the server is nice and replicated, i want to remove the test server from the cluster which allows me to have a pool of data to test stuff with.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: remove instance from cluster nls 2.0

Post by scottwilkerson »

ok, if you want this to disconnect and then not re-connect to the cluster, do the following on the test system and the live system
stop elasticsearch on both systems

Code: Select all

service elasticsearch stop
edit /usr/local/nagioslogserver/var/cluster_hosts on both systems to ONLY include the IP of the machine you are working on.

start elasticsearch on both systems

Code: Select all

service elasticsearch start
They should not re-join each other
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: remove instance from cluster nls 2.0

Post by benhank »

Scott your like e.f. hutton man. when you talk I listen!
These youngins dont know about ef man...=D
lock er up and thanks!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Locked