When you install OpsCenter using a tarball distribution, the agent for that OpsCenter is installed automatically as part of the OpsCenter installation process. You can manually install agents on other nodes running tarball installations of Cassandra or DataStax Enterprise clusters. Use the agent.tar.gz file to manually deploy the agents to multiple nodes in a cluster. This file is installed in the OpsCenter installation folder after you start OpsCenter.
To install agents in a tarball installation:
Copy the agent tar file from your existing OpsCenter installation directory to your cluster node. For example, to copy to the install location:
$ cd <install_location> $ scp agent.tar.gz <user>@<node_IP>:/<install_location>
Log in to the node, copy the agent.tar.gz file to the desired location, and unpack it. For example:
$ ssh user@<node_IP> $ cd <install_location> $ tar -xzf agent.tar.gz
The binary package creates and agent directory containing the installation files.
Configure and start the agent:
If needed get the IP address of the OpsCenter host. On the node containing the OpsCenter:
$ hostname -i
On the node where you are installing the agent, go to the agent directory:
$ cd agent $ bin/setup <opscenter_host>
Generally the agent can detect the listener IP address for the node, which is the IP address displayed for node by running nodetool ring -h localhost. If needed, add <node_listen_address> to the above command.
Start the OpsCenter agent:
$ bin/opscenter-agent (in the background - default)
$ bin/opscenter-agent -f (in the foreground)