Detailed description of Cacti installation configuration in Ubuntu

Source: Internet
Author: User
Tags rrd rrdtool
I originally wanted to install the source code, but now I find it too troublesome to install it directly through apt-getinstall. I. Cacti Overview 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, rrdtoo

Preface:

I originally wanted to install the source code, but now I find it too difficult to install it through apt-get install.

I. Cacti Overview

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 variable data and call variable data, such as host name, Host ip address, snmp group name, port number, template information, and other variables.

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.

Ii. System Environment

1. Linux Ubuntu-server 3.5.0-23-generic x86_64

Iii. Installation of apache, mysql, and php

Reference: http://www.linuxidc.com/Linux/2014-10/107924.htm

4. cacti Installation

Enadmin @ ubuntu-server :~ $ Apt-get update
Enadmin @ ubuntu-server :~ $ Sudo apt-get install cacti

The dependency package is displayed after installation.

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
Libperl5.14 libphp-adodb libsensors4 libsnmp-base libsnmp15 mysql-server php5-snmp rrdtool snmp
Suggested packages:
Php5-ldap php5-adodb lm-sensors snmp-mibs-downloader
The following NEW packages will be installed:
Cacti libperl5.14 libphp-adodb libsensors4 libsnmp-base libsnmp15 mysql-server php5-snmp rrdtool snmp
0 upgraded, 10 newly installed, 0 to remove and 113 not upgraded.
Need to get 4,205 kB/4,574 kB of archives.
After this operation, 12.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y


Get: 1 http://mirrors.163.com/ubuntu/ precise-security/main php5-cli amd64 5.3.10-1ubuntu3. 13 [3,051 kB]
Get: 2 http://mirrors.163.com/ubuntu/ precise-security/main php5-mysql amd64 5.3.10-1ubuntu3. 13 [76.6 kB]
Get: 3 http://mirrors.163.com/ubuntu/ precise-security/main php5-gd amd64 5.3.10-1ubuntu3. 13 [38.8 kB]
Get: 4 http://mirrors.163.com/ubuntu/ precise-security/main libapache2-mod-php5 amd64 5.3.10-1ubuntu3. 13 [3,137 kB]
Get: 5 http://mirrors.163.com/ubuntu/ precise-security/main php5-common amd64 5.3.10-1ubuntu3. 13 [1,774 kB]
Get: 6-http://mirrors.163.com/ubuntu/ precise-security/main libsnmp-base all 5.4.3 ~ Dfsg-2.4ubuntu1.2 [217 kB]
Get: 7 http://mirrors.163.com/ubuntu/ precise-security/main libsnmp15 amd64 5.4.3 ~ Dfsg-2.4ubuntu1.2 [1,334 kB]
Get: 8 http://mirrors.163.com/ubuntu/ precise-security/main mysql-server all 5.5.38-0ubuntu0. 12.04.1 [11.4 kB]
Get: 9 http://mirrors.163.com/ubuntu/ precise-security/main php5-snmp amd64 5.3.10-1ubuntu3. 13 [11.0 kB]
Get: 10 http://mirrors.163.com/ubuntu/ precise-security/main snmp amd64 5.4.3 ~ Dfsg-2.4ubuntu1.2 [162 kB]
Fetched 9,813 kB in 16 s (594 kB/s)
Precycling packages...
Package configuration

The installation process is as follows:

Select Apache2 and then install some software.

Selecting previusly unselected package libsensors4.
(Reading database... 58559 files and directories currently installed .)
Unpacking libsensors4 (from.../libsensors4_1% 3a3. 3.1-2ubuntu1_amd64.deb )...
Preparing to replace php5-cli 5.3.10-1ubuntu3. 10 (using.../php5-cli_5.3.10-1ubuntu3.13_amd64.deb )...
Unpacking replacement php5-cli...
Preparing to replace php5-mysql 5.3.10-1ubuntu3. 10 (using.../php5-mysql_5.3.10-1ubuntu3.13_amd64.deb )...
Unpacking replacement php5-mysql...
Preparing to replace php5-gd 5.3.10-1ubuntu3. 10 (using.../php5-gd_5.3.10-1ubuntu3.13_amd64.deb )...
Unpacking replacement php5-gd...
Preparing to replace libapache2-mod-php5 5.3.10-1ubuntu3. 10 (using.../libapache2-mod-php5_5.3.10-1ubuntu3.13_amd64.deb )...
Unpacking replacement libapache2-mod-php5...
Preparing to replace php5-common 5.3.10-1ubuntu3. 10 (using.../php5-common_5.3.10-1ubuntu3.13_amd64.deb )...
Unpacking replacement php5-common...
Selecting previusly unselected package libperl5.14.
Unpacking libperl5.14 (from.../libperl5.14 _ 5.14.2-6ubuntu2. 4_amd64.deb )...
Selecting previusly unselected package libphp-adodb.
Unpacking libphp-adodb (from.../libphp-adodb_5.12-1_all.deb )...
Selecting previusly unselected package libsnmp-base.
Unpacking libsnmp-base (from.../libsnmp-base_5.4.3 ~ Dfsg-2.4ubuntu1.2_all.deb )...
Selecting previusly unselected package libsnmp15.
Unpacking libsnmp15 (from.../libsnmp15_5.4.3 ~ Dfsg-2.4ubuntu1.2_amd64.deb )...
Selecting previusly unselected package mysql-server.
Unpacking mysql-server (from.../mysql-server_5.5.38-0ubuntu0.12.04.1_all.deb )...
Selecting previolet unselected package php5-snmp.
Unpacking php5-snmp (from.../php5-snmp_5.3.10-1ubuntu3.13_amd64.deb )...
Selecting previusly unselected package snmp.
Unpacking snmp (from.../snmp_5.4.3 ~ Dfsg-2.4ubuntu1.2_amd64.deb )...
Selecting previusly unselected package rrdtool.
Unpacking rrdtool (from.../rrdtool_1.4.7-1_amd64.deb )...
Selecting previusly unselected package cacti.
Unpacking cacti (from.../cacti_0.8.7i-2ubuntu1_all.deb )...
Processing triggers for man-db...
Setting up libsensors4 (. 3.1-2ubuntu1 )...
Setting up php5-common (5.3.10-1ubuntu3. 13 )...
Setting up php5-cli (5.3.10-1ubuntu3. 13 )...
Setting up libapache2-mod-php5 (5.3.10-1ubuntu3. 13 )...
* Reloading web server config apache2
... Done.
Setting up php5-mysql (5.3.10-1ubuntu3. 13 )...
Setting up php5-gd (5.3.10-1ubuntu3. 13 )...
Setting up libperl5.14 (5.14.2-6ubuntu2. 4 )...
Setting up libphp-adodb (5.12-1 )...
Setting up libsnmp-base (5.4.3 ~ Dfsg-2.4ubuntu1.2 )...
Setting up libsnmp15 (5.4.3 ~ Dfsg-2.4ubuntu1.2 )...
Setting up mysql-server (5.5.38-0ubuntu0. 12.04.1 )...
Setting up php5-snmp (5.3.10-1ubuntu3. 13 )...
Setting up snmp (5.4.3 ~ Dfsg-2.4ubuntu1.2 )...
Setting up rrdtool (1.4.7-1 )...
Setting up cacti (0.8.7i-2ubuntu1 )...
Dbconfig-common: writing config to/etc/dbconfig-common/cacti. conf

Creating config file/etc/dbconfig-common/cacti. conf with new version

Creating config file/etc/cacti/debian. php with new version
Granting access to database cacti for cacti @ localhost: success.
Verifying access for cacti @ localhost: success.
Creating database cacti: success.
Verifying database cacti exists: success.
Populating database via SQL... done.
Dbconfig-common: flushing administrative password

Creating config file/etc/cacti/apache. conf with new version

Creating config file/etc/cacti/lighttpd. conf with new version
* Reloading web server config apache2
... Done.
Processing triggers for libc-bin...
Ldconfig deferred processing now taking place

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

Use Cacti + Spine monitoring host in RHEL6.4 to send mail alarm http://www.linuxidc.com/Linux/2013-11/92795.htm

Remote Host http://www.linuxidc.com/Linux/2013-11/92796.htm using Cacti + Spine monitoring in RHEL6.4

CentOS 5.5 complete installation Cacti + Spine http://www.linuxidc.com/Linux/2011-12/49701.htm

Cacti building document http://www.linuxidc.com/Linux/2013-06/86595.htm under CentOS 6

Http://www.linuxidc.com/Linux/2013-06/85427.htm of Cacti monitoring deployment under RHEL5.9

CentOS 6.3 Cacti Installation Details http://www.linuxidc.com/Linux/2013-05/84279.htm

Quick installation and configuration of Cacti Chinese http://www.linuxidc.com/Linux/2013-03/81627.htm in CentOS Linux

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

For more details, refer to the highlights on the next page.: Http://www.linuxidc.com/Linux/2014-10/108129p2.htm

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.