Moving a node to a new server

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
CameronWP
Posts: 134
Joined: Fri Apr 17, 2015 2:17 pm

Moving a node to a new server

Post by CameronWP »

Hello:

I am looking for documentation on how to move Log Server to a new server. I am looking to move the historical data as well. I have tried and currently am receiving the error:

Code: Select all

:message=>"Got error to send bulk of actions: None of the configured nodes are available: []", :level=>:error}
{:timestamp=>"2017-01-12T01:56:26.655000-0500", :message=>"Failed to flush outgoing items", :outgoing_count=>50, :exception=>org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []
I tried updating the ClusterID in the conf files and restarting the services but it hasn't made a difference.

Thanks!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Moving a node to a new server

Post by mcapra »

A very important question: How many nodes exist in your current cluster?

If this a 2+ node environment, it's much more efficient to just power down the old node then spin up a fresh instance of Nagios Log Server and add it to the existing cluster.
I tried updating the ClusterID in the conf files and restarting the services but it hasn't made a difference.
Before I offer any insights, can you tell me exactly which sections of which files you modified?
Former Nagios employee
https://www.mcapra.com/
CameronWP
Posts: 134
Joined: Fri Apr 17, 2015 2:17 pm

Re: Moving a node to a new server

Post by CameronWP »

Hi:

It appears it was a permission issue with the initial issue I was having. Everything seems happy now other than two issues:

1) None of my hosts can report in. I have confirmed that the ports are listening:

tcp 0 0 0.0.0.0:5544 0.0.0.0:* LISTEN off (0.00/0/0)
udp 0 0 0.0.0.0:5544 0.0.0.0:*

[root@nagios ~]# netstat -ona |grep 3515
tcp 0 0 0.0.0.0:3515 0.0.0.0:* LISTEN off (0.00/0/0)

My logs are empty and the system status is reporting as green check marks.

2) None of my events in my indexes from before are appearing.

Thanks!
CameronWP
Posts: 134
Joined: Fri Apr 17, 2015 2:17 pm

Re: Moving a node to a new server

Post by CameronWP »

mcapra wrote:A very important question: How many nodes exist in your current cluster?

If this a 2+ node environment, it's much more efficient to just power down the old node then spin up a fresh instance of Nagios Log Server and add it to the existing cluster.
I tried updating the ClusterID in the conf files and restarting the services but it hasn't made a difference.
Before I offer any insights, can you tell me exactly which sections of which files you modified?
I'd found a previous article talking about how the cluster_id must match in the conf file and mine did not match. This was the link: https://support.nagios.com/forum/viewto ... 38&t=33950
CameronWP
Posts: 134
Joined: Fri Apr 17, 2015 2:17 pm

Re: Moving a node to a new server

Post by CameronWP »

Hi:

My old logs are appearing now but my reporting hosts is still locked at 2 although there should be about 80 listed.

Thanks!
CameronWP
Posts: 134
Joined: Fri Apr 17, 2015 2:17 pm

Re: Moving a node to a new server

Post by CameronWP »

Hi:

It appears I just didn't wait long enough. :roll: Bit embarrassing but I am fully in business now. Thanks!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Moving a node to a new server

Post by mcapra »

Awesome! Did you have additional questions regarding this issue, or can we close this thread and mark the issue as resolved?

We can also leave this thread open if you would like to wait a bit and make sure the machine is rock-solid.
Former Nagios employee
https://www.mcapra.com/
Locked