Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > How To: MySQL Activity Report
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-07-2006   #1 (permalink)
Just Joined!
 
Join Date: Jun 2006
Location: (.)
Posts: 69
Send a message via MSN to mitto
How To: MySQL Activity Report

Hi,

While searching for myaql performance report base tool for php. I have found wonderful tool for mysql performance checking and report generation.

It is deemon called mysqlard (MySQL Activity Report) it presents useful graphs by processing the data to enforce a certain data density. The main goal of the package is to help the database system administrator in tuning the system for maximum performance.

This package contains example graphing, cron and PHP script.

Before installing this package you need to have "rrdtool" install. I have described the step how to install and monitor the use this tool:

First you need to install "rrdtool"

Quote:
# cd /tmp
download the rrdtool:
rrdtool's home page is : http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/

Quote:
# wget http://people.ee.ethz.ch/~oetiker/we...-1.2.14.tar.gz
# tar -xvzf rrdtool-1.2.14.tar.gz
# cd rrdtool-1.2.14
# ./configure
# make
# make install
# make site-perl-install
# cd ..
# rm -rf rrdtool-1.2.14
Now, you need to install (MySQL Activity Report) mysqlard

Quote:
# cd /tmp
# wget http://freshmeat.net/redir/mysqlard/...d-1.0.0.tar.gz
# tar -xvzf mysqlard-1.0.0.tar.gz
# cd mysqlard-1.0.0
You need to compile I mean configure this using below metiond steps:

You could use only confiure option if have all is well set

Quote:
# ./configure

-OR-

# ./configure --prefix=/usr --sysconfdir=/etc --datadir=/var/lib
You can also specify the rrd and mysql path if you are facing any error while compiling

Quote:
--with-rrd=PATH : set the full path to your rrdtool installation
--with-mysql=PATH: set the full path to your mysql installation

# make
# make install
Basic, installation is completed. For configuration:

You will find the file named mysqlard.cnf at /etc folder. if this file not created by default then you have copy from the below mentioned folder:

Quote:
# cp /var/lib/mysqlard/mysqlard.cnf /etc
Edit the mysqlard.cnf file and add search for below mentioend string

Quote:
RRDTOOL=""
provide the exact path of your rrdtool

save and exit

Quote:
# cd /var/lib/mysqlard
# cp mysqlar.monthly /etc/cron.monthly
# cp mysqlar.weekly /etc/cron.weekly
# cp mysqlar.daily /etc/cron.daily

now start the daemon:

# ./mysqlard.server initrrd
# ./mysqlard.server start
You need to set the correct permission for apache users and set the alias in your httpd conf file for var/lib/mysqlard folder.

restart the httpd services

Open your browser and browse the URL:

http://yourserverIP/<alias>/mysqlar.php

This how you could install mysqlar Enjoy

Thanks!
mitto is offline  

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Free Network Mapping Tool for Microsoft® Office Visio® Professional 2007 Users
Don't map your network by hand – let LANsurveyor Express for Microsoft Visio Professional 2007 automatically create network diagrams for you.
subscribe
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say.
subscribe

Safe, Secure Backup


All times are GMT. The time now is 05:08 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2