• EnglishEspañol日本語한국어Português
  • ログイン今すぐ開始

この機械翻訳は、参考として提供されています。

英語版と翻訳版に矛盾がある場合は、英語版が優先されます。詳細については、このページを参照してください。

問題を作成する

ポートモニタリングの統合

弊社のポート監視インテグレーションは、TCP、UDP などのネットワーク ポートのステータスを監視し、稼働時間や停止データをNew Relicに報告します。

統合をインストールする

インテグレーションをインストールするには、以下の手順に従ってください。

インフラストラクチャエージェントをインストールします

ポート監視インテグレーションを使用するには、まず同じホストにインフラストラクチャエージェントをインストールする必要があります。 すべてのオンホスト インテグレーションには、メトリックをNew Relicに公開してレポートするインフラストラクチャ エージェントが必要です。

インテグレーションをダウンロードして準備する

  1. GitHub リポジトリから tar ファイルをダウンロードして解凍します。

    bash
    $
    wget https://github.com/newrelic/nri-port-monitor/releases/download/1.3/nri-port-monitor.tar.gz && tar -zxvf nri-port-monitor.tar.gz
  2. nri-port-monitor実行可能ファイルを含むbinディレクトリを/var/db/newrelic-infra/newrelic-integrationsにコピーします。 port-monitor-definition.yml構成ファイルに対しても同じ操作を行います。

    bash
    $
    cp nri-port-monitor/bin/port-monitor /var/db/newrelic-infra/newrelic-integrations/bin/ && cp nri-port-monitor/port-monitor-definition.yml /var/db/newrelic-infra/newrelic-integrations/
  3. バイナリ ファイルnr-port-monitorの実行権限を設定して、正しく実行できるようにします。

    bash
    $
    chmod +x /var/db/newrelic-infra/newrelic-integrations/bin/port-monitor

統合を構成する

  1. 設定ファイルを移動して名前を変更します。

    bash
    $
    cp nri-port-monitor/port-monitor-config.yml.sample /etc/newrelic-infra/integrations.d/port-monitor-config.yml
  2. port-monitor-config.ymlを開き、監視するすべてのポート インスタンスで構成を編集します。

    integration_name: com.newrelic.tcp-port-monitor
    instances:
    - name: <INSTANCE IDENTIFIER>
    command: metrics
    arguments:
    address: localhost:80
    network: tcp
    timeout: 5
    labels:
    env: prod

データを検索する

ポート監視データを簡単に見つけるには、事前に構築されたダッシュボードをダウンロードしてください。

  1. one.newrelic.com

    に移動し、

    + Integrations & Agents

    をクリックします。

  2. Dashboards

    タブをクリックします。

  3. 検索ボックスで、

    Port Monitoring

    を検索します。

  4. ポート監視ダッシュボードをクリックしてインストールします。

    構成されたポートのステータスを返す NRQL クエリの例を次に示します。

    SELECT latest(status) FROM NetworkPortSample FACET address SINCE 30 MINUTES AGO TIMESERIES
Copyright © 2024 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.