Installing and Configuring the Cisco AppDynamics Smart Agent and Machine Agent on Ubuntu Linux"
Download The Smart Agent from
Go to download.appdynamics.com
Click on the dropdown 'Type'...
See more...
Installing and Configuring the Cisco AppDynamics Smart Agent and Machine Agent on Ubuntu Linux"
Download The Smart Agent from
Go to download.appdynamics.com
Click on the dropdown 'Type' and find AppDynamics Smart Agent for Linux ZIP You can curl the download as well to your Linux box.
AppDynamics Smart Agent requires pip3 to be present and appdsmartagent folder should be where we will install smart agent, So if you don’t have it. Please run the below-> mkdir /opt/appdynamics/appdsmartagent
sudo apt update
sudo apt install -y python3-pip
cd /opt/appdynamics/appdsmartagent
Once you have these setup, curl the Zip artifactory curl -L -O -H "Authorization: Bearer xxxxx.xxxx.xxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxx;" "https://download.appdynamics.com/download/prox/download-file/appdsmartagent/24.2.0.1472/appdsmartagent_64_linux_24.2.0.1472.zip"
Unzip the content and run install-script.sh, In this case unzip appdsmartagent_64_linux_24.2.0.1472.zip
unzip appdsmartagent_64_linux_24.2.0.1472.zip
Run the install script placed in the appdsmartagent folder ./install-script.sh
Add the configuration inside of /opt/appdynamics/appdsmartagent/config.ini vi /opt/appdynamics/appdsmartagent/config.ini
You are required to configure Smart Agents to register with the Controller.
Edit the /opt/appdynamics/appdsmartagent/config.ini file for the required Smart Agent configuration.
Ensure that you update the following parameters:
ControllerURL : The URL of the Controller on which you want to establish the connection with the Smart Agent.
ControllerPort :
FMServicePort: The port to which the Smart Agent connects to the FM service (Agent Management). It is 8090 for an on-premises Controller and 443 for a SaaS Controller.
AccountAccessKey : The account access key on the Controller.
AccountName : The account name on the Controller to which the Smart Agent will report.
An example for above:
ControllerURL = https://support-controller.saas.appdynamics.com
ControllerPort = 443
FMServicePort = 443
AccountAccessKey = abcd-ahsasasj-asbasas
AccountName = controllerces
Once done. Start the Smart Agent with the below:
systemctl start smartagent.service
You can check the status
The first part is done.
Now let’s install a Machine agent.
Once your Agent is started
Please go to controller.com/controller/#/apm/agent-management-install-agents
On the Install Agents page, where it says "Select Agent Attributes' select 'Machine'
Under 'Select where to Deploy Agents'
Add your Host where you installed Smart Agent and move to the left
Click 'Apply' and then click 'Done
Once this is done, you can install it with DEFAULT config, or you can set Customer Agent attributes.
If you wish to pass more information, you can get the key : value example from Cisco AppDynamics Docs: Ansible Configuration for Machine Agent. For example: controller_account_access_key: "123key"
NOTE: Your controller-host, port, access-key, and accountName are already passed. You can select SIM (Server Visibility) and SSL enabled based on your needs. I am marking JRE Support enabled as well.
Ansible Configuration for Machine Agent
In Linux, the Ansible role starts and runs the Machine agent as a service during installation, upgrade, and…
Once done, the agent will take 10–15 minutes to show up on your Controller.
It will be automatically installed and be in a running state. Logs can be located at /opt/appdynamics/machine-agent folder.