RPM ネットワークエージェントの操作

ネットワークの可視性を設定するためのワークフロー全体の一部として、ネットワークエージェントをインストールします。サポートされている 3 つのワークフローは次のとおりです。

Linux 上でネットワーク可視性を設定する Linux 上でネットワーク可視性を設定する

Install the RPM Agent

  1. Check System Requirements. See Network Visibility Supported Environments.
  2. Stop each application of interest if it is monitored by an installed App Agent. You will restart each application after you install and set up the Network Agent.
  3. Verify that you have sudo or root access permissions on the machine where you want to install the Network Agent. (You do not need sudo or root access to run the Agent.)
  4. Open a command prompt on the host, enter the mount command, and check the mounted file system for the directory where you plan to install the Agent. The file system should not have the noexec and nsuid flags set.
  5. Download the network-agent package to the machine.
  6. Verify that you have sudo or root access permissions on the machine where you want to install the Agent.
  7. Download the Agent package to the machine.
  8. Open a terminal window and enter: sudo rpm -ivh <installer.rpm>
    The Network Agent software is installed under /opt/appdynamics/netviz.
  9. To start the Agent, enter: sudo service appd-netviz start
  10. Verify that the Network Agent is running: sudo service appd-netviz status
  11. If you experience any problems or issues, see FAQs for Network Visibility.
  12. If you are installing the Network Agent as part of aSet Up Network Visibility on Linux workflow, proceed to the next step in the workflow:

RPM エージェントの管理

次のコマンドは、ホストマシンでエージェントを設定および実行する権限がある <network_agent_user> として実行する必要があります。

操作コマンド備考
エージェントの起動
sudo service appd-netviz start

エージェントが正常に起動すると、次のように表示されます。

Starting appd-netviz (via systemctl): [ OK ]

エージェントの停止
sudo service appd-netviz stop

エージェントが正常に停止すると、次のように表示されます。

Stopping ncs (via systemctl): [ OK ]

エージェントの再起動
sudo service appd-netviz restart

エージェントが正常に再起動すると、次のように表示されます。

Stopping ncs (via systemctl): [ OK ]

エージェントのステータスの確認
sudo service appd-netviz status

次の例はステータスの出力です。

appd-netviz.service - Appdynamics Network Monitoring Loaded: loaded (/usr/lib/systemd/system/appd-netviz.service; disabled; vendor Active: active (running) since Thu 2016-09-29 14:52:42 PDT; 14s ago Process: 3981 ExecStart=/opt/appdynamics/netviz/bin/appd-netmon (code=exited, Process: 3973 ExecStartPre=/bin/chown -R appd-netviz:appd-netviz /opt/appdynam Process: 3968 ExecStartPre=/bin/mkdir -p /opt/appdynamics/netviz/run/ (code=ex Main PID: 3983 (appd-netmon) Tasks: 12 (limit: 512) CGroup: /system.slice/appd-netviz.service ├─3983 /opt/appdynamics/netviz/bin/appd-netmon ├─3984 appd-netagent -l /opt/appdynamics/netviz/scripts/netagent/lua/ └─3985 appd-netcor -l /opt/appdynamics/netviz/scripts/netcor/lua/ Sep 29 14:52:42 localhost.localdomain systemd[1]: Starting Appdynamics Network M Sep 29 14:52:42 localhost.localdomain systemd[1]: Started Appdynamics Network Mo lines 1-15/15 (END)

Uninstall the RPM Agent

To uninstall the Network Agent, enter:

sudo rpm -e appd-netviz

This command generates no output. To confirm that the Agent is removed, enter the status command again: sudo service appd-netviz status