Hello,
We had a network shortage and now the two Log Server instance don't see each other anymore:
How can we fix this?
Instances don't see each other or sync
Instances don't see each other or sync
You do not have the required permissions to view the files attached to this post.
Re: Instances don't see each other or sync
Just to check the obvious, from each machine can you ping the other one?
What is the output of these commands? cat /usr/local/nagioslogserver/var/cluster_hosts curl -XGET 'http://localhost:9200/_cluster/health?pretty=true' and curl 'localhost:9200/_cat/nodes?v'?
What is the output of these commands? cat /usr/local/nagioslogserver/var/cluster_hosts curl -XGET 'http://localhost:9200/_cluster/health?pretty=true' and curl 'localhost:9200/_cat/nodes?v'?
Former Nagios Employee
Re: Instances don't see each other or sync
Yes, they ping each other. This is the result in one instance:
And in the other:
Code: Select all
[root@sa585 vmesquita]# cat /usr/local/nagioslogserver/var/cluster_hosts | curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
{
"cluster_name" : "155bf3a6-eb50-41aa-8f41-112a4db21fc6",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 1076,
"active_shards" : 1076,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 1076,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0
}
[root@sa585 vmesquita]# curl 'localhost:9200/_cat/nodes?v'
host ip heap.percent ram.percent load node.role master name
sa585 172.27.164.109 66 66 0.17 d * 6a7ce4ea-e1b9-47a1-af18-1c4d47243d20
Code: Select all
[root@sb585 vmesquita]# cat /usr/local/nagioslogserver/var/cluster_hosts | curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
{
"cluster_name" : "155bf3a6-eb50-41aa-8f41-112a4db21fc6",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 1076,
"active_shards" : 1076,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 1076,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0
}
[root@sb585 vmesquita]# curl 'localhost:9200/_cat/nodes?v'
host ip heap.percent ram.percent load node.role master name
sb585 172.27.36.109 23 73 0.27 d * 636f559a-1fd5-4158-9dee-92e1a8403a1e
Re: Instances don't see each other or sync
Can you run this on both nodes? It looks like you piped it in to curl, so we didn't get the actual output of the command.
Code: Select all
cat /usr/local/nagioslogserver/var/cluster_hostsFormer Nagios Employee.
me.
me.
Re: Instances don't see each other or sync
ok:
and
Code: Select all
[root@sa585 tmp]# cat /usr/local/nagioslogserver/var/cluster_hosts
localhost
sb585.selic.bc
172.27.36.109
172.27.164.109
Code: Select all
[root@sb585 nagioslogserver]# cat /usr/local/nagioslogserver/var/cluster_hosts
172.27.164.109
172.27.36.109
Re: Instances don't see each other or sync
These should match. Make sure you add
to the second one. Or take away nodes that are not actually part of the cluster in that file.
Code: Select all
localhost
sb585.selic.bcFormer Nagios Employee.
me.
me.