MySQL Database real-time monitoring tool Mycheckpoint Introduction

Source: Internet
Author: User
Tags create database

To install a document:
Http://code.openark.org/forge/mycheckpoint/documentation/quick-howto#Install

Demand:
1. Need to install Python, and version is greater than 2.4

Shell > Phthon See if there's any outfit, no

Yum install Python2. Need to install the Mysql-python module, Rhel,centos the following, other reference official manual

Yum Install Mysql-python
Installation:

Tar xzfv mycheckpoint-208.tar.gz
CD mycheckpoint-208
sudo python setup.py install

3. Create a database:

MySQL > CREATE DATABASE mycheckpoint;
MySQL > GRANT all privileges on mycheckpoint.* to ' monitoring_user ' @ ' localhost ' identified by ' Some_password ';

4. Edit the configuration file:

Vim/etc/mycheckpoint.cnf
[Mycheckpoint]
#smtp_host = mail.my-server-company.com
#smtp_from = monitor@my-server-company.com
#smtp_to = dba@my-server-company.com
#monitored_port = 3306
Purge_days = 60
#... Any command line option can go here; Replace dash ("-") with underscored ("_")

[Client]
User=dbmonitor
password=123456
Socket=/tmp/mysql.sock
port=3306
Host=localhost

5. Deployment: Creating tables, and other actions

Mycheckpoint Deploy

6. Write to crontab, collect data every five minutes:

Crontab-e writes the following code

*/5 * * * * mycheckpoint

7. Open the HTTP service (default port 12306), plus nohup can still run HTTP after the shell is disconnected, or write to the Linux startup script:

Nohup mycheckpoint http >/dev/null & Parameters

–HTTP-PORT Specifies the listening port

OK, open the http://your_ip_address:12306/to see the mycheckpoint you just configured, but the data is generated on the whole, so you may have to wait one hours to see the resulting curve, The other software also supports alarms and user-defined data records, because the time issue is not stated here first.

View Help:

Mycheckpoint--help

Let's see the screenshot.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.