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

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

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

問題を作成する

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

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

Dashboard of the port monitoring integration

ヒント

この統合はGithub 上でオープンソースとして公開されています。 最新のアップデートについては、変更ログもそこで入手できます。

統合をインストールする

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

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

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

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

  1. GitHub リポジトリからプラットフォーム用のリリースを選択してダウンロードします。例えば:

    bash
    $
    wget https://github.com/newrelic/nri-port-monitor/releases/download/1.4/nri-port-monitor_x86_64.tar.gz && tar -zxvf nri-port-monitor_x86_64.tar.gz
  2. nri-port-monitor実行ファイルを/var/db/newrelic-infra/newrelic-integrationsにコピーします。port-monitor-config.ymlをコピー /etc/newrelic-infra/integrations.d

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

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

統合を構成する

  1. port-monitor-config.ymlを開き、監視したいすべてのポート インスタンスを含む構成を編集します (監視するアドレス/ポートごとに複数のスタンザを統合ブロックに追加します)。

    インテグレーション:

  • 名前: nri-port-モニター 間隔: 60 秒 環境:

    ネットワークの種類。既知のネットワークは次のとおりです。

    tcp、tcp4(IPv4のみ)、tcp6(IPv6のみ)、

    udp、udp4(IPv4のみ)、udp6(IPv6のみ)、

    ip、ip4(IPv4のみ)、ip6(IPv6のみ)、

    unix、unixgram、unixpacket

    ネットワーク: tcp

    確認するアドレス(ホスト:ポートの形式)

    アドレス: localhost:80

    タイムアウト(秒)

    タイムアウト: 5 ラベル: env: production

    </Step>
    <Step>
    ## Find your data [#find-data]
    To easily find your Port Monitoring data, download our pre-built dashboard:
  1. Go to one.newrelic.com and click on + Integrations & Agents.

  2. Click on Dashboards tab.

  3. In the search box, search for Port Monitoring.

  4. Click on the Port Monitoring dashboard to install it.

    Here's an example NRQL query that returns the status of configured ports:

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

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