CactiHowTo

Differences between revisions 3 and 6 (spanning 3 versions)
Revision 3 as of 2005-11-22 02:11:13
Size: 4053
Editor: extslv3
Comment:
Revision 6 as of 2005-11-22 02:24:04
Size: 3404
Editor: extslv3
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
<ol>
<li>
Open up a terminal window, easiest to log in as root</li>
<li>Install Apache2 (If not already installed):</li>
<ul>
        <li><b>
apt-get install apache2</b></li>
</ul>
1. Open up a terminal window, easiest to log in as root
2. Install Apache2 (If not already installed):[br]
'''apt-get install apache2'''
Line 10: Line 7:
<li>Install MySQL components (If not already installed):</li>
<ul>
        <li><b>
apt-get install php5-mysql</b></li>
        <li><b>apt-get install mysql-server</b></li>
</ul>
3. Install MySQL components (If not already installed):
'''apt-get install php5-mysql'''
'''apt-get install mysql-server'''
Line 16: Line 11:
<li>During the mysql-server installation, select the following options if your not sure what else to use:</li>
<ul>
        <li><b>Internet Site</b></li>
        <li><b>
localhost.localdomain</b> (for the purposes of this install of cacti, i just left this as default)</li>
</ul>
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)
Line 22: Line 15:
<li>Install Cacti:</li>
<ul>
        <li><b>
apt-get install cacti</b></li>
</ul>
5. Install Cacti:
'''apt-get install cacti'''
Line 27: Line 18:
<li>During the cacti installation, select the following options if your not sure what else to use:</li>
<ul>
        <li>MySQL server host name: <b>localhost</b></li>
        <li>Database name for cacti: <b>cacti</b></li>
        <li>Cacti database username: <b>cacti</b></li>
        <li>Cacti user password: <b>cacti_password</b></li>
        <li>Webserver type: <b>Apache2</b></li>
</ul>
6. During the cacti installation, select the following options if your not sure what else to use:
Line 36: Line 20:
<li>Install the MYSQL database:</li>
<ul>
        <li><b>mysql_install_db</b></li>
</ul>
MySQL server host name: '''localhost'''
Database name for cacti: '''cacti'''
Cacti database username: '''cacti'''
Cacti user password: '''cacti_password'''
Webserver type: '''Apache2'''
Line 41: Line 26:
<li>Create a MySQL database called "cacti":</li>
<ul>
        <li><b>mysqladmin --user=root create cacti</b></li>
</ul>
7. Install the MYSQL database:
'''mysql_install_db'''
Line 46: Line 29:
<li>Type <b>mysql</b> to enter into MySQL management.</li> 8. Create a MySQL database called "cacti":
'''mysqladmin --user=root create cacti'''
Line 48: Line 32:
<li>At the mysql> prompt, type:</li>
<ul>
        <li><b>GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY "cacti_password";</b></li>
</ul>
<p>NOTE: make "cacti_password" whatever you set the cacti password to during the installation of cacti.
9. Type '''mysql''' to enter into MySQL management.
Line 54: Line 34:
<li>Type <b>exit</b></li> 10. At the mysql> prompt, type:
'''GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY "cacti_password";'''
Line 56: Line 37:
<li>Back at shell type:</li>
<ul>
        <li><b>zcat /usr/share/doc/cacti/cacti.sql.gz |mysql -u cacti -p cacti</b></li>
</ul>
<li>You will be prompted for a password here, use the same password again you set during the installation of cacti.</li>
</ol>
NOTE: make "cacti_password" whatever you set the cacti password to during the installation of cacti.
Line 63: Line 39:
<h2 class="nocH2">Installing Cacti for Ubuntu - Part 2</h2> 11. Type '''exit'''
Line 65: Line 41:
<ol>
<li>Open a web browser on the machine with cacti installed</li>
<li>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>
<li>Click <b>Next</b></li>
<li>Make sure <b>New Install</b> is selected and click <b>Next</b></li>
<li>If all steps in Part 1 were followed correctly, all options on this page should show as <font color="green">[FOUND]</font></li>
<li>Make sure <b>NET-SNMP 5.x</b> and <b>RRDTool 1.2.x</b> are selected and click <b>Next</b></li>
<li>At this point, you should be prompted to login. You can use the username <b>Admin</b> and any password you previously set for this account, if any. The fault password should be <b>admin</b>. Upon logging in you'll most likely be forced to change your password for security purposes.</li>
<li>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 <a href="http://www.cacti.net/">http://www.cacti.net/</a>.
12. Back at shell type:
'''zcat /usr/share/doc/cacti/cacti.sql.gz |mysql -u cacti -p cacti'''
Line 75: Line 44:
</ol>
<h2 class="nocH2">Installing Cacti for Ubuntu - Part 3: Errors FAQ (Work In Progress)</h2>
<ol>
<li><b>Q.</b>When I go to localhost/cacti, I keep getting the follow error:
<ul><li><font color="red">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</font></li></ul>
<p><b>A.</b>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.</li>
<li><b>Q.</b>The default password won't work when I try to log in through the web interface, how can I log in?
<p><b>A.</b>Go back to command line and type <b>mysql</b>. At the mysql> prompt, type <b>update user_auth set password = md5('admin') where username = 'admin';</b></li>
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';'''

=== 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):[br] 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)