CactiHowTo

Differences between revisions 1 and 18 (spanning 17 versions)
Revision 1 as of 2005-11-22 02:09:51
Size: 4067
Editor: extslv3
Comment:
Revision 18 as of 2006-02-06 20:46:56
Size: 3473
Editor: cscfpc08
Comment: supply internet-site and localhost.localdomain to"mailserver",not "mysql server"
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
<h2 class="nocH2">Installing Cacti for Ubuntu - Part 1</h2> = Installing Cacti for Ubuntu - Part 1 =
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):
Line 10: Line 6:
<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>
{{{
apt-get install apache2
}}}
Line 16: Line 10:
<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>
3. Install MySQL components (If not already installed):
{{{apt-get install php5-mysql
apt-get install mysql-server}}}
Line 22: Line 14:
<li>Install Cacti:</li>
<ul>
        <li><b>apt-get install cacti</b></li>
</ul>
4. During the mail 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 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>
5. Install Cacti:
{{{
apt-get install cacti
}}}
Line 36: Line 23:
<li>Install the MYSQL database:</li>
<ul>
        <li><b>mysql_install_db</b></li>
</ul>
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: (ignore the mysql instructions to change your password; proceed to step 8.)
{{{
mysql_install_db
}}}
8. Create a MySQL database called "cacti":
{{{
mysqladmin --user=root create cacti
}}}
9. Type '''mysql''' to enter into MySQL management.
Line 41: Line 41:
<li>Create a MySQL database called "cacti":</li>
<ul>
        <li><b>mysqladmin --user=root create cacti</b></li>
</ul>
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.
Line 46: Line 47:
<li>Type <b>mysql</b> to enter into MySQL management.</li> 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.
Line 48: Line 57:
<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.
= Installing Cacti for Ubuntu - Part 2 =
Line 54: Line 59:
<li>Type <b>exit</b></li> 1. Open a web browser on the machine with cacti installed
Line 56: Line 61:
<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>
2. Type ["http://localhost/cacti"] into the address bar. Note, you can also use the IP address or DNS address of the PC instead of using "localhost".</li>
Line 63: Line 63:
<h2 class="nocH2">Installing Cacti for Ubuntu - Part 2</h2> 3. Click '''Next'''
Line 65: Line 65:
<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>.
4. Make sure '''New Install''' is selected and click '''Next'''
Line 75: Line 67:
</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>
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';
}}}

CategoryDocumentation CategoryCleanup

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 mail 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: (ignore the mysql instructions to change your password; proceed to step 8.)

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 ["http://localhost/cacti"] 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';

CategoryDocumentation CategoryCleanup

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