工具说明:用于对Linux主机和MySQL相关指标进行实时监控。

项目地址:http://code.taobao.org/p/orzdba/src/trunk/

********************************安装*********************************
yum -y install perl perl-CPAN perl-devel perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker perl-Params-Validate


perl -MCPAN -e 'install "Module::Build"'


mkdir -p /opt/soft/orzdba

cd /opt/soft/orzdba

wget http://code.taobao.org/svn/orzdba/trunk/orzdba

cp orzdba /usr/bin/orzdba

chmod +x /usr/bin/orzdba

wget http://github.com/downloads/Lowercases/tcprstat/tcprstat-static.v0.3.1.x86_64

cp tcprstat-static.v0.3.1.x86_64 /usr/bin/tcprstat

chmod +x /usr/bin/tcprstat

wget http://search.cpan.org/CPAN/authors/id/J/JP/JPEACOCK/version-0.99.tar.gz

tar -zxf version-0.99.tar.gz

perl Makefile.PL

make && make test && make install

cd ..

wget http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/Class-Data-Inheritable-0.08.tar.gz

cd Class-Data-Inheritable-0.08

perl Makefile.PL

make

make test

sudo make install

cd ..

wget http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/Module-Build-0.31.tar.gz

tar -zxvf Module-Build-0.31.tar.gz

cd Module-Build-0.31

perl Build.PL

./Build

./Build test

./Build install

cd ..

wget http://search.cpan.org/CPAN/authors/id/G/GL/GLORYBOX/File-Lockfile-v1.0.5.tar.gz

tar -zxvf File-Lockfile-v1.0.5.tar.gz

cd File-Lockfile-v1.0.5

perl Build.PL

perl ./Build

perl ./Build test

perl ./Build install

*************************************使用说明************************************

帮助:

orzdba -h

查询数据库节点主机cpu,每两秒显示一次,共显示10次,将结果放到cpu.log中

[root@BJ-ECS-XHM-TEST-YL-19 ~]# orzdba -c -i 2 -C 10 -L cpu.log


.=================================================.

|       Welcome to use the orzdba tool !          | 

|          Yep...Chinese English~                 |

'=============== Date : 2015-12-30 ==============='


HOST: BJ-ECS-XHM-TEST-YL-19.domain.com   IP: 10.50.12.33


---cpu-usage--- 

usr sys idl iow|

 16   8  75   0|

  2   1  96   1|

  2   1  96   1|

  2   1  97   1|

  2   2  95   1|

  2   1  96   1|

  3   1  96   1|

  1   1  97   1|

  2   1  96   1|

  2   1  96   1|

  2   1  96   1|