Complete cacti configuration for CentOS Installation

Source: Internet
Author: User

I. installation environment: System Version: Centos 5.3 64-bit here cacti: http://www.cacti.net/downloads/cacti-0.8.7g.tar.gz、official installation :* * LAMP environment deployment:

 
 
  1. Here is how to install LAMP in yum in 5 minutes:

  2. Yum install httpd mysql-server php-mysql-y

1. Install the corresponding lib library before installing rrdtool:
 
 
  1. yum install cairo-devel libxml2-devel pango pango-devel –y

  2. tar xzf rrdtool-1.4.5.tar.tar

  3. cd rrdtool-1.4.5

  4. ./configure --prefix=/usr/local/rrdtool/

  5. make

  6. make install

  7. ln -s /usr/local/rrdtool/bin/* /usr/local/bin/

2. Install SNMP:
 
 
  1. tar xzf net-snmp-5.4.3.tar.gz

  2. cd net-snmp-5.4.3

  3. ./configure --prefix=/usr/local/net-snmp/

  4. make

  5. make install

  6. ln -s /usr/local/net-snmp/bin/* /usr/local/bin/

  7. cp EXAMPLE.conf /usr/local/net-snmp/share/snmp/snmpd.conf

  8. /usr/local/net-snmp/sbin/snmpd -c /usr/local/net-snmp/share/snmp/snmpd.conf

  9. echo “/usr/local/net-snmp/sbin/snmpd -c /usr/local/net-snmp/share/snmp/snmpd.conf” >>/etc/rc.local

Here I actually use yum install net-snmp-y to install it. 3. Install cacti
 
 
  1. Tar xzf cacti-0.8.7g.tar.gz & cp cacti-0.8.7g/usr/local/apache2/htdocs/cacti

  2. Next, create a cacti database and configure it as follows:

  3. Mysql-uroot-p enter your password to enter the database, and then create the database:

  4. Create database cacti; create a database

  5. Grant all on cacti. * to cactiuser @ 'localhost' identified by '000000'; create a user and authorize

  6. Flush privileges; refresh permission

4. After configuring mysql, import the cacti data to the cacti database:
 
 
  1. Mysql-ucactiuser-p cacti </usr/local/apache2/htdocs/cacti. SQL

  2. Enter cacituser's password 123456.

5. Add the following to crontab: */1 *****/usr/bin/php/var/www/html/cacti/poller. php 3. After the above configuration is complete, we can directly install it. Access http: // server ip/cacti/install/index directly. php. If an error is reported, the problem is solved: It is not safe to rely on the system's timezone settings php.

Iv. cacti Optimization

When we have thousands of servers and a single cacti server is slow to check, what should we do? In this case, we can consider optimizing the mysql database, creating indexes, and using the spine training method!

This article from the "Wu guangke-Focus on automated O & M" blog, please be sure to keep this source http://wgkgood.blog.51cto.com/1192594/563574


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.