Cacti Simple deployment

Source: Internet
Author: User
Tags rrdtool

Cacti Simple Deployment

    1. Cacti Introduction
    1. Structure of this chapter

    1. Common platforms

Common server monitoring software

Cacti , flow and performance monitoring mainly ----http://www.cacti.net/

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

Other related tools

RRDtool , poll data Tools

    1. SNMP principle

Category

Label

The information that is contained

system

(1)

host or router operating system

interfaces

(2)

Various network interfaces and their measured traffic

address transiation

(3)

address translation (e.g. ARP mapping)

ip

(4)

internet Software (IP packet statistics)

icmp

(5)

icmp Software (statistics of ICMP messages received)

tcp

(6)

tcp software (algorithms, parameters and statistics)

udp

(7)

UDP Software (UDP traffic statistics)

Egp

(8)

EGP Software (External Gateway Protocol traffic statistics)

    1. Working structure of cacti

C/S mode, collect monitoring data

b/S mode, management monitoring platform

    1. Environment deployment

environment: host a and host b The operating system is centos6.6 x86_64 , minimized installation, all closed selinux a as the monitoring side, the host b as being imported Euguantang, ip addresses are 192.168.131.138 192 168.131.139

    1. Deploying the Cacti Runtime environment

# yum-y Install httpd mysql mysql-server mysql-devel php php-mysql

# yum-y Install zlib freetype libjpeg fontconfig libxml2 gd PHP-GD

# yum-y Install RRDtool

# yum-y Install Net-snmp net-snmp-utils

# service httpd Start

# Chkconfig httpd on

# service Mysqld Start

# Chkconfig Mysqld on

# service SNMPD Start

# chkconfig SNMPD on

    1. Installing cacti

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

# cd/var/www/html/

# MV 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 ' 123456 ';

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 </var/www/html/cacti/cacti.sql

in the browser input http://192.168.131.138/cacti/install/ , enter Cacti Installation Wizard

    1. Configuring the monitored side

# yum-y Install Net-snmp

# vim/etc/snmp/snmpd.conf

Com2sec Notconfiguser 192.168.131.138 public123

Access Notconfiggroup "" Any noauth exact none none

View all included. 1 80

# service SNMPD Start

    1. Configure Server-side

# vim/etc/snmp/snmpd.conf

# Service SNMPD Restart

    1. Configuring monitoring

in the Cacti Web Interface

Click on the " Devices " à "Add"

Add an image tree

Monitoring side operation

# SU–CACTI

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

# crontab–e

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

Set Crond task to make it every 5 minutes to execute once

# Chkconfig Crond on

The image shows up.

Cacti Simple 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.