Cacti + rrdtool + Netsnmp traffic and performance monitoring system installation transcript in RHEL5.4

Source: Internet
Author: User
Tags php software rrdtool
According to the company's new project requirements, a traffic and Performance Monitoring System server was configured with Cacti in RHEL5.4 over the past two days. The installation process has been recorded for reference by myself and other friends. Cacti is a set of graphic analysis tools for network traffic monitoring developed based on PHP, MySQL, SNMP, and RRDTool. Cacti is developed based on the PHP language and requires PHP + MySQL support during runtime, first, install a LAMP environment. 1. The installation environment should meet the company's new project requirements. In the past two days, a server of the traffic and performance monitoring system was configured with Cacti under RHEL5.4, and the installation process has been recorded, for your reference and other friends. Cacti is a set of graphic analysis tools for network traffic monitoring developed based on PHP, MySQL, SNMP, and RRDTool. Cacti is developed based on the PHP language and requires PHP + MySQL support during runtime, first, install a LAMP environment.   I. installation environmentOperating System: Red Hat Enterprise Linux 5.4 Database: MySQL: mysql-5.1.46Web server: Apache: httpd-2.2.15WEB language: PHP: php-5.2.13   Ii. Install MySQLSoftware Package mysql-5.1.46.tar.gz http://dev.mysql.com/downloads/mysql/# tar-zxvf mysql-5.1.46.tar.gz // decompress # cd mysql-5.1.46 // enter the decompressed file directory #. /configure -- prefix =/usr/local/mysql \ // set the installation directory -- enable-thread-safe-client \ // compile the client library of thread security edition -- without-debug \ // disable the debug function # make // compile # make install // install #/usr/local/mysql/bin/mysql_install_db // initialize the authorization table # chown-R root/usr/ local/mysql // change the file attribute to the root user # chgrp-R root/usr/local/mysql // change the file attribute to the root user group #/usr/local/mysql/bin/ mysqld_safe -- user = root & // start MySQL #/usr/local/mysql/bin/mysqladmin-u root password '000000' // modify the password of the root user to 123456 # echo" /usr/local/mysql/bin/mysqld_safe -- user = mysql & ">/etc/rc. local // Add MySQL to start   3. install ApacheSoftware Package httpd-2.2.15.tar.gz http://httpd.apache.org/download.cgi# tar-zxvf httpd-2.2.15.tar.gz # cd httpd-2.2.15 #. /configure -- prefix =/usr/local/apache -- enable-so # make install #/usr/local/apache/bin/apachectl start // start Apache # echo "/ usr/local/apache/bin/apachectl start ">/etc/rc. local // Add to start   4. install PHP1. Check whether zlib libpng jpeg freetype fontconfig gd # rpm-qa | grep * is installed in the library file (* indicates the names of the above files and checks them one by one). Note: I have installed PHP Software Package php-5.2.13.tar.gz http://www.php.net/downloads.php# tar-zxvf php-5.2.13.tar.gz # cd php-5.2.13 #. /configure -- prefix =/usr/local/php \ -- with-apxs2 =/usr/local/apache/bin/apxs -- with-mysql =/usr/local/mysql -- with-gd -- with-png-dir -- with-jpeg-dir -- with-freetype-dir -- enable-gd-native-ttf -- with-ttf -- enable-gd-jis-conv -- enable -xml -- enable-mbstring -- enable-sockets # make install # cp php. ini-dist/usr/local/php/lib/php. ini modify php. in the INI file, locate the following content and remove the semicolon: # vi/usr/local/php/lib/php. ini; extension = php_bz2.dll; extension = php_gd2.dll; extension = Beijing; extension = php_mysql.dll; extension = Beijing; extension = php_snmp.dll; extension = php_sockets.dll; extension = php_xmlrpc.dll; extension = php_zip.dll   5. Configure Apache Httpd. conf Document and Test1. Edit/usr/local/apache/conf/httpd. the conf file adds the index after the DirectoryIndex. php adds the following two lines after AddType application: AddType application/x-httpd-php. phpAddType applicatoin/x-httpd-php-source. phps2, restart apache #/usr/local/apache/bin/apachectl restart3, test and write an index. the contents of the PHP file in the home page Directory are as follows: Enter http: // server IP Address/in the browser. If php information exists, the Linux + apache + php + mysql environment is successfully configured.   6. Install rrdtool1. Install rrdtool to support some library files cairo-devel libxml2-devel pango-devel pango libpng-devel freetype-devel libart lgpl-devel intltool first run the rpm-qa | grep * command to check the library file exists in my RHEL5.4 system. Only the intltool is not installed with the system, now you must first install this library file, otherwise rrdtool compilation will report an error, prompting the intltool support can be intltool installation process: Software Package intltool-0.40.6.tar.gz http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/intltool-0.40.6.tar.gz#tar-zxvf intltool-0.40.6.tar.gz # cd intltool-0.40.6 #. /configure // if the following error occurs in this step (my error occurs), follow these steps to resolve the XML prompt in configure :: the specific solution to the Parser perl module is required for intltool error is as follows: # After perl-MCPAN-e shell, follow the prompts to go down step by step (my choice is not manual installation ), after the configuration is complete, a> command prompt is displayed. Enter the following command> install XML: Parser, wait for it to complete installation, and exit, re-configure is OK # make install2133 install rrdtoolsoftware package rrdtool-1.3.8.tar.gz http://down1.chinaunix.net/distfiles/rrdtool-1.3.8.tar.gz#tar-zxvf rrdtool-1.3.8.tar.gz # cd rrdtool-1.3.8 #. /configure -- prefix =/usr/local/rrdtool -- disable-tcl # make install # ln-s/usr/local/rrdtool/bin/*/usr/local/bin/
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.