Cacti Construction Detailed

Source: Internet
Author: User
Tags rrdtool snmp

Cacti Build a detailed

Vast's here.

Note: If the document picture is not viewable click this link link http://down.51cto.com/data/1906675 download the document, by learning.

Cacti is a set of graphical analysis tools for network traffic monitoring based on PHP,MYSQL,SNMP and RRDTool development.

simple Cacti PHP program. It obtains the remote network device and related information by using the SNMP protocol (in fact, using NET-SNMP package snmpget and snmpwalk tool drawing, through PHP program shows. We use it to show the status or performance trend of a monitored object over time.

Cacti is a set of network traffic monitoring graphical analysis tools based on PHP,MYSQL,SNMP and RRDTool development, if the LAMP is built with an error /http/ down.51cto.com/data/1905420 Click to download to see the LAMP environment building. It uses SNMP to get data, use RRDtool to draw graphics, and you can completely not need to understand RRDtool complex parameters. It provides very powerful data and user management functions, can specify each user can view the tree structure,host and any map, but also with the LDAP user authentication, but also can add their own templates, powerful, friendly interface.

installing rrdtool,RRDtool requires support for some library files.

#yum Install cairo-devel libxml2-develpango-devel pango libpng-devel freetype freetype-devel libart_lgpl-develintltool

download site : http://oss.oetiker.ch/rrdtool/pub

#tar ZXVF rrdtool-1.3.8.tar.gz

#cd rrdtool-1.3.8

#./configure--PREFIX=/USR/LOCAL/RRDTOOL--DISABLE-TCL

#make && make Install

#ln-S/usr/local/rrdtool/bin/*/usr/local/bin/

Install native SNMP Related Services

# yum Install Net-snmp net-snmp-develnet-snmp-libs net-snmp-utils

#/ETC/INIT.D/SNMPD Restart

Stop snmpd: [ OK ]

starting snmpd: [ OK ]

#vim/etc/snmp/snmpd.conf

Modify default to 127.0.0.1, such as:

# Sec.name Source Community

Com2sec notconfiguser 127.0.0.1 Public

change The systemview of these lines to all :

# Group Context sec.modelsec.level prefix read Write Notif

Access Notconfiggroup "" Any noauth exact None None

and enable the line:view allincluded. 1 80

# # INCL/EXCL Subtree Mask

Viewall included. 1 80

Cat/etc/snmp/snmpd.conf|egrep "com2sec|group|access" |grep-v "^#" check again with the command

Com2sec notconfiguser 127.0.0.1 Public

Group Notconfiggroup v1 Notconfiguser

Group Notconfiggroup v2c Notconfiguser

Access Notconfiggroup "" Any noauth exact none none

You have new mail in/var/spool/mail/root

To install the cacti download website:

http://www.cacti.net/download_cacti.php

Select cacti for Linux/unix in Tar.gzformat

#tar ZXVF cacti-0.8.7h.tar.gz

#mkdir/var/www/html/cacti

#mv cacti-0.8.7h/*/var/www/html/cacti

#useradd cacti

#chown-R Cacti:cacti/var/www/html/cacti

Login MySQL, create new data, and authorize

#mysql –uroot –p

>use MySQL;

>update user Setpassword=password ("123456") where user= "root";

>flush privileges;

>quit

#mysql –uroot –p123456

Mysql>create database cacti;

Mysql>grant all on cacti.* [email protected] ' localhost ' identified by ' cacti ';

Mysql>flush privileges;

import The cacti database

#cd/var/www/html/cacti

# mysql-uroot-p123456 Cacti <cacti.sql

To modify the cacti installation configuration file

#vi/var/www/html/cacti/include/config.php

$database _type = "MySQL";

$database _default = "cacti";

$database _hostname = "localhost";

$database _username = "cacti";

$database _password = "cacti";

$database _port = "3306";

$database _ssl = false;

#/usr/bin/php/var/www/html/cacti/poller.php

join The cron service to make the traffic on the picture tick-timed

#crontab –e */5 * * * * * env/usr/bin/php/var/www/html/cacti/poller.php

Note: If the system does not have a cron service installed, please install it using yum install Vixie-cron

Initialize Settings

Enter the IP http://ip/cacti of the server via the browser

650) this.width=650; "border=" 0 "width=" 552 "height=" 527 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

Click Next " NEXT"

650) this.width=650; "border=" 0 "width=" 556 "height=" 470 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

Click on the " NEXT"

650) this.width=650; "border=" 0 "width=" 568 "height=" 768 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

The above is the cacti scan to each configuration of the file path, if all is green click "Finish", appear red words, individually modified. cacti default will be found in the system RRDtool,SNMP Some of the program file path, if the above installation is correct, the following interface appears. Note:the RRDtool, and net-snmp versions should be selected correctly

650) this.width=650; "border=" 0 "width=" 552 "height=" 434 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

The "user name" and "password" are both "admin" and"admin" at this time.

650) this.width=650; "border=" 0 "width=" 552 "height=" 434 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

Create a new password for admin users and make two confirmations

650) this.width=650; "border=" 0 "width=" 551 "height=" 728 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>

The above interface appears before the configuration is successful.


This article from "vast brother" blog, declined reprint!

Cacti Construction Detailed

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.