cacti 流水帐安装

cacti 安装还是很简单的。。我也懒得自己整理个过程了。。反正就是看了下面的就知道怎么装了。。。 我就不梳理了

 

首先看cacti 官方的安装教程:

 

Install and Configure Cacti

 

  1. Extract the distribution tarball.

    shell> tar xzvf cacti-version.tar.gz
  2. Create the MySQL database:

    shell> mysqladmin --user=root create cacti
  3. Import the default cacti database:

    shell> mysql cacti < cacti.sql
  4. Optional: Create a MySQL username and password for Cacti.

    shell> mysql --user=root mysql
    mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';
    mysql> flush privileges;
  5. Edit include/config.php and specify the database type, name, host, user and password for your Cacti configuration.

    $database_type = "mysql";
    $database_default = "cacti";
    $database_hostname = "localhost";
    $database_username = "cactiuser";
    $database_password = "cacti";
  6. Set the appropriate permissions on cacti's directories for graph/log generation. You should execute these commands from inside cacti's directory to change the permissions.

    shell> chown -R cactiuser rra/ log/

    (Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.)

  7. Add a line to your /etc/crontab file similar to:

    */5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1

    Replace cactiuser with the valid user specified in the previous step.

    Replace /var/www/html/cacti/ with your full Cacti path.

  8. Point your web browser to:

    http://your-server/cacti/

    Log in the with a username/password of admin. You will be required to change this password immediately. Make sure to fill in all of the path variables carefully and correctly on the following screen.

 

 

装完以后呢。。 访问  cacti 的时候就会出现  找不到 rrdtool  路径的问题,那么我们就这样:

 

一、使用yum安装:
在 /etc/yum.repos.d/下面新建dag.repo文件在文件中输入源地址:
[root@hmg2 yum.repos.d]# cat 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
[root@hmg2
yum.repos.d]#yum -y install rrdtool
这样就可以完成RRDTool安装……

 

 

 

同样。那个  net-snmp 也是 这样安装。然后呢还不行,还要记得安装net-snmp-utils

 

好了。。。完成了。。

 

就那么简单


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值