Install Cacti monitoring in Ubuntu

Source: Internet
Author: User
Tags rrd rrdtool
Install the Cacti monitoring software under Ubuntu11.10. Cacti is a good monitoring software written in php and presented through rrd plotting. Install the gcc Basic Environment sudoapt-getinstallbuild-essentialsudoapt-getinstallflexsudoapt-getinstalllibmysqlclient15-devsudoap

Install the Cacti monitoring software in Ubuntu 11.10. Cacti is a good monitoring software written in php and presented through rrd plotting. The installation steps are as follows:

1. Install the gcc Basic Environment
Sudo apt-get install build-essential
Sudo apt-get install flex
Sudo apt-get install libmysqlclient15-dev
Sudo apt-get install libtool
Sudo apt-get install libltdl3-dev
Sudo apt-get install libxml2-dev

2. Install mysql
Sudo atp-get install mysql-server

3. install apache and php5
Sudo apt-get install apache2
Sudo apt-get install php5
Sudo apt-get install libapache2-mod-php5
Sudo apt-get install php5-gd
Sudo apt-get install php5-dev
Sudo/etc/init. d/apache2 restart

Apache and php should support mysql later
Sudo apt-get install libapache2-mod-auth-mysql
Sudo apt-get install php5-mysql
Sudo/etc/init. d/apache2 restart

4. Install snmp
Sudo apt-get install snmp

5. Install rrdtool
Sudo apt-get install rrdtool

6. Configuration
Download http://www.cacti.net/downloads/cacti-0.8.7e.tar.gz
Decompress the package
Sudo tar-xvf cacti-0.8.7e.tar.gz/var/www.net.com/
Sudo music cacti-0.8.7e cacti
Cd cacti

Add User
Useradd cactiuser
Passwd cactiuser

Connect to database
Mysql-uroot-p
\ N

Mysql> create database cacti;
Mysql> exit;

Import Data
Mysql-uroot-p cacti>/var/www/cacti. SQL

Connect again
Mysql> grant all privileges on cacti. * to cactiuser @ localhost identified by 'cactiuser ';
Mysql> flush privileges;
Mysql> exit;

Edit Scheduled task
Sudo vim/etc/crontab;
Add the following code:
*/5 * cactiuser php5/var/www/cacti/poller. php>/dev/null 2> & 1

Save and exit. Restart apache. Okay.
Access
Http: // localhost/cacti
Set the password for the first time.
Enter.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.