I have chance to try newrelic software. Its advance monitoring service and analysis in one place.
As they said “application performance management and monitoring”.
After sign up for free account I continue to deploy it on Ubuntu server (most of my server use freeBSD but I prefer to try it on Linux based system first).
The process is easy and straightforward as you can see from the picture :
The only problem is PHP version since I downgrade it for compatible issue.
# php -v
PHP 5.2.10-2ubuntu6 with Suhosin-Patch 0.9.7 (cli) (built: Oct 23 2009 16:30:10)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
# wget -O - http://download.newrelic.com/548C16BF.gpg | apt-key add -
# nano /etc/apt/sources.list.d/newrelic.list
enter these line :
deb http://apt.newrelic.com/debian/ newrelic non-free
deploy newrelic agent:
# apt-get update
# apt-get install newrelic-php5
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
The following NEW packages will be installed:
newrelic-daemon newrelic-php5 newrelic-php5-common
0 upgraded, 3 newly installed, 0 to remove and 124 not upgraded.
Need to get 12.2 MB of archives.
After this operation, 31.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
# newrelic-install install
new screen will show up
New Relic PHP Agent Installation (interactive mode)
In order for the New Relic agent to function correctly it requires a license
key. Please enter that key now. If you do not have your license key handy you
can add it to your INI file(s) later. Please be aware that the license key you
specify here will be installed in the default INI files, and will be the key
used for any virtual host or directory / application that does not over-ride
the key on a per-host or per-directory basis. This is only relevant if you run
a multi-tenant site. Please contact email@example.com if you run such a
site and have any questions.
If you are upgrading from a previous version please leave this blank. Please
also note that the key you enter here will not replace any existing key in
your INI file(s). It applies only to newly created INI files or INI files that
have not been modified by this script before.
Enter New Relic license key (or leave blank):
Just follow on screen guide.
Then you’ll see this message :
New Relic is now installed on your system. Congratulations!
The last step before you will start seeing data in your account is to restart
your web server or servers, or whatever environment hosts the PHP you wish to
monitor. For example, you may need to restart Apache or nginx, or if you are
using php-fpm and FastCGI, you will need to restart php-fpm. If you installed
New Relic into multiple locations you may have multiple PHP hosts to restart.
If everything is working properly you should see the following two log files:
Now you should create a simple test php script that contains the line:
<?php phpinfo(); ?>
and point your browser at the test script, and you should see the New Relic
extension and its settings. If you still do not see those log files or data in
your account please contact our support staff at firstname.lastname@example.org and be
sure to include the following file in your bug report:
Thank you for choosing New Relic!
Checking log presence :
# ls -l /var/log/newrelic | grep log
-rw-rw-rw- 1 root root 997 2013-04-20 11:02 newrelic-daemon.log
-rw-r–r– 1 root root 3303 2013-04-20 11:01 php_agent.log
Yes,log file is exist.
phpinfo() also show information about newrelic.
My newrelic dashboard now give many information :
Wow, impressive report and many more.