CentOS 6.7 Installation configuration cacti monitoring System

Source: Internet
Author: User
Tags rrdtool snmp

First, installation and configuration lamp environment

Yum install httpd php php-mysql php-snmp php-xml php-gd MySQL mysql-server

Start HTTP and MySQL

Service httpd StartService mysqld start

Execute MySQL security settings and follow the prompts to set the root password

Mysql_secure_installation

Ii. installation of RRDtool and NET-SNMP

1, RRDtool mainly used for drawing

Yum Install RRDtool

2, NET-SNMP is mainly used for collecting and transmitting the statistics of the server.

Yum Install net-snmp net-snmp-libs net-snmp-utils

3, Configuration Net-snmp

Vim/etc/snmp/snmpd.conf
55 rows of view    SystemView    included   . 1.3. 6.1. 2.1. 1 change to view    SystemView    included   . 1.3. 6.1. 2.1

4. Start NET-SNMP

Service SNMPD Start

5. Test NET-SNMP

1 -c public localhost. 1.3. 6.1. 2.1. 1.1. 0

If the display is similar to: snmpv2-mib::sysdescr.0 = string:linux guest.guest 2.6.32-573.8.1.el6.x86_64 #1 SMP Tue Nov 18:01:38 UTC x8 6_64, indicating that NET-SNMP is working properly.

Third, download install cacti

1, download cacti, and put in the HTML directory

wget http://www.cacti.net/downloads/cacti-0.8.8f.tar.gztar zxf cacti-0.8 . 8f. Tar . GZ MV cacti-0.8. 8f/var/www/html/cacti

2. Add the cacti database in MySQL and import the template database

cd/var/www/html/cacti/--user=root--uroot-p cacti < Cacti.sql

3, create cacti user in MySQL, user name is Cactiuser, the password is tentatively 123

Mysql-u root-p GRANT all on cacti. ' 123 ' ; flush privileges;
Quit

4. Add cacti user to Linux system

Useradd Cactiuser chown -R cactiuser rra/log/

5, Configuration include/config.php

$database _type = "MySQL"; $database _default = "cacti"; $database _hostname = "localhost"; $database _username = "Cactiuser" ; $database _password = "123"; $database _port = "3306"; $database _ssl = false;

6. Add a Scheduled task

Echo " */5 * * * * cactiuser php/var/www/html/cacti/poller.php >/dev/null 2>&1 ">>/etc/crontabservice crond Restart

Iv. Initial installation of cacti

In the browser, enter: Http://www.yourdomain.com/cacti

The next step, the default initial user name and password are: admin

Five, configure the boot start

 crond on

Vi. join a new Linux monitored host (CentOS)

Install NET-SNMP on the target machine

Yum Install -y net-snmp net-snmp-perl net-snmp-devel net-snmp-utils net-snmp-libs

Start NET-SNMP (default port number 199th)

Service SNMPD Start

On the left side of the Web page, select Devices--add, fill in the hostname (IP or domain), and change the SNMP version to 2

CentOS 6.7 Installation configuration cacti monitoring System

Related Article

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.