- Install the Standalone Machine Agent as described above.
Edit the environment variables and options in the following service file as needed:
/etc/systemd/system/appdynamics- No Format
- – Specifies where the Machine Agent files are located.
- – Specifies the JRE the agent uses. The Machine Agent bundles the JRE that we recommend you use, but you can use an existing JRE. (1.7 or higher for versions up to 4.3, 1.8 or higher for version 4.4 and higher)
- – This option in the service file specifies the system user to be used to start the Standalone Machine Agent. By default this is root. AppDynamics recommends that you create a non-root user to run the machine agent. The new user needs to have read
- access to controller-info.xml and write access to the log
- files. See Permissions for Non-Root User to Run the Machine Agent for more details.
- The systemd service file does not include the "MACHINE_AGENT_USER" variable
- ExecStart: This option in the service file points to a script that starts the agent as a daemon. If you didn't install the machine agent in
/opt/appdynamics/machine-agent,then change the path to
- Enable the Machine Agent to start at system startup:
systemctl enable appdynamics-machine-agent
- Start the agent service:
Check the service status:
systemctl status appdynamics-machine-agent
Verify that the Agent is reporting to the Controller. See Verify the Standalone Machine Agent Installation.
Add the agent as a service. On the command line enter:
cp <machine-agent-home>/etc/systemd/system/appdynamics-machine-agent.service \