7.2. Removing an Agent
7.2.1. Removing an Agent from a Managed Platform
- Stop the agent service.
- Delete the agent from JBoss ON topology.
- In the JBoss ON UI, click the Administration tab in the top menu.
- In the Topology section in the left menu, select the Agents item.
- Select the row for the agent to delete, in the list of installed agents.
- Click the Delete button at the bottom of the page.
- Confirm that the agent should be deleted.
- If the agent was configured as a system service, remove the associated files. On Windows, this can be done with the rhq-agent.bat remove command. On Linux, this means removing the
init.d/
file and updating chkconfig. - Remove the agent installation directory.
7.2.2. Removing an Agent on a JBoss ON Server Machine
- Stop the agent service.
[root@server ~]# serverRoot/jon-server-3.3.0.GA/bin/rhqctl.sh stop --agent
- Remove the agent.
[root@server ~]# serverRoot/jon-server-3.3.0.GA/bin/rhqctl remove --agent
- Delete the agent from JBoss ON topology.
- In the JBoss ON UI, click the Administration tab in the top menu.
- In the Topology section in the left menu, select the Agents item.
- Select the row for the agent to delete, in the list of installed agents.
- Click the Delete button at the bottom of the page.
- Confirm that the agent should be deleted.