hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : cacti installation how to
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

cacti installation how to

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 11-04-2006, 08:36 AM
linuxweb linuxweb is offline
Disabled
 
Join Date: Oct 2006
Location: (.)
Posts: 63

cacti installation how to


Original how to is posted at: http://forums.linuxwebadmin.info/ind...pic,153.0.html

Introduction:

Cacti is a complete frontend to RRDTool, it stores all of the necessary information to create graphs and populate them with data in a MySQL database. The frontend is completely PHP driven. Along with being able to maintain Graphs, Data Sources, and Round Robin Archives in a database, cacti handles the data gathering. There is also SNMP support for those used to creating traffic graphs with MRTG.

Cacti requirement:

MySQL
PHP
RRDTool
net-snmp
php-snmp
Apache (compiled with php support)


MySQL configuration for cacti:


Code:
[root:~]# mysql -uroot -p
Enter password: 
mysql> create database cactidb;
mysql> grant all on cactidb.* to root;
mysql> grant all on cactidb.* to root@localhost;
mysql> grant all on cactidb.* to cactiuser;
mysql> grant all on cactidb.* to cactiuser@localhost;
mysql> set password for cactiuser@localhost=password('cactipw');
mysql> flush privileges;
mysql> exit
[root:~]#
RRDTool Installation:

Code:
[root:~]# cd /usr/local/src/
[root:~]# wget http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool.tar.gz
[root:~]# tar -zxf rrdtool.tar.gz
[root:~]# cd rrdtool*
[root:~]# ./configure
[root:~]# make
[root:~]# make install
[root:~]# make site-perl-install
[root:~]# cd ..
[root:~]# rm -fr rrdtool*
[root:~]#
Download and setup cacti:

Code:
[root:~]# group-add cacti
[root:~]# useradd -g cacti cactiuser
Code:
[root:~]# tar -zxvf cacti*
[root:~]# mv cacti-0.8.xx /home/cactiuser/cacti
[root:~]# cd /home/cactiuser/cacti
[root:~]# mysql --user=root --password=rootpw cactidb < cacti.sql
[root:~]# chown -R cactiuser rra/ log/
Make the proper changes for database and database password:

[root:~]# vi /include/config.php

Code:
$database_defaut = “cactidb”;
$database_hostname = “localhost”;
$database_username = “cactiuser”;
$database_password = “cactipw”
Add this cron in /etc/crontab

*/5 * * * * cactiuser php /home/cactiuser/cacti/poller.php > /dev/null 2>&1

Add an alias or virtual host in your apache configuration file:

Alias /cacti/ "/home/cactiuser/cacti/"

Save and restart the apache and mysql service.

Post Installation Steps:

Browse the below mentioned URL:

http://localhost/cacti

-OR-

http://remoteIP/cacti

Code:
1. Click Next
2. Default (New Install) -> Click Next
3. In third step you will have to provide the correct path of rrdtool and php
RRDTOOL = /usr/local/rrdtool-1.2.15/bin/rrdtool
4. Click Finish
5. Login with Username/Password: admin/admin
6. Change Password for user admin
7. Click Save
Thats all cacti is installed!

Reply With Quote


Sponsored Links
  #2  
Old 11-04-2006, 11:46 AM
Scott.Mc Scott.Mc is offline
Engineer
 
Join Date: Jan 2005
Location: Scotland, UK
Posts: 2,380
Good tutorial, I was just thinking less than 30 minutes ago about making a cacti tutorial(as I was installing it) but no need now

-Scott

Reply With Quote
  #3  
Old 11-06-2006, 02:36 AM
linuxweb linuxweb is offline
Disabled
 
Join Date: Oct 2006
Location: (.)
Posts: 63
Thanks for the comment!!!

Reply With Quote
Sponsored Links
  #4  
Old 11-19-2006, 02:57 PM
Ks Jeppe Ks Jeppe is offline
Aspiring Evangelist
 
Join Date: Mar 2006
Posts: 418
Wouldnt you have to restart crond as well, or is that just me remembering wrong?

You might want to add a "more info" section at the buttom with links to the cacti forum, the RRDTool website and others that might prove useful if the user has problems with the tutorial...

Furthermore, note that on many servers RRDTool cant install with tcl bindings, you'll get an error during make, to fix this, do ./configure --disable-tcl instead of ./configure. Same goes for python, in general so ./configure --disable-tcl --disable-python if you have any problems with the default configure...

Reply With Quote
  #5  
Old 11-20-2006, 08:24 AM
linuxweb linuxweb is offline
Disabled
 
Join Date: Oct 2006
Location: (.)
Posts: 63
Thanks for the information!

Reply With Quote
  #6  
Old 12-02-2006, 07:45 AM
mygethosted mygethosted is offline
WHT Addict
 
Join Date: May 2004
Location: Malaysia
Posts: 162
Hi,

Is there a way to consolidate all the servers into a single cacti?

Reply With Quote
  #7  
Old 12-04-2006, 04:05 AM
DigiCrime DigiCrime is offline
Web Hosting Master
 
Join Date: Mar 2002
Location: St. Louis, MO
Posts: 1,371
Quote:
Originally Posted by mygethosted
Hi,

Is there a way to consolidate all the servers into a single cacti?
Using SNMP you can

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
cPanel & WHM Software 11.36 Reaches Stable Tier Status Web Hosting News 2013-04-09 11:44:33
Quality Technology Services Offers Free Installation of Data Center Panels Web Hosting News 2013-01-30 14:47:05
Join us in Scottsdale, AZ tonight for the WHIR Networking Event Blog 2011-09-22 17:03:41
Web Host JaguarPC Adds Auto-Installer Softaculous to Hosting Plans Web Hosting News 2011-07-27 18:55:46
Web Hosting Sales and Promos Roundup - June 17, 2011 Web Hosting News 2011-06-17 19:54:48


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?