Machine Agent のデプロイ
サーバーエージェントを手動でインストールします。
この演習では、以下の操作を行います
- Machine agent をインストールするスクリプトを実行します
- Machine agent を設定します
- Machine agent を起動します
Note
スクリプトを使用して Machine agent を EC2 インスタンスにダウンロードします。通常は https://accounts.appdynamics.com/ にログインして Machine agent をダウンロードする必要がありますが、アクセス制限の可能性があるため、ポータルから直接ダウンロードするスクリプトを使用します。AppDynamics ポータルにアクセスできる場合に Machine agent をダウンロードしたい場合は、以下の手順に従ってダウンロードし、APM ラボの Install Agent セクションの手順を参照して VM に SCP で転送してください。
- AppDynamics Portal にログインします
- 左側のメニューで Downloads をクリックします
- Type で Machine Agent を選択します
- Operating System で Linux を選択します
- Machine Agent Bundle - 64-bit linux (zip) を見つけて Download ボタンをクリックします
- Install Agent セクションの手順に従って、ダウンロードしたファイルを EC2 インスタンスに SCP で転送します
- zip ファイルを /opt/appdynamics/machineagent ディレクトリに展開し、このラボの設定セクションに進みます
インストールスクリプトの実行 #
以下のコマンドを使用して、スクリプトが配置されているディレクトリに移動します。スクリプトは Machine agent をダウンロードして展開します。
cd /opt/appdynamics/lab-artifacts/machineagent/以下のコマンドを使用してインストールスクリプトを実行します。
chmod +x install_machineagent.sh
./install_machineagent.sh以下の画像のような出力が表示されます。

Server Agent の設定 #
以下に記載されている設定プロパティの値を Java Agent の “controller-info.xml” から取得し、次のステップで使用できるようにしておきます。
cat /opt/appdynamics/javaagent/conf/controller-info.xml- controller-host
- controller-port
- controller-ssl-enabled
- account-name
- account-access-key
Machine Agent の “controller-info.xml” ファイルを編集し、Java Agent の設定ファイルから取得した以下のプロパティの値を挿入します。
- controller-host
- controller-port
- controller-ssl-enabled
- account-name
- account-access-key
“sim-enabled” プロパティを true に設定してファイルを保存する必要があります。保存後のファイルは以下の画像のようになります。
cd /opt/appdynamics/machineagent/conf
nano controller-info.xml
Server Visibility agent の起動 #
以下のコマンドを使用して Server Visibility agent を起動し、起動したことを確認します。
cd /opt/appdynamics/machineagent/bin
nohup ./machine-agent &
ps -ef | grep machine以下の画像のような出力が表示されます。

