• /
  • EnglishEspañolFrançais日本語한국어Português
  • Se connecterDémarrer

Cette traduction automatique est fournie pour votre commodité.

En cas d'incohérence entre la version anglaise et la version traduite, la version anglaise prévaudra. Veuillez visiter cette page pour plus d'informations.

Créer un problème

Intégration monitoring des ports

Notre intégration monitoring des ports monitore l'état des ports réseau, tels que TCP, UDP, etc., et signale les temps de disponibilité et les données de panne à New Relic.

Dashboard of the port monitoring integration

Conseil

Cette intégration est sortie en open source sur Github. Un log des modifications y est également disponible pour les dernières mises à jour.

Installer l'intégration

Suivez les étapes ci-dessous pour installer l'intégration :

Installer l' agent d'infrastructure

Pour utiliser l'intégration de monitoring des ports, vous devez d'abord installer l'agent infrastructure sur le même hôte. Toutes nos intégrations sur hôte nécessitent l'agent infrastructure , qui permet d'exposer et de rapporter les métriques à New Relic.

Téléchargez et préparez l'intégration

  1. Téléchargez et décompressez le fichier tar depuis le référentiel GitHub:

    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. Copiez le répertoire bin avec l'exécutable nri-port-monitor dans /var/db/newrelic-infra/newrelic-integrations. Faites de même pour le fichier de configuration 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. Définissez les autorisations d’exécution pour le fichier binaire nr-port-monitor afin qu’il puisse s’exécuter correctement :

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

Configurer l'intégration

  1. Déplacer et renommer le fichier de configuration :

    bash
    $
    cp nri-port-monitor/port-monitor-config.yml.sample /etc/newrelic-infra/integrations.d/port-monitor-config.yml
  2. Ouvrez port-monitor-config.yml et modifiez la configuration avec toutes les instances de port que vous souhaitez monitorer :

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

Trouvez vos données

Pour retrouver facilement vos données de monitoring portuaire, téléchargez notre dashboard pré-construit :

  1. Allez à one.newrelic.com et cliquez sur + Integrations & Agents.

  2. Cliquez sur l’onglet Dashboards .

  3. Dans le champ de recherche, recherchez Port Monitoring.

  4. Cliquez sur le dashboard de monitoring des ports pour l'installer.

    Voici un exemple de requête NRQL qui renvoie l’état des ports configurés :

    SELECT latest(status) FROM NetworkPortSample FACET address SINCE 30 MINUTES AGO TIMESERIES
Droits d'auteur © 2025 New Relic Inc.

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