Install and deploy Cacti in CentOS 6.6

Source: Internet
Author: User
Tags rrdtool

Install and deploy Cacti in CentOS 6.6

About Cacti

Structure of this Chapter

Common platforms

Common server monitoring software

Cacti, mainly used for traffic and performance monitoring ---- http://www.cacti.net/

Nagios, mainly responsible for service and performance monitoring-http://www.nagios.org/

Other related tools

RRDtool

SNMP principles

Category

Label

Information contained

System

(1)

Operating system of the host or router

Interfaces

(2)

Various Network Interfaces and Their measured traffic

Address transiation

(3)

Address Translation (for example, ARP ing)

Ip

(4)

Internet software (IP group statistics)

Icmp

(5)

ICMP software (statistics on received ICMP messages)

Tcp

(6)

TCP software (algorithms, parameters, and statistics)

Udp

(7)

UDP software (UDP traffic statistics)

Egp

(8)

EGP software (external gateway protocol traffic statistics)

Cacti working structure

C/S mode, collecting Monitoring Data

B/S mode, management and monitoring platform

Environment deployment

Environment: the operating systems of host A and host B are CentOS6.6 x86_64. If the installation is minimized, SELINUX and firewall are disabled. host a is used as the monitoring terminal and host B is imported to the Champions League, the IP addresses are 192.168.131.138 and 192 respectively. 168.131.139.

Deploy the cacti Runtime Environment

# Yum-y install httpd mysql-server mysql-devel php-mysql

# Yum-y install zlib freetype libjpeg fontconfig libxml2 gd php-gd

# Yum-y install rrdtool

# Yum-y install net-snmp-utils

# Service httpd start

# Chkconfig httpd on

# Service mysqld start

# Chkconfig mysqld on

# Service snmpd start

# Chkconfig snmpd on

Install cacti

# Tar cacti-0.8.7g.tar.gz-C/var/www/html/

# Cd/var/www/html/

# Music cacti-0.8.7g/cacti

# Vim cacti/include/config. php

# Mysql

Mysql> create database cacti;

Mysql> grant all on cacti. * to 'cactiuser' @ 'localhost' identified by '123 ';

Mysql> flush privileges;

Mysql> exit

# Chown-R root: root/var/www/html/cacti/

# Useradd cacti

# Chown-R cacti: cacti/var/www/html/cacti/log/

# Chown-R cacti: cacti/var/www/html/cacti/rra/

# Mysql cacti

Enter http: // 192.168.131.138/cacti/install/in the browser to enter the cacti Installation Wizard.

Configure the monitored end

# Yum-y install net-snmp

# Vim/etc/snmp/snmpd. conf

Com2sec notConfigUser 192.168.131.138 public123

Access notConfigGroup "" any noauth exact all none

View all supported ded. 1 80

# Service snmpd start

Configure the server

# Vim/etc/snmp/snmpd. conf

# Service snmpd restart

Configuration monitoring

On the cacti web Interface

Click "Devices" à "add"

Add image tree

Monitoring operations

# Su-cacti

$ Php/var/www/html/cacti/poller. php # Start Data Synchronization

# Crontab-e

*/5 */usr/bin/php/var/www/html/cacti/poller. php

Set a crond task to be executed every 5 minutes.

# Chkconfig crond on

The image is displayed.

-------------------------------------- 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

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

Cacti details: click here
Cacti: click here

This article permanently updates the link address:

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.