If you installed OpsCenter on a cluster node using a package, you can deploy agents on other supported CentOS, Debian, OEL, RHEL, or Ubuntu nodes.
Use this method to deploy the agents:
Because this method uses the agent packages, it requires sudo access. After installation, the agent runs as a service that starts when the machine boots up and restarts automatically.
To install agents in packaged installations:
On the OpsCenter machine, go to the opscenter directory:
$ cd /usr/share/opscenter
Copy the agent software to the home directory in your cluster node. For example:
$ scp agent.tar.gz <user>@<node_IP>:~/
Log in to the node, go to the home directory, and unpack it. For example:
$ ssh <user>@<node_IP>
$ cd ~/
$ tar -xzf agent.tar.gz
The binary package creates and agent directory containing the installation files.
If you have sudo access, installing the agent using the package is recommended:
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
Install the agent:
RHELCentOS: sudo bin/install_agent.sh opscenter-agent.rpm <opscenter_host>
DebianUbuntu: sudo bin/install_agent.sh opscenter-agent.deb <opscenter_host>
Note
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.
If you do not have sudo access:
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
Run the setup command and install the agent:
$ bin/setup <opscenter_host>
Note
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)
Open a browser window and go to the OpsCenter console URL at http://<opscenter_host>:8888. For example:
http://110.123.4.5:8888