首页 > 其他 > 详细

centos6中yum安装cacti

时间:2015-06-29 17:59:08      阅读:266      评论:0      收藏:0      [点我收藏+]

yum install net-snmp net-snmp-libs net-snmp-utils rrdtool

/etc/init.d/snmpd start

chkconfig snmpd on

/etc/init.d/rrdcached start

chkconfig rrdcached on


vi /etc/snmp/snmpd.conf

view    systemview    included   .1.3.6.1.2.1

测试snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.1.1.0


yum install httpd php php-mysql php-snmp php-xml php-gd mysql mysql-server mysql-devel

/etc/init.d/httpd start

chkconfig httpd on

/etc/init.d/mysqld start

chkconfig mysqld on

yum install cacti


vi /etc/cacti/db.php

$database_type = “mysql”;

$database_default = “cacti”;

$database_hostname = “localhost”;

$database_username = “cacti”;

$database_password = “cacti”;

$database_port = “3306″;


crontab -e

*/1 * * * * /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1


mysql

msyql>create database cacti;

mysql -u root -p cacti < /usr/share/doc/cacti-0.8.8b/cacti.sql

mysql> use cacti

mysql> grant all on cacti.* to cacti@localhost identified by ‘cacti’;

mysql> flush privileges;

mysql> exit


http://ip/cacti

403错误修改如下:

vi /etc/httpd/conf.d/cacti.conf

Allow from all

用户名为: admin 密码为: admin (初次登陆成功会提示更改密码)(000000)


http://www.2cto.com/os/201107/97230.html

https://www.centos.bz/2012/01/cacti-install-tutorials/


cacti配置

http://blog.chinaunix.net/uid-28220444-id-4196976.html

主机配置

yum install net-snmp net-snmp-utils net-snmp-libs

vi /etc/snmp/snmpd.conf

view systemview included.1.3.6.1.2.1

/etc/init.d/snmpd start


本文出自 “学海无涯苦作舟” 博客,请务必保留此出处http://guowang327.blog.51cto.com/6513732/1668988

centos6中yum安装cacti

原文:http://guowang327.blog.51cto.com/6513732/1668988

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!