centos6中yum安装cacti

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


你可能感兴趣的:(内网,来自丢失几年的wiki数据,安装环境为本公司私有yum库)