CactiHowTo

Differences between revisions 7 and 8
Revision 7 as of 2005-11-22 02:24:28
Size: 3400
Editor: extslv3
Comment:
Revision 8 as of 2005-11-22 02:26:21
Size: 3400
Editor: extslv3
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
=== Installing Cacti for Ubuntu - Part 1 ===; ''''Installing Cacti for Ubuntu - Part 1''''
Line 46: Line 46:
=== Installing Cacti for Ubuntu - Part 2 === ''''Installing Cacti for Ubuntu - Part 2''''
Line 64: Line 64:
=== Installing Cacti for Ubuntu - Part 3: Errors FAQ (Work In Progress)=== ''''Installing Cacti for Ubuntu - Part 3: Errors FAQ (Work In Progress)''''

'Installing Cacti for Ubuntu - Part 1'

1. Open up a terminal window, easiest to log in as root 2. Install Apache2 (If not already installed): apt-get install apache2

3. Install MySQL components (If not already installed): apt-get install php5-mysql apt-get install mysql-server

4. During the mysql-server installation, select the following options if your not sure what else to use: Internet Site localhost.localdomain (for the purposes of this install of cacti, i just left this as default)

5. Install Cacti: apt-get install cacti

6. During the cacti installation, select the following options if your not sure what else to use:

MySQL server host name: localhost Database name for cacti: cacti Cacti database username: cacti Cacti user password: cacti_password Webserver type: Apache2

7. Install the MYSQL database: mysql_install_db

8. Create a MySQL database called "cacti": mysqladmin --user=root create cacti

9. Type mysql to enter into MySQL management.

10. At the mysql> prompt, type: GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY "cacti_password";

NOTE: make "cacti_password" whatever you set the cacti password to during the installation of cacti.

11. Type exit

12. Back at shell type: zcat /usr/share/doc/cacti/cacti.sql.gz |mysql -u cacti -p cacti

13. You will be prompted for a password here, use the same password again you set during the installation of cacti.

'Installing Cacti for Ubuntu - Part 2'

1. Open a web browser on the machine with cacti installed

2. Type <b><a href="http://localhost/cacti">http://localhost/cacti</a></b> into the address bar. Note, you can also use the IP address or DNS address of the PC instead of using "localhost".</li>

3. Click Next

4. Make sure New Install is selected and click Next

5. If all steps in Part 1 were followed correctly, all options on this page should show as <font color="green">[FOUND]</font>

6. Make sure NET-SNMP 5.x and RRDTool 1.2.x are selected and click Next

7. At this point, you should be prompted to login. You can use the username Admin and any password you previously set for this account, if any. The fault password should be admin. Upon logging in you'll most likely be forced to change your password for security purposes.

8. You should now be logged into cacti, if you need further assistance from here, it most likely won't be ubuntu specific so you should be able to refer to the generic guides on http://www.cacti.net/ .

'Installing Cacti for Ubuntu - Part 3: Errors FAQ (Work In Progress)'

Q1. When I go to localhost/cacti, I keep getting the follow error: Warning: mysql_connect() [function.mysql-connect]: Access denied for user: 'cacti@localhost' (Using password: YES) in /usr/share/adodb/drivers/adodb-mysql.inc.php on line 338 A. If you get this error, you've set the wrong password for cacti in mysql. To fix it, follow steps 9 & 10 in Part 1 of this guide.

Q2. The default password won't work when I try to log in through the web interface, how can I log in? A. Go back to command line and type mysql. At the mysql> prompt, type update user_auth set password = md5('admin') where username = 'admin';

CactiHowTo (last edited 2008-08-06 16:19:00 by localhost)