Linux Cacti Monitoring deployment

Source: Internet
Author: User
Tags rrdtool snmp

One, cacti installation deployment


To build this platform is in the lamp environment, first of all to ensure that apache,mysql,php. installation is successful. There's no writing about that.


1, cacti server-side installation


Download cacti related software, total need three software, the following:

http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.5.tar.gz http:/ /www.cacti.net/downloads/spine/cacti-spine-0.8.8a.tar.gz 2, install lamp system environment: Here use Yum installation, installation command:

Yum install httpd mysql mysql-server php php-mysql php-json php-pdo-y


3, install RRDtool Collection tool

Before installing the RRDtool, you need to install the appropriate Lib library, as follows:

Yum install cairo-devel libxml2-devel pango pango-devel–y tar xzf rrdtool-1.4.5.tar.gz;  CD rrdtool-1.4.5; ./configure--prefix=/usr/local/rrdtool/make &&make Install; Ln-s/usr/local/rrdtool/bin/*/USR/LOCAL/BIN/4, install SNMP service yum install NET-SNMP net-snmp-utils–y 5, install cacti main program

Tar xzf cacti-0.8.8a.tar.gz && mv cacti-0.8.8a/var/www/html/cacti/


6. Create a cacti database

Mysql-uroot–p Enter your password into the database, and then create the database: (here is the password of the previous lamp database) create database cacti; grant all on cacti.* [email protected] ' localhost ' identified by "123456"; Create user and authorize flush privileges; Refresh Permissions

7. After MySQL configuration is complete, import the cacti data into the cacti database.

mysql-ucacti-p123456 cacti</var/www/html/cacti/cacti.sql After configuring MySQL, we need to set cacti RRA, log directory permissions, this is set to 777:chmod-r 77 7/var/www/html/cacti/rra/chmod-r 777/var/www/html/cacti/log/

8. Modify the cacti global configuration file

The vi/var/www/html/cacti/include/config.php is configured as follows:

650) this.width=650; "Src=" https://note.wiz.cn/api/document/files/unzip/c0cc1d59-cc89-442f-b362-a14f55878fbb/ 3813aa2f-3b56-351e-0437-f74d7ea9cfe6.356/index_files/f003e8cc0c3722c06e28ded8768e8bf0. PNG "style=" border:0px;margin:2px 0px;height:auto; "alt=" f003e8cc0c3722c06e28ded8768e8bf0. PNG "/>

9. Add RRDtool Capture Task plan

CRONTAB-E Create:

*/5 * * * */usr/bin/php/var/www/html/cacti/poller.php >>/tmp/cacti_rrdtool.log 2>&1

: Wq Save Exit!

Crontab-l View the schedule.

10, cacti installation completed, test access

Via http://ip/cacti/access the following interface appears, click Next Next.

650) this.width=650; "Src=" https://note.wiz.cn/api/document/files/unzip/c0cc1d59-cc89-442f-b362-a14f55878fbb/ 3813aa2f-3b56-351e-0437-f74d7ea9cfe6.356/index_files/609910fc6e6b884772b06aaf15496d68. PNG "style=" border:0px;margin:2px 0px;height:auto; "alt=" 609910fc6e6b884772b06aaf15496d68. PNG "/>

I have completed the installation directly, the login is successful.


A summary of the problem arises:


650) this.width=650; "Src=" https://note.wiz.cn/api/document/files/unzip/c0cc1d59-cc89-442f-b362-a14f55878fbb/ 3813aa2f-3b56-351e-0437-f74d7ea9cfe6.356/index_files/5fefde882447adf35830eab0d5467af5. PNG "style=" border:0px;margin:2px 0px;height:auto; "alt=" 5fefde882447adf35830eab0d5467af5. PNG "/>

I see red here, that is, the path is not found. Looked for a lot of reasons. and see Config.log error log. Query to Missing plugins:


I install: gcc

Yum Install Gcc-y


Problem solving.


There is also the source installation when executing the Make command. The package that needs to be installed. msql_5.5 the above version of the CMake.

When a make error is executed, it is checked, or the dependent packet is not fully installed. After the installation is complete, the problem is resolved.


The rear cacti+nagios perfect monitoring document will be updated and interested in welcoming the discussion.


This article is from the "Penn" blog, make sure to keep this source http://8684525.blog.51cto.com/8674525/1787676

Linux Cacti Monitoring deployment

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.