Comments

Friday, October 19, 2012

How to install cacti on ubuntu server

Posted by at 12:55 PM Read our previous post
Cacti is one application open source for network monitoring and create a complete network graph. This is for example :

 

OK, lets go to how to install cacti on ubuntu server. I use ubuntu server 12.04. On my ubuntu server installed web server (apache, mysql, and php). There are two ways to install cacti, first use repository and second use source.

# Use repository

1. Install rddtool : apt-get install rrdtool

2. Install snmp and snmpd : apt-get install snmp snmpd

3. If you use repository type on terminal : sudo apt-get install cacti

4. And than follow instruction on your screen.

#Use source

1. If you use source, you must download on CACTI , ok save on your drive.

2. Install rddtool : apt-get install rrdtool

3. Move on your path directory web service, ussualy on /var/www . Type cd /var/www/

4. Extract file cacti , use tar zxvf /home/lab/cacti-0.8.8a.tar.gz

5. Rename directory extrct : mv cacti-0.8.8a cacti/

6. Move on cacti directory : cd cacti/

7. Change owner file : chown -R www-data:www-data rra/ log/

8. Create database cacti, i use name cacti.

mysql -u root -p

mysql> create user 'cacti'@'%';

mysql> set password for 'cacti'@'%'=old_password('cactipass');

mysql> GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY 'cactipass';

mysql> flush privileges;

mysql> exit;

9. Import database cacti.sql to database cacti : mysql -u root -p cacti < cacti.sql

10. Install snmp and snmpd : apt-get install snmp snmpd

11. Configure file config cacti with name database, username, and password : nano /home/cacti/include/config.php 

$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "cactipass";
$database_port = "3306";
$database_ssl = false;

 

If you finish install use reporitory or source, Access use your browser, http://ip-address/cacti , and follow instruction on web.

 press Next

 press Next

 press Finish

And than login with username and password : admin admin



Change your admin password



Finish, you have Cacti on your Ubuntu Server.



 

8 comments:

©2012 How To For is powered by Blogger - Template designed by Stramaxon - Best SEO Template