Sales:  800-573-7846 or Live Chat

The ServInt Source

Installing New Relic’s Server Performance Monitoring

tech bench 2 New Relic is a resource monitoring tool gaining popularity in the hosting community. It is not uncommon for our customers to ask for help installing this software. In my last article, I explained how to install New Relic’s application performance monitoring. In this post, we’ll look at installing their server performance monitoring.

New Relic has a free tier for their service. A free account allows you to monitor cpu, memory, disk, and network traffic for your server. The following directions will guide you through the installation of New Relic on a CentOS server. Other Linux OS servers will be similar, but not exactly the same. Please note that these directions require you to log in to your server on the command line and execute commands as root.

Sign up for a New Relic account

  1. Visit New Relic, click on the “Create my Free Account” button and fill in the form.
  2. After sign up, click on “Account Settings” and on the right hand side under “Account Information: License” you will find your license. Copy and paste this key into a text doc for later use.

Identify whether you are using a 32 or 64 bit OS.

  1. From the command line, run

uname -a

  1. This will report whether you are running 32 or 64 bit. A 32 bit server will return text including “i686″ and/or “i386″ in the command output. A 64 bit server will have “x86_64″ somewhere in the output.

New Relic download and install

  1. Match the output to one of the following rpm options and run one of the following rpm commands to update your repository. This will allow you to install the New Relic resource monitor (If you have installed a previous New Relic tool you can skip this step):

32 bit:

rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm

or

64 bit:

rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm

  1. Download and install New Relic server monitoring:

yum install newrelic-sysmond

  1. Set your license key.

nrsysmond-config --set license_key=YOUR_LICENSE_KEY

Optional: You can also set the license_key configuration setting directly in:

/etc/newrelic/nrsysmond.cfg

Start and check New Relic

  1. Start the new relic agent by executing:

/etc/init.d/newrelic-sysmond start

  1. You should then add it to chkconfig so that it starts on boot:

chkconfig newrelic-sysmond on

To check the installation you can use these commands:

pstree

This will show that newrelic-sysmond is running.

>chkconfig --list

This will show that newrelic-sysmond is set to start on boot.

And, as always, if you are having trouble with your New Relic installation and you’re a ServInt customer, open up a ticket in your customer Portal and we’ll be glad to help.

About Bill Brooks

Bill Brooks is an Escalated technician and the Continuing Education Facilitator for ServInt's Managed Services Team. He is a life-long tech enthusiast and enjoys music, video games and hockey on the side.


The ServInt Source | Web Hosting Blog