Linux Cacti Installation Configuration

Source: Internet
Author: User
Tags net snmp php mysql rrdtool snmp

The first part

  1. First to install the Epel extension source

    Yum Install Epel-release

  2. Then install HTTP PHP MySQL separately

    Yum install httpd php php-mysql mysql mysql-server mysql-devel php-gd libjpeg libjpeg-devel libpng libpng-devel

  3. Installing cacti NET-SNMP RRDtool

    Yum install-y cacti Net-snmp net-snmp-utils rrdtool

  4. Start the service

    /etc/init.d/mysqld start

    /ETC/INIT.D/HTTPD start

    /ETC/INIT.D/SNMPD start

  5. Edit httpd configuration file

    Vim/etc/httpd/conf.d/cacti.conf

    Change deny from all to allow from all

    /ETC/INIT.D/HTTPD restart

  6. Import data Create cacti Library

    MYSQL-UROOT-E "CREATE Database Cacti"

    Create cacti User

    MYSQL-UROOT-E "Grant all on cacti.*to ' cacti ' @ ' 127.0.0.1 ' identified by ' cacti ';"

    Import SQL file

    Mysql-uroot Cacti </usr/share/doc/cacti-0.8.8b/cacti.sql

  7. Edit Cacti configuration file

    vim/usr/share/cacti/include/config.php changes as follows

    $database _type = "MySQL";

    $database _default = "cacti";

    $database _hostname = "127.0.0.1";

    $database _username = "cacti";

    $database _password = "cacti";

    $database _port = "3306";

    $database _ssl = false;

  8. Configure SNMPD

    In line 41st, modify the

    Com2sec notconfiguser 127.0.0.1 Public

    (if this is a monitored machine, as long as the 127.0.0.1 modified to cacti installed server IP address, the monitored server only need to install SNMPD, and open)

    In line 62nd, modify the

    Access Notconfiggroup "" Any noauth exact none none

    Remove the previous # number in line 85th

    View all included. 1 80

  9. Web Access cacti and installation

    http://ip/cacti/

    Click "Next" and "finish" at two.

  10. Perform poller.php, generate graphs, join scheduled Tasks

    CRONT-E Increase

    */5 * * * */usr/bin/php/usr/share/cacti/poller.php

  11. Client Installation SNMP

    Yum Install-y Net-snmp

  12. Modify snmpd.conf

    Modify Syslocation and Syscontact, where syslocation can write a machine ip,syscontact writing the admin mailbox


  13. Start SNMP

    Service SNMPD Start

  14. Login to the Cacti management background, click Console, click Device, in the top right corner, click "Add"

    Description Write machine IP or you customize a name

    Hostname Machine IP

    Host Template Select/ucd/net SNMP Host

    Version 2 of SNMP version selected



Linux Cacti Installation Configuration

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.