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.