RRDtool官方网站http://oss.oetiker.ch/rrdtool/
# tar -zxvf rrdtool-1.2.27.tar.gz 解压
# ./configure --prefix=/usr/local/ 编译前配置
# make && make install 编译并安装
--------------------------------------------RRDtool安装完成------------------------------------------------------
|
Cacti安装:
# tar -zxvf cacti-0.8.7i.tar.gz 解压
# mv cacti-0.8.7i /usr/local/apache/htdocs/cacti 移动到网站根目录下面并重命名
# useradd cactiuser 创建用户
# chown -R cactiuser.cactiuser /usr/local/apache/htdocs/cacti/rra /usr/local/apache/htdocs/cacti/log 设置属主属组
# mysql -u root 进入数据库
mysql> create database cactidb default character set utf8; 创建一个cactidb的数据库
mysql> grant all on cactidb.* to cactiuser@localhost identified by '1234'; 设置权限
# mysql -u cactiuser -p cactidb < cacti.sql 将数据导入数据库(在cacti压缩包内)
# vi include/config.php 调试系统配置文件
$database_type = "mysql";
$database_default = "cactidb";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "1234";
$database_port = "3306";
$database_ssl = false;
$config['url_path'] = "/";
# vi /usr/local/apache/conf/httpd.conf 调整apache服务
Listen 80
DocumentRoot "/usr/local/apache/htdocs/cacti"
<Directory /usr/local/apache/htdocs>
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
--------------------------------------------------cacti安装完成-----------------------------------------------------
|
Cacti调试:
输入地址:
<!--[endif]--> 下一步
<!--[endif]--> 全新安装
<!--[endif]--> 红色为错误部分,需要安装snmp服务
# yum install net-snmp*
<!--[endif]--> 点击完成
|
初次登录界面,需要修改密码,默认密码admin
<!--[endif]--> 修改密码
<!--[endif]--> 初次界面
<!--[endif]--> -------------------------------------------------全部完成-------------------------------------------------------------------
|