スマートエージェントの設定

コントローラに登録するには、スマートエージェントを設定する必要があります。設定 ファイルを編集してください。たとえば、インストールファイルを /opt/appdynamics にダウンロードした場合、これは /opt/appdynamics/appdsmartagent/config.ini です。

config.ini

次は config.ini の例です。

ControllerURL    =
ControllerPort   = 443
FMServicePort  = 8030
AgentType        =
AccountAccessKey =
AccountName      =
EnableSSL      = true
[CommonConfig]
ServiceName           =
ServiceNamespace      =
RequestTimeoutSeconds = 0
AgentName             =
PollingIntervalInSec  =
[OAuth]
OAuthID      =
OAuthSecret  =
AuthEndpoint =
TenantID     =
Scopes       =
[HTTPClientSettings]
Timeout = 0
[TLSClientSetting]
Insecure = false
AgentHTTPProxy  =
AgentHTTPSProxy =
AgentNoProxy    =
[TLSSetting]
CAFile     =
CertFile   =
KeyFile    =
MinVersion = TLS 1.2
MaxVersion = TLS 1.3
[AutoDiscovery]
RunAutoDiscovery = false
AutoInstall = false
ExcludeLabels = process.cpu.usage,process.memory.usage
ExcludeProcesses =
ExcludeUsers =
AutoDiscoveryTimeInterval = 4h
[AnsibleConfig]
ExtraVars = create_appdynamics_user=false,add_ansible_install_env_var=false,check_pkg_dependencies=false,download_script=py
EnvVars = ANSIBLE_STDOUT_CALLBACK=appdynamics.agents.smartagent_callback
Verbose =
[Telemetry]
LogLevel=info
LogFile=
Profiling=false

Basic Configuration

The basic configuration is the required configuration to register Smart Agent with Controller. Ensure that you update the following parameters for the basic Smart Agent configuration:

  • ControllerURL : The URL of the Controller on which you want to establish the connection with the Smart Agent.
  • ControllerPort: The port to which Controller connects to the Agent Management (FM service). The default port is 8090

  • FMServicePort: The port to which the Smart Agent connects to the FM service.

    It is 443 for a SaaS Controller.

  • AccountAccessKey : The account access key on the Controller.
  • AccountName
  • EnableSSL : SSL is enabled by default. To turn off SSL, specify the value as false.

詳細設定

要件に応じて、次の設定を使用できます。これらは必須パラメータではありません。スマートエージェントのインストール後にこれらの設定を含めることもできますが、設定を適用するにはスマートエージェントを再起動してください。

Proxy Configuration

If you require to configure the proxy settings, specify the following fields under the TLSClientSetting section of the config.ini file.

ParameterDescriptionExample
AgentHTTPProxyspecify the proxy URL for this parameter when you use an HTTP Controller.

myhost:3128

AgentHTTPSProxyspecify the proxy URL for this parameter when you use an HTTPS Controller.myhost:8443
AgentNoProxyspecify true for this parameter when you do not require to use any proxy for the Smart Agent. The value can be true or false false

HTTP proxy example

The following example is for using the HTTP proxy for the Smart Agent:

[TLSClientSetting]
Insecure = false
AgentHTTPProxy  = localhost:3128
AgentHTTPSProxy =
AgentNoProxy    =

TLS構成

TLS 証明書を構成する必要がある場合は、TLSSetting config.ini で次のフィールドを指定します。

パラメータ 説明
CAFile ルート証明書ファイルへのパスを指定します。 <cert file path>/ca.crt
CertFile ルート証明書ファイルへのパスを指定します。 <client cert file path>/clients .crt
KeyFile ファイルのクライアント秘密キーへのパスを指定します。 <private key file path>/private.key

ログレベルの設定

Telemetry セクションでログレベルの詳細を指定できます。次のいずれかのログレベルを使用できます。

  • debug
  • info
  • warn
  • error

テレメトリ

パラメータ説明
LogLevelinfo などのログレベル。
LogFileログファイルへのパス。
プロファイリングtrue を指定してプロファイリングを有効にします。

ログレベルの例

次に、info ログレベルを使用する例を示します。

[Telemetry]
LogLevel=info
LogFile=
Profiling=false