yum install httpd httpd-devel yum install mysql mysql-server yum install php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli php-mysql yum install php-snmp yum install net-snmp-utils p net-snmp-libs php-pear-Net-SMTP yum install rrdtool yum install unzip service httpd start service mysqld start service snmpd start chkconfig --levels 345 httpd on chkconfig --levels 345 mysqld on chkconfig --levels 345 snmpd on yum localinstall http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum install cacti
yum install httpd httpd-devel mysql> -uroot mysql> create database cacti; mysql>GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY '{pass}'; mysql> FLUSH privileges; mysql> quit;
yum install httpd httpd-devel rpm -ql cacti | grep cacti.sql --- /usr/share/doc/cacti-0.8.8b/cacti.sql --- mysql -uroot -Dcacti < /usr/share/doc/cacti-0.8.8b/cacti.sql vim /etc/httpd/conf.d/cacti.conf 追加 --- Order Deny,Allow Deny from none Allow from all --- vim /etc/cacti/db.php ---- $database_type = 'mysql'; $database_default = 'cacti'; $database_hostname = 'localhost'; $database_username = 'cacti'; $database_password = '{pass}'; $database_port = '3306'; $database_ssl = false; --- crontab -e --- */5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /var/log/httpd/cacti 2>&1 ---
http://SERVER-IP/cacti にアクセスする
yum install httpd httpd-devel>rpm -qa | grep rrdtool rpm -qa | grep net-snmp
でバージョンを確認しておく ウィザード通りすすめる admin:adminでログインするとパスワードチェンジが入る