Now Reading
How to install NewRelic agent on Linux machines

How to install NewRelic agent on Linux machines

NewRelic agent
Views  
views
40

To send your machine performance data New Relic, an agent needs to be installed on that machine. The agent installation procedure varies by platform. Below is the step by step guide to install on SUSE Linux Enterprise Server (SLES) machine.

An agent can be installed in any of the below user modes:

Ads

  • Install to run as root (default).
  • Install to run as a privileged user.
  • Install to run as an unprivileged user.

1. Login as root to the host:

ssh <host> -l <userid>

2. Set http and https proxy:

export http_proxy=http://proxy.yourcompany.com:911
export https_proxy=https://proxy.yourcompany.com:912

3. Add your license key and create a configuration file

echo "license_key: <your license key>" | sudo tee -a /etc/newrelic-infra.yml

4. Get the distribution version number

cat /etc/os-release | grep VERSION_ID

5. Import the New Relic GPG key

wget https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg
rpm --import newrelic-infra.gpg
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

6. Update zypper repo

sudo zypper -n ref -r newrelic-infra

7. Install the library

sudo zypper -n install newrelic-infra

8. To check if new-relic agent is running:

See Also

sudo /etc/init.d/newrelic-infra <start|stop|restart|status>

9. Restart the agent for the first time:

sudo /etc/init.d/newrelic-infra restart

10. Now go to NewRelic and check if the host is showing up in the dashboard

Note: We can change the display name of the host in this file /etc/newrelic-infra.yml

For more information on New Relic visit : https://docs.newrelic.com/

View Comments (0)

Leave a Reply

Your email address will not be published.

Scroll To Top