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