Thursday, June 30, 2016

How to Setup New Relic Server Monitoring on CentOS 7 / RHEL 7

http://www.techbrown.com/setup-new-relic-server-monitoring-centos-7-rhel-7.shtml

How to install , Configure and Setup New Relic Server Monitoring on CentOS 7 / RHEL 7 / SL 7 / EL 7 .The New Relic Server Monitoring Software has most popular monitoring software in the Web hosting Company. It is used by the hosting company for resource monitoring, network monitoring and most important it provides Disc monitoring by using its rich graphical interface it provides real time system monitoring services. its feature makes this software popular in Hosting industries. This tutorial shows how to setup the New Relic Server Monitoring on your respective enterprise Linux editions.

How to Setup New Relic for Enterprise Linux?

Step-1 ( Sign up for New Relic Free Account )
You can Sign up for New Relic Free Account : https://newrelic.com/signup
Step-2 (After Sign up Login to your root account)
[gopal@techbrown ~]$ su -
 Password:
Step-3 (Enable the New Relic Repository)
[root@techbrown ~]# rpm -ivh https://download.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm
Sample Output
Retrieving https://download.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm
warning: /var/tmp/rpm-tmp.aG1O3A: Header V3 DSA/SHA1 Signature, key ID 548c16bf: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
1:newrelic-repo-5-3                ################################# [100%]
Step-4 (Install the New Relic Packages)
[root@techbrown ~]# yum install newrelic-sysmond
Sample Output
Loaded plugins: fastestmirror, langpacks
newrelic                                                                                                                       |  951 B  00:00:00
newrelic/x86_64/primary                                                                                                        |  14 kB  00:00:02
Loading mirror speeds from cached hostfile
newrelic                                                                                                                                      126/126
Resolving Dependencies
--> Running transaction check
---> Package newrelic-sysmond.x86_64 0:2.3.0.132-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================
Package                                  Arch                           Version                               Repository                        Size
======================================================================================================================================================
Installing:
newrelic-sysmond                         x86_64                         2.3.0.132-1                           newrelic                         1.9 M

Transaction Summary
======================================================================================================================================================
Install  1 Package

Total download size: 1.9 M
Installed size: 4.5 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/newrelic/packages/newrelic-sysmond-2.3.0.132-1.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 548c16bf: NOKEY0 ETA
Public key for newrelic-sysmond-2.3.0.132-1.x86_64.rpm is not installed
newrelic-sysmond-2.3.0.132-1.x86_64.rpm                                                                                        | 1.9 MB  00:00:19
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NewRelic
Importing GPG key 0x548C16BF:
Userid     : "New Relic "
Fingerprint: b60a 3ec9 bc01 3b9c 2379 0ec8 b31b 29e5 548c 16bf
Package    : newrelic-repo-5-3.noarch (installed)
From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-NewRelic
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : newrelic-sysmond-2.3.0.132-1.x86_64                                                                                                1/1
Verifying  : newrelic-sysmond-2.3.0.132-1.x86_64                                                                                                1/1

Installed:
newrelic-sysmond.x86_64 0:2.3.0.132-1

Complete!
Step-5 (How to get and find your free license key)
Open Internet Browser and go to the https://rpm.newrelic.com/accounts/
1
Hit on the your Avatar and go to the Account Settings under that you will find your license key and finally note that for further procedures.
2
Step-6 (Set your New Relic License Key)
[root@techbrown ~]# nrsysmond-config --set license_key=
Step-7 (Check your license key for verification purpose)
[root@techbrown ~]# cat /etc/newrelic/nrsysmond.cfg
Sample Output
#
# New Relic Server Monitor configuration file.
#
# Lines that begin with a # are comment lines and are ignored by the server
# monitor. For those options that have command line equivalents, if the
# option is specified on the command line it will over-ride any value set
# in this file.
#

#
# Option : license_key
# Value  : 40-character hexadecimal string provided by New Relic. This is
#          required in order for the server monitor to start.
# Default: none
#
license_key=
Step-8 (Start the New Relic Daemon)
[root@techbrown ~]# /etc/init.d/newrelic-sysmond start
Sample Output
Starting newrelic-sysmond (via systemctl):                 [  OK  ]
Step-9 (Check Whether the New Relic Server Monitoring Software is working or Not)
Open Internet Browsers visit https://rpm.newrelic.com/accounts/
You will see the Web panel on Internet browsers
Resource monitoring Panel
3
Process monitoring Panel
4
Network monitoring Panel
5
Disk monitoring Panel
6
For more info on this topic go to the https://newrelic.com/

Final Words

Congratulation now you have setup the New Relic on you respective Enterprise Linux. Now you have followed the methods if you have any issues regarding this tutorial then you need to use the comment section below for more info and support.

No comments:

Post a Comment