您的位置:首页 > 数据库 > SQL

Linux主机和MySQL实时监控工具-orzdba

2016-07-13 10:42 651 查看
具说明:用于对Linux主机和MySQL相关指标进行实时监控。
[b]项目地址:http://code.taobao.org/p/orzdba/src/trunk/[/b]
********************************安装*********************************
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 [b]/opt/soft/orzdba[/b]
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|
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Linux 主机 监控