http://triweb.sinaapp.com/index.html#blog
yum install gcc gcc-c++ make sysstat nc -y
yum install python-devel -y
yum install mysql mysql-server mysql-devel MySQL-client MySQL-shared-compat MySQL-shared -y
/etc/init.d/mysqld start
安装rrdtool
线添加yum源
[root@localhost sbin]# cat /etc/yum.repos.d/dag.repo
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1
yum install rrdtool -y
升级python为2.75
python -V
下载链接
https://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz
cd Python-2.7.3
./configure
make && make instal
mv /usr/bin/python /usr/bin/python.2.4.bak
ln -s /usr/local/bin/python2.7 /usr/bin/python
sed -ie 's#/usr/bin/python$#/usr/bin/python2.4#g' /usr/bin/yum #因为yum是基于python 2.4的
对应python2.7.3版本的是
http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
下载后,执行
[html] view plaincopy
sh setuptools-0.6c11-py2.7.egg
##################################################################################
出现以下信息表示成功
[html] view plaincopy
Processing setuptools-0.6c11-py2.7.egg
Copying setuptools-0.6c11-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.7 script to /usr/local/bin
Installed /usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11
##################################################################################
http://ncu.dl.sourceforge.net/project/mysql-python/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz
tar xvzf MySQL-python-1.2.2.tar.gz
cd MySQL-python-1.2.2
vi site.cfg
把 mysql_config = /usr/local/mysql/bin/mysql_config 这一行前的#去掉,并且把mysql_config的路径设置正确。
python setup.py build
sudo python setup.py install
################################################################################################
下载链接
http://jaist.dl.sourceforge.net/project/triaquae/TriAquae.2014-04-26.tar.gz
tar zxf TriAquae.tar.gz
cd TriAquae/install
python setup.py build --prefix=/opt/soft/TriAquae
python setup.py install
修改数据库和IP
修改tri_config配置文件
MySQL_Name = 'TriAquae'
MySQL_User = 'root'
MySQL_Pass = 'coral'
Tri_IP = '192.168.2.2'
配置报警接受邮件
SMTP_server = 'smtp.126.com'
Mail_username = 'alex'
Mail_password = 'test123'
初始化
python setup.py init
启动TriAquae
cd /your installdir/TriAquae/sbin
python tri_service.py start
说明:启动默认为7000端口
登陆TriAquae
http://ip:7000/
默认账户:admin
默认密码:triaquae