Cacti monitoring system installation Configuration

Source: Internet
Author: User
Tags rrd rrdtool

Cacti monitoring system installation Configuration

1. About cacti

1) cacti is a software implemented in php. Its main function is to use the snmp service to obtain data and then use rrdtool to store and update data, when you need to view data, use rrdtool to generate charts and present them to users. Therefore, snmp and rrdtool are the key to cacti. Snmp is related to data collection, and rrdtool is related to data storage and chart generation.

2) mysql uses PHP programs to store and call variable data, such as host name, Host ip address, snmp group name, port number, and template information.

3) snmp captures data not stored in mysql, but stored in the rrd file generated by rrdtool (in the rra folder of the cacti root directory ). Rrdtool updates and stores data as rrd files, and rrd files as Round Robin Archive files ), the number of data records it can store has been defined at the time of creation.

2. Prepare the Software Package

-------------------------------------- Split line --------------------------------------

Cacti-0.8.8b.tar.gz
Httpd-2.2.23.tar.gz
Php-5.4.10.tar.gz
Cmake-2.8.11.2.tar.gz
Mysql-5.5.28.tar.gz
Rrdtool-1.4.8.tar.gz
Net-snmp-5.7.2.1.tar.gz
Python-2.7.6.tgz
Libxml2-2.9.1.tar.gz
Zlib-1.2.8.tar.gz
Jpegsrc.v9a.tar.gz
Libpng-1.6.12.tar.gz
Freetype-2.5.3.tar.gz
Libart_lgpl-2.3.21.tar.gz
Gettext-0.19.2.tar.xz
Libgd-2.1.0.tar.gz
Curl-7.37.1.tar.gz

-------------------------------------- Split line --------------------------------------

In RHEL6.4, the Cacti + Spine monitoring host is used to send mail alarms.

Use Cacti + Spine to monitor remote hosts in RHEL6.4

CentOS 5.5 complete installation of Cacti + Spine

Cacti construction document under CentOS 6

Detailed description of Cacti monitoring deployment under RHEL5.9

How to install Cacti in CentOS 6.3

Quick installation and configuration of Cacti in CentOS Linux


3. apache installation and configuration

# Tar zxvf httpd-2.2.23.tar.gz

# Cd httpd-2.2.23

#./Configure -- prefix =/usr/local/apache2 -- enable-so

# Make & make install

# Cp/usr/local/apache2/bin/apachectl/etc/init. d/httpd


4. install and configure mysql

# Tar zxvf cmake-2.8.11.2.tar.gz

# Cd cmake-2.8.11.2

#./Configure

# Make & make install

# Groupadd mysql

# Useradd mysql

# Tar zxvf mysql-5.5.28.tar.gz

# Cd mysql-5.5.28

# Cmake. -DCMAKE_INSTALL_PREFIX =/usr/local/mysql/-DMYSQL_DATADIR =/usr/local/mysql/data-encoding = 1-runtime = 3306-DEXTRA_CHARSETS = all-DDEFAULT_CHARSET = utf8-DDEFAULT_COLLATION utf8_general_ci-DMYSQL_UNIX_ADDR =/usr/local/mysql/data/mysql. sock-DMYSQL_USER = mysql-DWITH_DEBUG = 0

# Make & make install

# Vim/root/. bashrc

PATH =/usr/local/mysql/bin: $ {PATH}

Export PATH

# Source/root/. bashrc

# Cp support-files/my-medium.cnf/etc/my. cnf

# Cp support-files/mysql. server/etc/init. d/mysqld

# Chmod 755/etc/init. d/mysqld

# Chmod 755/usr/local/src/mysql-5.5.28/scripts/mysql_install_db

#./Scripts/mysql_install_db -- user = mysql -- basedir =/usr/local/mysql -- datadir =/usr/local/mysql/data

# Chown-R mysql. mysql/usr/local/mysql/data

# Service mysqld start

# Mysqladmin-uroot password 123456

# Mysqladmin -- user = root-p create cacti

# Mysql-uroot-p cacti <cacti. SQL

Mysql> grant all on cacti. * TO cactiuser @ localhost identified by 'cactipassword ';

Mysql> flush privileges;

 


5. GD installation Configuration

1) install libxml2

# Tar zxvf Python-2.7.6.tgz # It seems to be only this version, otherwise the error will be reported when compiling libxml2

# Cd Python-2.7.6

#./Configure -- prefix =/usr/local/python

# Make & make install

# Tar zxvf libxml2-2.9.1.tar.gz

# Cd libxml2-2.9.1

#./Configure -- prefix =/usr/local/libxml2

# Make & make install

 


2) install zlib

# Tar zxvf zlib-1.2.8.tar.gz

# Cd zlib-1.2.8

#./Configure -- prefix =/usr/local/zlib2

# Make & make install

# Yum install-y zlib-devel

 


3) install composer SRC

# Tar zxvf restart src.v9a.tar.gz

# Cd jpeg-9a

#./Configure -- prefix =/usr/local/jpegsrc9

# Make & make install

 


4) install libpng

# Tar zxvf libpng-1.6.12.tar.gz

# Cd libpng-1.6.12

#./Configure -- prefix =/usr/local/libpng2

# Make & make install

 


5) install freetype

# Tar zxvf freetype-2.5.3.tar.gz

# Cd freetype-2.5.3

#./Configure -- prefix =/usr/local/freetype2

# Make & make install

 


6) install libart_lgpl

# Tar zxvf libart_lgpl-2.3.21.tar.gz

# Cd libart_lgpl-2.3.21

#./Configure -- prefix =/usr/local/libart

# Make & make install

 


7) install gettext

# Xz-d gettext-0.19.2.tar.xz

# Tar xvf gettext-0.19.2.tar

# Cd gettext-0.19.2

#./Configure -- prefix =/usr/local/gettext

# Make & make install

 


8) install GD

# Tar zxvf libgd-2.1.0.tar.gz

# Cd libgd-2.1.0

 


9) install curl

# Tar zxvf curl-7.37.1.tar.gz

# Cdcurl-7.37.1

#./Configure -- prefix =/usr/local/curl

# Make & make install

 


6. php installation and configuration

# Yum install-y libxml2-devel freetype-devel

# Tar zxvf php-5.4.10.tar.gz

# Cd php-5.4.10

#. /Configure -- prefix =/usr/local/php -- with-apxs2 =/usr/local/apache2/bin/apxs -- with-jpeg-dir =/usr/local/defaults 9/-- -png-dir =/usr/local/libpng2/-- with-gd -- with-freetype-dir =/usr/local/freetype2/-- with-zlib-dir =/usr/ local/zlib2/-- with-mysql =/usr/local/mysql -- with-curl =/usr/local/curl -- with-gettext =/usr/local/gettext -- enable- sockets

# Make & make install

# Cp php. ini-development/usr/local/php/lib/php. ini

# Ln-s/usr/local/php/bin/php/usr/bin

# Vim/usr/local/apache2/conf/httpd. conf

Append after # AddType application/x-tar.tgz: AddType application/x-httpd-php. php

Append: LoadModule php5_module modules/libphp5.so after # LoadModule foo_module modules/mod_foo.so.

Append index. php to the end of directoryindex.html

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

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.