PHPエージェントのリポジトリからのインストール(手動)と設定
以下のワークフローにより、PHPエージェントの「新規登録」ウィザードを使用して、手動インストールによってPHPエージェントをインストールして設定する手順を確認できます。新規にエージェントをデプロイする場合は、ウィザードを使用するのが最も簡単な方法です。
開始する前に
開始する前に、必要なものが揃っているか事前に確認してください。
エージェントが、Contrastインスタンスにアクセスできる必要があります。ローカル/オンプレミスのインスタンスでも、SaaS版のインスタンスでも良いです。ネットワークアクセスが制限されている環境では、プロキシを設定することができます。
Contrastのサポート対象テクノロジを使用しシステム要件を満たしていること。
設定した値が有効になる優先順位を理解していること。
また、コマンドラインインターフェイス(エージェントをダウンロードするために選択したディレクトリを含む)と、ご利用になる組織のContrastサーバへのアクセスも必要です。
PHPエージェントのウィザードを開始
Open the agent wizard:
NorthstarNorthstar: From the left navigation, select Administration > Agent management. Then, select Add agent at the top of the view.
Contrast: Use either of these options:
From the header, select Add New and then, select the Application card.
Select Administration > Agent management. Then, select Add agent at the top of the view.
Under Select a language, select PHP.
Select the operating system you are using.
エージェントをインストール
「アプリケーションのデプロイ法を選択」で、手動でインストールを選択します。
「インストール方法を選択」 で、 Debian、RPM、AL2023のいずれかを選択します。
「PHPエージェントをインストール」で、表示されたコマンドを使用してエージェントパッケージをインストールし、システムに登録します。
「PHPを設定」に表示されたコマンドラインを使用して、お使いの環境にエージェントを設定し、有効にします。
エージェントを設定
「エージェントを設定」で、エージェントがContrastと通信するために必要な設定情報を取得するための最適なオプションを選択します。
エージェントのバージョンが1.34.0以降の場合は、接続トークンを使用を選択します。
この設定方法では、1つの変数を使用して認証情報の値を指定できます。
表示されたコードをコピーし、エージェントがアクセスできる場所に接続トークンの環境変数を設定します。
YAMLファイルを使用してエージェントを設定する場合は、設定をダウンロードを選択します。
表示されたコードをコピーして実行すると、認証情報の設定を含むYAMLファイルが作成されます。
注記
If you receive a Permission denied error, raise your permissions to write the configuration file to
/etc/contrast/. Alternatively, you can downloadcontrast_security.yamlfrom the configuration editor and place the file in a supported YAML file location.
Verify the agent deployment
Interact with your application as you normally would. For example, interact with your application's web interface or send API commands.
Select Administration, then Agent management to verify that your agent appears in the list.
Verify that you see the name of your application in the list.
Select Servers in the header.
Verify that you see the name of your local server in the list.