KingOfHypocrites
KingOfHypocrites

Reputation: 9537

OpsCenter is having trouble connecting with the agents

I am trying to setup a two node cluster in Cassandra. I am able to get my nodes to connect fine as far as I can tell. When I run nodetool status it shows both my nodes in the same data center and same rack. I can also run cqlsh on either node and query data. The second node can see data from the first node, etc.

I have my first node as the seed node both in the Cassandra.yaml and the cluster config file.

To avoid any potential security issues, I flushed my iptable and allowed all on all ports for both nodes. They are also on the same virtual network.

iptables -P INPUT ACCEPT

When I start OpsCenter on either machine it sees both nodes but only has information on the node I am viewing OpsCenter on. It can tell if the other node is up/down, but I am not able to view any detailed information. It sometimes initially says 2 Agents Connected but after awhile it says 1 agent failed to connect. It keeps prompting me to install OpsCenter on the other node although it's already there.

The OpsCenterd.log doesn't reveal much. There don't appear to be any errors but I see INFO: Nodes with agents that appear to no longer be running .

I am not sure what else to check as everything but OpsCenter seems to be working fine.

Upvotes: 0

Views: 1307

Answers (1)

LHWizard
LHWizard

Reputation: 2379

You should install Opscenter on a single node rather than all nodes. The opscenter gui will then prompt you to install the agent on each of the nodes in the cluster. Use nodetool status or nodetool ring to make sure that the cluster is properly functioning and all nodes are Up and functioning Normally. (status = UN)

In address.yaml file you can set stomp_address equal to the ip address of the opscenter server to force the agents to the correct address.

Upvotes: 1

Related Questions