Cacti installation Detailed steps

Source: Internet
Author: User
Tags rrd rrdtool snmp import database

I. Overview of CACTI1Cacti is a software implemented in the PHP language, its main function is to use the SNMP service to obtain data, and then use RRDtool to store and update the data, when the user needs to view the data with the RRDtool to generate a chart presented to the user. Therefore, SNMP and RRDtool are the key to cacti. SNMP is related to the collection of data, RRDtool is related to data storage and chart generation. 2. MySQL works with PHP programs to store variable data and make calls to variable data, such as host name, host IP, SNMP community name, port number, template information, and so on. 3The . SNMP catch data is not stored in MySQL, but exists in the RRDtool generated RRD file (under the Rra folder in the cacti root directory). RRDtool Update and storage of data is the processing of the RRD file, the RRD file is a fixed size file (Round Robin Archive), it can store the number of data is defined at the time of creation. Second, installation Rrdtoolcentos-6:64 bit: RPM-IVH http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/rpms/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpmYum Install RRDtool-y three, installation configuration net-SNMP1, Installation net-Snmpyum Install net-SNMP Net-snmp-libs net-snmp-Utils2, Configuration net-SNMP in/etc/snmp/modified in snmpd.conf: View SystemView included.1.3.6.1.2.1.1as: View SystemView included.1.3.6.1.2.13, Test net-snmp# service snmpd start# snmpwalk-V1-C Publiclocalhost.1.3.6.1.2.1.1.1.0SNMPv2-mib::sysdescr.0= String:linux Cronos2.4. -#2SMP Ven Jan -  -: A: onCet2005i686 installation lampyum install httpd php php-mysql php-snmp php-xml php-gd MySQL mysql-serverservice httpd startservice mysqld startmysqladmin-uroot Password Yourpasswordmysqladmin--user=root--Password reload four, installation cacti1, download Cacticd/tmpwget http://www.cacti.net/downloads/cacti-0.8.8b.tar.gzTar xzf cacti-0.8. 8B.TAR.GZMV Cacti-0.8.8b/var/www/html/Cacticd/var/www/html/Cacti2, creating a database Mysqladmin--user=root-p Create cacti3, import database MySQL-uroot-p Cacti <Cacti.sql4, creating a database user Shell> Mysql-uroot-P Mysqlmysql> GRANT all on cacti.* to [email protected] identified by'Cactipassword'; MySQL>flush Privileges;5, Configuration include/Config.php$database_type="MySQL"; $database _default="Cacti"; $database _hostname="localhost"; $database _username="Cactiuser"; $database _password="Cactipassword"; /*load up old style plugins here*/$plugins=Array ();//$plugins [] = ' thold '; /*Edit this to point to the default URL of your Cacti install ex:if your Cacti install as athttp://serverip/cacti/This would is set to/cacti/*/$url _path="/cacti/"; /*Default Session name-session name must contain alpha characters*/# $cacti _session_name="Cacti";6, set directory permissions Useradd cactiuserchown-R Cactiuser rra/log/7, configure Scheduled Tasks echo"*/5 * * * * cactiuser php/var/www/html/cacti/poller.php >/dev/null 2>&1">>/etc/crontabservice crond restartservice httpd Restart8, complete the installation of cacti1) in the browser, type: http://www.yourdomain.com/cacti/Default User name: admin Password: admin2) Change Password3set cacti command path to this point, cacti installation is complete, the server traffic monitoring settings can refer to https://www.centos.bz/2012/06/cacti-monitor-traffic/. Reference: http://Docs.cacti.net/manual:087:1_installation.1_install_unix  

Cacti installation Detailed steps

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.