Detailed description of Cacti monitoring deployment under RHEL5.9

Source: Internet
Author: User
Tags rrdtool
Cacti is a system monitoring graphical analysis tool developed based on php, mysql, snmp, and rrdtool. It obtains data through snmp, you can use rrdtool to draw images without having to understand the complex command parameters of rrdtool. It provides a very powerful data and user management interface, you can specify that each user can view the tree structure and any image of the host, and perform user authentication in combination with LDAP. You can also add custom monitoring templates to monitor windows operating systems, powerful functions, user interface

Cacti is a system monitoring graphical analysis tool developed based on php, mysql, snmp, and rrdtool. It obtains data through snmp, you can use rrdtool to draw images without having to understand the complex command parameters of rrdtool. It provides a very powerful data and user management interface, you can specify that each user can view the tree structure and any image of the host, and perform user authentication in combination with LDAP. You can also add custom monitoring templates to monitor windows operating systems, powerful functions and user-friendly interfaces. Currently, cacti is widely used, such as portal websites, IDC data centers, like Beijing tongniu information data center and China Unicom data center, cacti has been used as the network traffic monitoring system. Of course, my company is also using cacti to complete some monitoring roles, let's sort it out and share it with you!

 

Install apache

123456 tar xzvf httpd-2.2.24.tar.gzcd httpd-2.2.24./configure --prefix=/usr/local/apache --enable-somake && make install/usr/local/apache/bin/apachectl startecho "/usr/local/apache/bin/apachectl start" >> /etc/rc.local

 

Install mysql

123456789101112 tar xzvf mysql-5.1.65.tar.gzcd mysql-5.1.65./configure --prefix=/usr/local/mysql --with-extra-charsets=gbk,gb2312,utf8make && make installcd /usr/src/source/mysql-5.1.65/cp support-files/my-medium.cnf /etc/mysql/my.cnf./scripts/mysql_install_db --user=mysqlchown -R mysql.mysql /usr/local/mysql/datachgrp -R root.mysql /usr/local/mysql/usr/local/mysql/bin/mysqld_safe --user=mysql &/usr/local/mysql/bin/mysqladmin -uroot password 123456echo "/usr/local/mysql/bin/mysqld_safe --user=mysql &" >> /etc/rc.local

 

Install php

1234567 yum install libpng libpng-devel libjpeg libjpeg-devel freetype freetype-devel gd gd-develtar xzvf php-5.4.11.tar.gzcd php-5.4.11./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apche/bin/apxs --with-mysql=/usr/local/mysql -with-gd --with-freetype-dir --with-jpeg-dir --with-png-dir --enable-socketsmake && make installln -s /usr/local/php/bin/* /usr/local/bincp php.ini-dist /usr/local/php/lib/php.ini

 

Edit httpd. conf and add the following content to the configuration file:

 

Modify DirectoryIndex content

Test with a php Probe

Cd/usr/local/apache/htdocs/

Cat test. php

123 phpinfo();?>

Install rrdtool

123456 yum install cairo-devel libxml2-devel pango pango-develtar xzvf rrdtool-1.4.6.tar.gzcd rrdtool-1.4.6./configure --prefix=/usr/local/rrdtoolmake && make installln -s /usr/local/rrdtool/bin/* /usr/local/bin/

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.