Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Suggest HOWTO

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th November 2006, 13:33
sysconfig sysconfig is offline
Junior Member
 
Join Date: Nov 2006
Location: (.)
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sysconfig
Default 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!
__________________
Linux Web Administrator
Optimize, secure and performance tunning for Apache || MySQL5.1 Cluster How To
The visionary conceives the impossible, The missionary makes it possible. ...Gita.
Reply With Quote
Sponsored Links
  #2  
Old 21st November 2006, 12:06
Daniel15 Daniel15 is offline
Junior Member
 
Join Date: Nov 2006
Location: Melbourne, Australia
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey, are you from the cPanel forums?

Nice tutorial You do know that you can submit tutorials to HowtoForge.com, right? Just go to http://www.howtoforge.com/add_howto
Reply With Quote
  #3  
Old 21st November 2006, 12:37
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Arrow Cacti howto

There is a howto already here: http://www.howtoforge.com/cacti_ispconfig
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #4  
Old 21st November 2006, 13:07
sysconfig sysconfig is offline
Junior Member
 
Join Date: Nov 2006
Location: (.)
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sysconfig
Default

Quote:
Originally Posted by Daniel15
Hey, are you from the cPanel forums?

Nice tutorial You do know that you can submit tutorials to HowtoForge.com, right? Just go to http://www.howtoforge.com/add_howto
Yes, I am posting in cPanel forums too as "Manuel_accu"

Thanks
__________________
Linux Web Administrator
Optimize, secure and performance tunning for Apache || MySQL5.1 Cluster How To
The visionary conceives the impossible, The missionary makes it possible. ...Gita.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie ububtu 6.0.6 error PHP binary line 816 davidsky73 Installation/Configuration 8 17th September 2006 11:51
ISPConfig-2.2.2 installation problem (empty mysql db after installation) sfrank Installation/Configuration 4 25th May 2006 14:56
ISPC install stops str2etboy Installation/Configuration 19 28th January 2006 07:18
Problems getting through the installation klausagnoletti Installation/Configuration 4 26th September 2005 12:23
Trouble with Installation. cjkeeme Installation/Configuration 3 3rd August 2005 18:46


All times are GMT +2. The time now is 13:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.