Deploying Agent to Support Actions using Control Center
Deploy a Component Agent for actions via Control Center after configuring Supervisor.
Prerequisites:
- Install and configure Supervisor.
- Create the component agent using the control center.
Refer to Configuring Agents in the Administration Guide.
Follow the below steps to deploy an agent to support actions using the control center:
1. Create a base folder for the agents in the required directory on the target server as below.
/home/appuser/HealAgents/
You should configure this directory in the Supervisor which will be considered the path for all the agents.
2. Create a folder for the Component Agent under the base folder created in the previous step.
Execute the below command:
Execute select name from appsone.mst_sub_type where mst_type_id=1; query
This gives you the list of names for agents.
ii) Keep the folder name for the agent as retrieved using the above query.
Pick the name as per the agent being configured. In this case, we need to use 'ComponentAgent'.
iii) Create a folder, 'ComponentAgent', in the home/appuser/HealAgents/ location.
3. Extract the component agent build tar to the ComponentAgent folder.
The ComponentAgent folder gets created.
4. Identify the <physicalAgentIdentifier> to which the required Component Agent is mapped.
Create a folder structure as
/ComponentAgent/<physicalAgentIdentifier>/
<physicalAgentIdentifier> - Multiple agents of the same type or different types configured for the same host or different hosts can be mapped to either a single physicalAgentIdentifier or multiple physicalAgentIdentifiers.
This is applicable only when multiple log forwarder agent ids or component agent ids (for log KPIs) are mapped inside a log forwarder agent. Otherwise, there is a direct mapping between the agent ID and the physical agent ID.
Select identifier from appsone.physical_agent where id is in the below query to fetch the identifier from the Percona database.
select physical_agent_id from appsone.agent where host_address='<server_ip where agent is configured>' and name="<Component_Agent_name>";
It is used for agent health status data collection.
5. Create a folder in the below directory named as the <physicalAgentIdentifier> value obtained as per the previous step.
/home/appuser/HealAgents/ComponentAgent
For example:
/home/appuser/HealAgents/ComponentAgent/Physical-CA-Node1
6. Copy all the files inside the Component Agent folder to the folder created.
7. Inside the below directory, install the component agent.
<path to agents>/ComponentAgent/physicalAgentIdentifier
This folder will contain the files and folders related to the component agent build.