Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-04-2006 #1
- Join Date
- Jun 2006
cacti installation how to
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.
Apache (compiled with php support)
MySQL configuration for cacti:
[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:~]#
[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:~]#
[root:~]# group-add cacti [root:~]# useradd -g cacti cactiuserCode:
[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/
[root:~]# vi /include/config.php
$database_defaut = “cactidb”; $database_hostname = “localhost”; $database_username = “cactiuser”; $database_password = “cactipw”
*/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:
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
- 11-13-2006 #2
Excellent tutorial. I just installed it recently, wish I would have seen this post!
Do you have the Reports plugin working? I can't get mine to work! I imported the sql file into the Cacti db but the plugin doesn't email me reports. When I click preview I just get a box with the subject of the report I created in there. No more.
I praise Webmin and PuTTy!
Registered Linux User: 439431