This page describes how to install the Machine Agent using the Linux ZIP archive that includes JRE 1.8.
It is easier to download and use the RPM package if your Linux distribution supports the RPM Package Manager.
Before installing, see Install the Machine Agent.
Read/write privileges to the <machine-agent-home> installation directory are required. |
Download and unzip the Agent zip bundle. From the command line, enter:
unzip <zip-bundle.zip> -d <machine_agent_home> |
where <zip-bundle.zip> is the name of the zip archive for your environment and <agent_home> is the name of the directory where you want to install the agent.
Gather your configuration details and configure the agent by editing<machine_agent_home>/conf/controller-info.xml file or by adding system properties to the JVM startup script file. See Linux Install Using ZIP with Bundled JRE.
Start the Machine Agent by entering: <machine_agent_home>/bin/machine-agent
. For example, from the <machine_agent_home> directory:
./bin/machine-agent |
To review Machine Agent usage, enter: machine-agent -h
Usage: machine-agent [-dh] [-j JAVA_HOME] [-p pidfile] [-D prop] [-X prop] Start the machine agent. -d daemonize (run in background) -p pidfile write PID to <pidfile> -h --help print command line options -D prop set JAVA system property -X prop set non-standard JAVA system property |
(Optional) Verify the installation. See Verify the Machine Agent Installation.
Create a link to /etc/sysconfig
:
ln -s <machine-agent-home>/etc/sysconfig/appdynamics-machine-agent /etc/sysconfig/appdynamics-machine-agent |
Copy the machine agent to /etc/init.d
. For example:
cp <machine-agent-home>/etc/init.d/appdynamics-machine-agent /etc/init.d/appdynamics-machine-agent |
Edit the environment variables in /etc/sysconfig/appdynamics-machine-agent
configuration file:
Add the agent as a service. For example, enter:
chkconfig --add appdynamics-machine-agent |
For Ubuntu, you can use update-rc.d
or sysv-rc-conf
. See the Ubuntu documentation for details.
Start the agent service: service appdynamics-machine-agent start
.
Verify that the Agent is reporting to the Controller. See Linux Install Using ZIP with Bundled JRE.
Edit the environment variables and options in the service file as needed: <machine-agent-home>/etc/systemd/system/appdynamics-machine-agent.service
systemd
service file does not include the "MACHINE_AGENT_USER" variable.Copy the file:
cp <machine-agent-home>/etc/systemd/system/appdynamics-machine-agent.service \ /etc/systemd/system/appdynamics-machine-agent.service |
Enable the Machine Agent to start at system startup:
systemctl enable appdynamics-machine-agent |
Start the agent service:
systemctl start appdynamics-machine-agent |
Check the service status:
systemctl status appdynamics-machine-agent |