[Cacti monitoring] installing cacti monitoring under centos6.2
Last Update:2014-05-21
Source: Internet
Author: User
[Cacti monitoring] install cacti monitoring 1 under centos6.2 configure LAMP environment a install mysql database yum-yinstallmysqlmysql-servermysql-develb configure apache and phpyum-yinstallhttpdph... [cacti monitoring] install cacti monitoring under centos6.2 1> configure LAMP environment a> install mysql database yum-y install mysql-server mysql-devel B> configure apache and php yum-y install httpd php-mysql www.2cto.com 2> install rrdtool and net-snmp yum-y install zlib freetype libjpeg fontconfig gd libxml2 php-gd yum-y install perl-Net-Daemon perl-PlRPC perl -DBI rrdtool perl-DBD-MySQL yum-y install php-pdo lm_sensors net-snmp php-snmp net-snmp-utils 3> install cacti tar-zxvf cacti-0.8.8a.tar.gz mv cacti-0.8.8a /var/www/html/cacti/4> Configure cacti a> configure the httpd service vim/etc/httpd/conf. d/cacti. conf [plain] Alias/cacti/var/www/html/cacti DirectoryIndex index. php AllowOverride all order deny, allow deny from all allow from all AddType application/x-httpd-php. php php_flag magic_quotes_gpc on php_flag track_vars on vim/etc/httpd/conf/httpd. conf [plain] 276 ServerName localhost: 80 vim/etc/php. ini [plain] 946 date. timezone = PRC service httpd start B> configure mysql and import cacti. SQL service mysqld start mysqladmin-u root password '000000' mysql-uroot-p123456 mysql> create database cacti; mysql> grant all on cacti. * to cacti @ 'localhost' identified by '000000'; mysql> flush privileges; mysql-u cacti-p123456 cacti </var/www/html/cacti. SQL c> configure the snmpd service vim/etc/snmp/snmpd. conf [plain] 41 com2sec notConfigUser 127.0.0.1 public 62 access notConfigGroup "" any noauth exact all none 85 view all included. 1 80 service snmpd start d> configure the cacti directory permission useradd cacti-d/var/www/html/cacti-s/bin/false chown-R root: root/var/www/html/cacti/chown-R cacti: cacti/var/www/html/cacti/rra/var/www/html/cacti/log e> configure the cacti connection database vim/var/www/html/cacti/include/config. php [plain] 29 $ database_username = "cacti"; 30 $ database_password = "123456 "; f> configure cron scheduler task crontab-u cacti-e [plain] */5 *****/usr/bin/php/var/www/html/cacti/poller. php &>/dev/null 5> configuration complete. set chkconfig httpd on chkconfig mysqld on chkconfig snmpd on