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