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
- Visit New Relic, click on the “Create my Free Account” button and fill in the form.
- 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.
- From the command line, run
- 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
- 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):
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
- Download and install New Relic server monitoring:
yum install newrelic-sysmond
- Set your license key.
nrsysmond-config --set license_key=YOUR_LICENSE_KEY
Optional: You can also set the license_key configuration setting directly in:
Start and check New Relic
- Start the new relic agent by executing:
- 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:
This will show that newrelic-sysmond is running.
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.