Install Infrastructure for Linux using the package manager

With Infrastructure for Linux, not only can you monitor individual servers, you can also understand how your service performs as a whole. Infrastructure supports several Linux operating systems as well as Windows Server. Before installation, review the compatibility and requirements.

Install the agent

As of version 1.4.0, the Infrastructure agent package includes the additional newrelic-infra-ctl binary, which is used to help troubleshoot a running agent. Although this binary is not required to execute the agent, we recommend to add it in your path. See our docs for more information.

To install the Infrastructure agent in Linux, follow the instructions for your package manager and desired user running mode:

The hostname for your server cannot be localhost. Data will not be reported for servers with that name. Make sure the host name uses a unique name.

Once the agent is installed or updated, follow the common steps to start, stop, or check the Infrastructure agent status.

Install for Debian

To install the Infrastructure agent on Debian:

  1. Review the agent requirements and supported operating systems for 64-bit architectures.

  2. Create a configuration file, and add your license key:

    echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml
  3. Enable New Relic's GPG key:

    curl -s https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg | sudo apt-key add -
  4. Determine the distribution version number:

    cat /etc/os-release
  5. Create the agent's apt repo using the command for your distribution version:

    Debian 7 ("Wheezy")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt wheezy main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
    Debian 8 ("Jessie")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt jessie main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
    Debian 9 ("Stretch")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt stretch main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
  6. Update your apt cache:

    sudo apt-get update
  7. Run the install script:

    sudo apt-get install newrelic-infra -y

Generate some traffic and wait a few minutes, then view your hosts in the Infrastructure UI. If no data appears after waiting a few minutes, see No data appears.

Install for Ubuntu

To install the Infrastructure agent on Ubuntu:

  1. Review the agent requirements and supported operating systems for 64-bit architectures.

  2. Create a configuration file, and add your license key:

    echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml
  3. Enable New Relic's GPG key:

    curl https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg | sudo apt-key add -
  4. Determine the distribution version number:

    cat /etc/lsb-release 
  5. Create the agent's apt repo using the command for your distribution version:

    Ubuntu 12 ("Precise")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt precise main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
    Ubuntu 14 ("Trusty")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt trusty main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
    Ubuntu 16 ("Xenial")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
    Ubuntu 18 ("Bionic")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt bionic main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
  6. Update your apt cache:

    sudo apt-get update
  7. Run the install script:

    sudo apt-get install newrelic-infra -y

Generate some traffic and wait a few minutes, then view your hosts in the Infrastructure UI. If no data appears after waiting a few minutes, see No data appears.

Install for Amazon Linux, CentOS, or RHEL

To install the Infrastructure agent on Amazon Linux, CentOS, or RHEL (Red Hat Enterprise Linux):

  1. Review the agent requirements and supported operating systems for 64-bit architectures.

  2. Create a configuration file, and add your license key:

    echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml
  3. Determine the distribution version number:

    cat /etc/os-release
  4. Create the agent's yum repo:

    Amazon Linux
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/6/x86_64/newrelic-infra.repo
    Amazon Linux 2
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo
    CentOS 5, RHEL 5
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/5/x86_64/newrelic-infra.repo
    CentOS 6, RHEL 6
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/6/x86_64/newrelic-infra.repo
    CentOS 7, RHEL 7
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo

    CentOS 8, RHEL 8
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/8/x86_64/newrelic-infra.repo
  5. Update your yum cache:

    sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
  6. Run the install script:

    sudo yum install newrelic-infra -y

Generate some traffic and wait a few minutes, then view your server in the Infrastructure UI. If no data appears after waiting a few minutes, see No data appears.

Install for SUSE Linux Enterprise Server (SLES)

To install the Infrastructure agent on SLES:

  1. Review the agent requirements and supported operating systems for 64-bit architectures.

  2. Create a configuration file, and add your license key:

    echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml
  3. Determine the distribution version number:

    cat /etc/os-release | grep VERSION_ID
  4. Import the New Relic GPG key:

    sudo rpm --import https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg
  5. Create the agent's Zypper repo:

    SLES 11.4
    sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/11.4/x86_64/newrelic-infra.repo
    SLES 12.1
    sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.1/x86_64/newrelic-infra.repo 
    SLES 12.2
    sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.2/x86_64/newrelic-infra.repo 
    SLES 12.3
    sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.3/x86_64/newrelic-infra.repo 
    SLES 12.4
    sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.4/x86_64/newrelic-infra.repo  
  6. Update your Zypper repos:

     sudo zypper -n ref -r newrelic-infra
  7. Run the install script:

    sudo zypper -n install newrelic-infra

Generate some traffic and wait a few minutes, then view your server in the Infrastructure UI. If no data appears after waiting a few minutes, see No data appears.

Install using configuration management tools

To install Infrastructure with a configuration management tool, see the documentation for:

Install for Docker containers on instrumented hosts

See Docker instrumentation for Infrastructure.

To run as a privileged user, you will need to set the NRIA_MODE environment variable to PRIVILEGED during the installation process and also have the libcap library installed in your system (as shown in the following install steps).

If you are using the sudo command to install or update the agent, use the -E argument to allow bypassing the environment variables, or specify the NRIA_MODE environment variable just after the sudo command.

Install for Debian

To install the Infrastructure agent on Debian:

  1. Review the agent requirements and supported operating systems for 64-bit architectures.

  2. Create a configuration file, and add your license key:

    echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml 
  3. Enable New Relic's GPG key:

    curl -s https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg | sudo apt-key add -
  4. Determine the distribution version number:

    cat /etc/os-release  
  5. Create the agent's apt repo using the command for your distribution version:

    Debian 7 ("Wheezy")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt wheezy main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
    Debian 8 ("Jessie")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt jessie main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
    Debian 9 ("Stretch")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt stretch main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
  6. Update your apt cache:

    sudo apt-get update
  7. Install the libcap library.

    sudo apt-get install libcap2-bin
  8. Run the install script:

     sudo NRIA_MODE="PRIVILEGED" apt-get install newrelic-infra  

    Or, if the agent is already installed and you want to update to the last version in privileged mode:

    export NRIA_MODE=”PRIVILEGED”
                   sudo -E apt-get dist-upgrade

Generate some traffic and wait a few minutes, then view your hosts in the Infrastructure UI. If no data appears after waiting a few minutes, see No data appears.

Install for Ubuntu

To install the Infrastructure agent on Ubuntu:

  1. Review the agent requirements and supported operating systems for 64-bit architectures.

  2. Create a configuration file, and add your license key:

    echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml 
  3. Enable New Relic's GPG key:

    curl https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg | sudo apt-key add -
  4. Determine the distribution version number:

     cat /etc/lsb-release
  5. Create the agent's apt repo using the command for your distribution version:

    Ubuntu 12 ("Precise")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt precise main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
    Ubuntu 14 ("Trusty")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt trusty main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
    Ubuntu 16 ("Xenial")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
    Ubuntu 18 ("Bionic")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt bionic main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
  6. Update your apt cache:

    sudo apt-get update
  7. Install the libcap library.

    sudo apt-get install libcap2-bin
  8. Run the install script:

    sudo NRIA_MODE="PRIVILEGED" apt-get install newrelic-infra
    

    Or, if the agent is already installed and you want to update to the last version in privileged mode:

    export NRIA_MODE=”PRIVILEGED” sudo -E apt-get dist-upgrade

Generate some traffic and wait a few minutes, then view your hosts in the Infrastructure UI. If no data appears after waiting a few minutes, see No data appears.

Install for Amazon Linux, CentOS, or RHEL

To install the Infrastructure agent on Amazon Linux, CentOS, or RHEL (Red Hat Enterprise Linux):

  1. Review the agent requirements and supported operating systems for 64-bit architectures.

  2. Create a configuration file, and add your license key:

    echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml
  3. Determine the distribution version number:

    cat /etc/os-release  
  4. Create the agent's yum repo:

    Amazon Linux
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/6/x86_64/newrelic-infra.repo
    Amazon Linux 2
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo 
    CentOS 5, RHEL 5
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/5/x86_64/newrelic-infra.repo  
    CentOS 6, RHEL 6
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/6/x86_64/newrelic-infra.repo
    CentOS 7, RHEL 7
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo    

    CentOS 8, RHEL 8
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/8/x86_64/newrelic-infra.repo
  5. Update your yum cache:

    sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
  6. Install the libcap library.

    sudo yum install libcap
  7. Run the install script:

    sudo NRIA_MODE="PRIVILEGED" yum install newrelic-infra 

    Or, if the agent is already installed and you want to update to the last version in privileged mode:

    export NRIA_MODE="PRIVILEGED"
    sudo -E yum upgrade

Generate some traffic and wait a few minutes, then view your server in the Infrastructure UI. If no data appears after waiting a few minutes, see No data appears.

Install for SUSE Linux Enterprise Server (SLES)

To install the Infrastructure agent on SLES:

  1. Review the agent requirements and supported operating systems for 64-bit architectures.

  2. Create a configuration file, and add your license key:

    echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml
  3. Determine the distribution version number:

    cat /etc/os-release | grep VERSION_ID  
  4. Import the New Relic GPG key:

    sudo rpm --import https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg
  5. Create the agent's Zypper repo:

    SLES 11.4
    sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/11.4/x86_64/newrelic-infra.repo
    SLES 12.1
    sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.1/x86_64/newrelic-infra.repo
    SLES 12.2
    sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.2/x86_64/newrelic-infra.repo
    SLES 12.3
    sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.3/x86_64/newrelic-infra.repo 
    SLES 12.4
    sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.4/x86_64/newrelic-infra.repo 
  6. Update your Zypper repos:

    sudo zypper -n ref -r newrelic-infra
  7. Install the libcap library.

    sudo zypper install libcap-progs
  8. Run the install script:

    sudo NRIA_MODE="PRIVILEGED" zypper install newrelic-infra  

    Or, if the agent is already installed and you want to update to the last version in privileged mode:

    export NRIA_MODE=”PRIVILEGED”
    sudo -E zypper update newrelic-infra

Generate some traffic and wait a few minutes, then view your server in the Infrastructure UI. If no data appears after waiting a few minutes, see No data appears.

Install using configuration management tools

To install Infrastructure with a configuration management tool, see the documentation for:

Install for Docker containers on instrumented hosts

See Docker instrumentation for Infrastructure.

To run as unprivileged user, you will need to set the NRIA_MODE environment variable to UNPRIVILEGED during the installation process.

If you are using the sudo command to install or update the agent, use the -E argument to allow bypassing the environment variables, or specify the NRIA_MODE environment variable just after the sudo command.

Install for Debian

To install the Infrastructure agent on Debian:

  1. Review the agent requirements and supported operating systems for 64-bit architectures.

  2. Create a configuration file, and add your license key:

    echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml
  3. Enable New Relic's GPG key:

    curl -s https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg | sudo apt-key add -
  4. Determine the distribution version number:

    cat /etc/os-release 
  5. Create the agent's apt repo using the command for your distribution version:

    Debian 7 ("Wheezy")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt wheezy main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
    Debian 8 ("Jessie")
     printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt jessie main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
    Debian 9 ("Stretch")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt stretch main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
  6. Update your apt cache:

    sudo apt-get update
  7. Run the install script:

    sudo NRIA_MODE="UNPRIVILEGED" apt-get install newrelic-infra 

    Or, if the agent is already installed and you want to update to the last version in privileged mode:

    export NRIA_MODE="UNPRIVILEGED"
    sudo -E apt-get dist-upgrade

Generate some traffic and wait a few minutes, then view your hosts in the Infrastructure UI. If no data appears after waiting a few minutes, see No data appears.

Install for Ubuntu

To install the Infrastructure agent on Ubuntu:

  1. Review the agent requirements and supported operating systems for 64-bit architectures.

  2. Create a configuration file, and add your license key:

    echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml 
  3. Enable New Relic's GPG key:

    curl https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg | sudo apt-key add -
  4. Determine the distribution version number:

    cat /etc/lsb-release
  5. Create the agent's apt repo using the command for your distribution version:

    Ubuntu 12 ("Precise")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt precise main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
    Ubuntu 14 ("Trusty")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt trusty main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
    Ubuntu 16 ("Xenial")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
    Ubuntu 18 ("Bionic")
    printf "deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt bionic main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
  6. Update your apt cache:

    sudo apt-get update
  7. Run the install script:

    sudo NRIA_MODE="UNPRIVILEGED" apt-get install newrelic-infra  

    Or, if the agent is already installed and you want to update to the last version in privileged mode:

    export NRIA_MODE="UNPRIVILEGED"
    sudo -E apt-get dist-upgrade

Generate some traffic and wait a few minutes, then view your hosts in the Infrastructure UI. If no data appears after waiting a few minutes, see No data appears.

Install for Amazon Linux, CentOS, or RHEL

To install the Infrastructure agent on Amazon Linux, CentOS, or RHEL (Red Hat Enterprise Linux):

  1. Review the agent requirements and supported operating systems for 64-bit architectures.

  2. Create a configuration file, and add your license key:

    echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml
  3. Determine the distribution version number:

    cat /etc/os-release 
  4. Create the agent's yum repo:

    Amazon Linux
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/6/x86_64/newrelic-infra.repo 
    Amazon Linux 2
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo
    CentOS 5, RHEL 5
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/5/x86_64/newrelic-infra.repo
    CentOS 6, RHEL 6
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/6/x86_64/newrelic-infra.repo
    CentOS 7, RHEL 7
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo 

    CentOS 8, RHEL 8
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/8/x86_64/newrelic-infra.repo
  5. Update your yum cache:

    sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
  6. Run the install script:

    sudo NRIA_MODE="UNPRIVILEGED" yum install newrelic-infra   

    Or, if the agent is already installed and you want to update to the last version in privileged mode:

    export NRIA_MODE="UNPRIVILEGED"
    sudo -E yum upgrade

Generate some traffic and wait a few minutes, then view your server in the Infrastructure UI. If no data appears after waiting a few minutes, see No data appears.

Install for SUSE Linux Enterprise Server (SLES)

To install the Infrastructure agent on SLES:

  1. Review the agent requirements and supported operating systems for 64-bit architectures.

  2. Create a configuration file, and add your license key:

    echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml
  3. Determine the distribution version number:

    cat /etc/os-release | grep VERSION_ID   
  4. Import the New Relic GPG key:

    sudo rpm --import https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg
  5. Create the agent's Zypper repo:

    SLES 11.4
    sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/11.4/x86_64/newrelic-infra.repo 
    SLES 12.1
    sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.1/x86_64/newrelic-infra.repo 
    SLES 12.2
    sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.2/x86_64/newrelic-infra.repo 
    SLES 12.3
    sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.3/x86_64/newrelic-infra.repo 
    SLES 12.4
    sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.4/x86_64/newrelic-infra.repo  
  6. Update your Zypper repos:

    sudo zypper -n ref -r newrelic-infra
  7. Run the install script:

    sudo NRIA_MODE="UNPRIVILEGED" zypper install newrelic-infra   

    Or, if the agent is already installed and you want to update to the last version in privileged mode:

    export NRIA_MODE="UNPRIVILEGED"
    sudo -E zypper update newrelic-infra

Generate some traffic and wait a few minutes, then view your server in the Infrastructure UI. If no data appears after waiting a few minutes, see No data appears.

Install using configuration management tools

To install Infrastructure with a configuration management tool, see the documentation for:

Install for Docker containers on instrumented hosts

See Docker instrumentation for Infrastructure.

What's next?

The only required configuration option is the license_key setting, which is created as part of the installation procedures. You may also want to:

Update the agent

Follow standard procedures to update the Infrastructure agent.

For more help

Recommendations for learning more: