Mysql database Real-time Monitoring Tool Mycheckpoint Introduction

Source: Internet
Author: User
This article introduces mysql database Real-time Monitoring Tool Mycheckpoint. If you need to know this job, please refer.

This article introduces mysql database Real-time Monitoring Tool Mycheckpoint. If you need to know this job, please refer.

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

Requirements:
1. installation is required, and the version is later than 2.4

Shell> phthon: Check whether it is installed.

Yum install python2. you need to install the Mysql-Python module. The RHEL and Centos methods are as follows. For more information, see the official manual.

Yum install MySQL-python
Installation:

Tar xzfv mycheckpoint-208.tar.gz
Cd mycheckpoint-208
Sudo python setup. py install

3. Create:

Mysql> create database mycheckpoint;
Mysql> grant all privileges on mycheckpoint. * TO 'monitoring _ user' @ 'localhost' identified by 'some _ pass ';

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: Create a table and perform other operations.

Mycheckpoint deploy

6. Write crontab to collect data every five minutes:

Crontab-e write the following code

*/5 * mycheckpoint

7. enable http service (default port 12306), and add nohup to run HTTP after the shell is disconnected, or write it to the startup script:

Nohup mycheckpoint http>/dev/null & Parameter

-Http-port: Specifies the listening port

OK. Open http: // your_ip_address: 12306/to view the mycheckpoint You Just configured. However, the data is generated on the whole point, therefore, you may have to wait an hour before you can see the generated curve. In addition, this software also supports alarms and user-defined data records. Due to time issues, it is not described here.

View help:

Mycheckpoint -- help

Let's see

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.