[Cacti monitoring] installing cacti monitoring under centos6.2

Source: Internet
Author: User
Tags log e rrdtool install perl
[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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.