特殊:Badtitle/NS100:Cacti:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示同一用户的7个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/Cacti}} | {{From|https://help.ubuntu.com/community/Cacti}} | ||
{{Languages|UbuntuHelp:Cacti}} | {{Languages|UbuntuHelp:Cacti}} | ||
<<Include(Tag/Unsupported)>> | |||
== Introduction == | == Introduction == | ||
[http://www.cacti.net/ Cacti] is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices. | [http://www.cacti.net/ Cacti] is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices. | ||
== Cacti on Gutsy == | == Cacti on Gutsy == | ||
=== snmpd setup === | === snmpd setup === | ||
apt-get install snmp snmpd | apt-get install snmp snmpd<<BR>> | ||
snmpconf -g basic_setup | snmpconf -g basic_setup | ||
== Installing Cacti on Ubuntu 6.06 LTS (Dapper Drake) == | == Installing Cacti on Ubuntu 6.06 LTS (Dapper Drake) == | ||
=== Caveats === | === Caveats === | ||
* These instructions are for the graphical installer. Server installation instructions are found below. | * These instructions are for the graphical installer. Server installation instructions are found below. | ||
* If this procedure doesn't work for you, try the previous procedure which is documented below. | * If this procedure doesn't work for you, try the previous procedure which is documented below. | ||
=== Install MySQL server === | === Install MySQL server === | ||
To install MySQL server you need to install the mysql-server package | To install MySQL server you need to install the mysql-server package | ||
=== Install Cacti === | === Install Cacti === | ||
<ol><li>You can get the cacti package from the Universe Repository. | |||
</li><li>Click "Forward" on the warning titled "Configuring libphp-adodb" | |||
</li><li>If you have entered a root password for MySQL, enter it on the window titled "Password of your database's administrative user:".</li></ol> | |||
If the root password is blank, just hit enter and continue. | |||
<ol><li>Leave the question "MySQL application password for Cacti" blank and hit "Forward".</li></ol> | |||
* Note: The system will create a random password for you, so you don't need to enter one | * Note: The system will create a random password for you, so you don't need to enter one | ||
<ol><li>On the "Webserver type" question, select "Apache2" and then click "Forward"</li></ol> | |||
=== Setup Cacti === | === Setup Cacti === | ||
<ol><li>Visit the website of your Cacti server, should be similar to "http://localhost/cacti/" | |||
</li><li>This should automatically initiate the "Cacti Installation Guide" in your web-browser | |||
</li><li>Click "Next", "Next", and "Finish" to complete this guide | |||
</li><li>Login to Cacti with the default username and password of "admin" and "admin" | |||
</li><li>You will be forced to change the "admin" password to something new | |||
</li><li>'''Cacti is now successfully installed!'''</li></ol> | |||
=== Recommended: Create a root password for MySQL === | === Recommended: Create a root password for MySQL === | ||
If you have a blank root password for MySQL then you are recommended to create one. | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo mysqladmin -u root password "YourPasswordGoesHere" | sudo mysqladmin -u root password "YourPasswordGoesHere" | ||
</nowiki></pre> | </nowiki></pre> | ||
== Installing Cacti on Ubuntu Server 6.06 (Dapper Drake) == | == Installing Cacti on Ubuntu Server 6.06 (Dapper Drake) == | ||
<ol><li>To install MySQL-server install the mysql-server package. | |||
</li><li>To install Cacti install the cacti package from the Universe Repository. | |||
</li><li>Leave the question "Password of your database's administrative user:" blank and hit "Forward". | |||
</li><li>Leave the question "MySQL application password for Cacti" blank and hit "Forward".</li></ol> | |||
*Note: The system will create a random password for you, so you don't need to enter one | *Note: The system will create a random password for you, so you don't need to enter one | ||
<ol><li>On the "Webserver type" question, select "Apache2" and then click "Forward"</li></ol> | |||
=== Setup Cacti === | === Setup Cacti === | ||
<ol><li>Visit the website of your Cacti server, should be similar to "http://server.ip.address/cacti/" | |||
</li><li>This should automatically initiate the "Cacti Installation Guide" in your web-browser | |||
</li><li>Click "Next", "Next", and "Finish" to complete this guide | |||
</li><li>Login to Cacti with the default username and password of "admin" and "admin" | |||
</li><li>You will be forced to change the "admin" password to something new | |||
</li><li>'''Cacti is now successfully installed!'''</li></ol> | |||
=== Recommended: Create a root password for MySQL === | === Recommended: Create a root password for MySQL === | ||
Now you need to create a root password for MySQL | Now you need to create a root password for MySQL | ||
第57行: | 第65行: | ||
1. Open up a terminal window, easiest to log in as root | 1. Open up a terminal window, easiest to log in as root | ||
2. Install Apache2 (If not already installed) by installing the apache2 package. | 2. Install Apache2 (If not already installed) by installing the apache2 package. | ||
}}} (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]). | }}} (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]). | ||
3. Install MySQL components (If not already installed) by installing the php5-mysql and mysql-server packages (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]). | 3. Install MySQL components (If not already installed) by installing the php5-mysql and mysql-server packages (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]). | ||
4. During the mail server installation, select the following options if you're not sure what else to use: | 4. During the mail server installation, select the following options if you're not sure what else to use: | ||
<pre><nowiki>Internet Site | |||
<pre><nowiki> | |||
Internet Site | |||
localhost.localdomain (for the purposes of this install of cacti, i just left this as default)</nowiki></pre> | localhost.localdomain (for the purposes of this install of cacti, i just left this as default)</nowiki></pre> | ||
5. Install Cacti by installing the Cacti package in Ubuntu (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]). | 5. Install Cacti by installing the Cacti package in Ubuntu (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]). | ||
6. During the cacti installation, select the following options if you're not sure what else to use: | 6. During the cacti installation, select the following options if you're not sure what else to use: | ||
<pre><nowiki> | <pre><nowiki> | ||
MySQL server host name: localhost | MySQL server host name: localhost | ||
第72行: | 第84行: | ||
</nowiki></pre> | </nowiki></pre> | ||
7. Install the MySQL database: (ignore the mysql instructions to change your password; proceed to step 8.) | 7. Install the MySQL database: (ignore the mysql instructions to change your password; proceed to step 8.) | ||
<pre><nowiki> | <pre><nowiki> | ||
mysql_install_db | mysql_install_db | ||
</nowiki></pre> | </nowiki></pre> | ||
8. Create a MySQL database called "cacti": | 8. Create a MySQL database called "cacti": | ||
<pre><nowiki> | <pre><nowiki> | ||
mysqladmin --user=root create cacti | mysqladmin --user=root create cacti | ||
</nowiki></pre> | </nowiki></pre> | ||
9. Type '''mysql''' to enter into MySQL management. | 9. Type '''mysql''' to enter into MySQL management. | ||
10. At the mysql> prompt, type: | 10. At the mysql> prompt, type: | ||
<pre><nowiki> | <pre><nowiki> | ||
第96行: | 第111行: | ||
=== Installing Cacti for Ubuntu - Part 2 === | === Installing Cacti for Ubuntu - Part 2 === | ||
1. Open a web browser on the machine with cacti installed | 1. Open a web browser on the machine with cacti installed | ||
2. Type | 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''' | 3. Click '''Next''' | ||
4. Make sure '''New Install''' is selected and click '''Next''' | 4. Make sure '''New Install''' is selected and click '''Next''' | ||
第103行: | 第118行: | ||
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. | 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/] . | 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) === | === Installing Cacti for Ubuntu - Part 3: Errors FAQ (Work In Progress) === | ||
'''Q1.''' When I go to localhost/cacti, I keep getting the follow error: | '''Q1.''' When I go to localhost/cacti, I keep getting the follow error: | ||
第127行: | 第143行: | ||
'''A.''' I believe there's a problem with the package. This sql query is just broken - though it may be the log process munging the report of the query being attempted rather than the query itself. I was able to clear this error by running 'sudo apt-get remove cacti' and installing 0.8.6i manually. (I think the package currently installs 0.8.6h) | '''A.''' I believe there's a problem with the package. This sql query is just broken - though it may be the log process munging the report of the query being attempted rather than the query itself. I was able to clear this error by running 'sudo apt-get remove cacti' and installing 0.8.6i manually. (I think the package currently installs 0.8.6h) | ||
---- | ---- | ||
[[category: | [[category:CategoryNetworking]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月19日 (三) 21:49的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Cacti }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/af | • {{#if: UbuntuHelp:Cacti|Afrikaans| [[::Cacti/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/ar | • {{#if: UbuntuHelp:Cacti|العربية| [[::Cacti/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/az | • {{#if: UbuntuHelp:Cacti|azərbaycanca| [[::Cacti/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/bcc | • {{#if: UbuntuHelp:Cacti|جهلسری بلوچی| [[::Cacti/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/bg | • {{#if: UbuntuHelp:Cacti|български| [[::Cacti/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/br | • {{#if: UbuntuHelp:Cacti|brezhoneg| [[::Cacti/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/ca | • {{#if: UbuntuHelp:Cacti|català| [[::Cacti/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/cs | • {{#if: UbuntuHelp:Cacti|čeština| [[::Cacti/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/de | • {{#if: UbuntuHelp:Cacti|Deutsch| [[::Cacti/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/el | • {{#if: UbuntuHelp:Cacti|Ελληνικά| [[::Cacti/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/es | • {{#if: UbuntuHelp:Cacti|español| [[::Cacti/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/fa | • {{#if: UbuntuHelp:Cacti|فارسی| [[::Cacti/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/fi | • {{#if: UbuntuHelp:Cacti|suomi| [[::Cacti/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/fr | • {{#if: UbuntuHelp:Cacti|français| [[::Cacti/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/gu | • {{#if: UbuntuHelp:Cacti|ગુજરાતી| [[::Cacti/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/he | • {{#if: UbuntuHelp:Cacti|עברית| [[::Cacti/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/hu | • {{#if: UbuntuHelp:Cacti|magyar| [[::Cacti/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/id | • {{#if: UbuntuHelp:Cacti|Bahasa Indonesia| [[::Cacti/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/it | • {{#if: UbuntuHelp:Cacti|italiano| [[::Cacti/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/ja | • {{#if: UbuntuHelp:Cacti|日本語| [[::Cacti/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/ko | • {{#if: UbuntuHelp:Cacti|한국어| [[::Cacti/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/ksh | • {{#if: UbuntuHelp:Cacti|Ripoarisch| [[::Cacti/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/mr | • {{#if: UbuntuHelp:Cacti|मराठी| [[::Cacti/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/ms | • {{#if: UbuntuHelp:Cacti|Bahasa Melayu| [[::Cacti/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/nl | • {{#if: UbuntuHelp:Cacti|Nederlands| [[::Cacti/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/no | • {{#if: UbuntuHelp:Cacti|norsk| [[::Cacti/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/oc | • {{#if: UbuntuHelp:Cacti|occitan| [[::Cacti/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/pl | • {{#if: UbuntuHelp:Cacti|polski| [[::Cacti/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/pt | • {{#if: UbuntuHelp:Cacti|português| [[::Cacti/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/ro | • {{#if: UbuntuHelp:Cacti|română| [[::Cacti/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/ru | • {{#if: UbuntuHelp:Cacti|русский| [[::Cacti/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/si | • {{#if: UbuntuHelp:Cacti|සිංහල| [[::Cacti/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/sq | • {{#if: UbuntuHelp:Cacti|shqip| [[::Cacti/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/sr | • {{#if: UbuntuHelp:Cacti|српски / srpski| [[::Cacti/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/sv | • {{#if: UbuntuHelp:Cacti|svenska| [[::Cacti/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/th | • {{#if: UbuntuHelp:Cacti|ไทย| [[::Cacti/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/tr | • {{#if: UbuntuHelp:Cacti|Türkçe| [[::Cacti/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/vi | • {{#if: UbuntuHelp:Cacti|Tiếng Việt| [[::Cacti/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/yue | • {{#if: UbuntuHelp:Cacti|粵語| [[::Cacti/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/zh | • {{#if: UbuntuHelp:Cacti|中文| [[::Cacti/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/zh-hans | • {{#if: UbuntuHelp:Cacti|中文(简体)| [[::Cacti/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Cacti | UbuntuHelp:Cacti | {{#if: | :}}Cacti}}/zh-hant | • {{#if: UbuntuHelp:Cacti|中文(繁體)| [[::Cacti/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Cacti|:Cacti|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Cacti/zh | | {{#ifexist: Cacti/zh | | {{#ifeq: {{#titleparts:Cacti|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Cacti|1|-1|}} | zh | | }}
<<Include(Tag/Unsupported)>>
Introduction
Cacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices.
Cacti on Gutsy
snmpd setup
apt-get install snmp snmpd<
>
snmpconf -g basic_setup
Installing Cacti on Ubuntu 6.06 LTS (Dapper Drake)
Caveats
- These instructions are for the graphical installer. Server installation instructions are found below.
- If this procedure doesn't work for you, try the previous procedure which is documented below.
Install MySQL server
To install MySQL server you need to install the mysql-server package
Install Cacti
- You can get the cacti package from the Universe Repository.
- Click "Forward" on the warning titled "Configuring libphp-adodb"
- If you have entered a root password for MySQL, enter it on the window titled "Password of your database's administrative user:".
If the root password is blank, just hit enter and continue.
- Leave the question "MySQL application password for Cacti" blank and hit "Forward".
- Note: The system will create a random password for you, so you don't need to enter one
- On the "Webserver type" question, select "Apache2" and then click "Forward"
Setup Cacti
- Visit the website of your Cacti server, should be similar to "http://localhost/cacti/"
- This should automatically initiate the "Cacti Installation Guide" in your web-browser
- Click "Next", "Next", and "Finish" to complete this guide
- Login to Cacti with the default username and password of "admin" and "admin"
- You will be forced to change the "admin" password to something new
- Cacti is now successfully installed!
Recommended: Create a root password for MySQL
If you have a blank root password for MySQL then you are recommended to create one.
sudo mysqladmin -u root password "YourPasswordGoesHere"
Installing Cacti on Ubuntu Server 6.06 (Dapper Drake)
- To install MySQL-server install the mysql-server package.
- To install Cacti install the cacti package from the Universe Repository.
- Leave the question "Password of your database's administrative user:" blank and hit "Forward".
- Leave the question "MySQL application password for Cacti" blank and hit "Forward".
- Note: The system will create a random password for you, so you don't need to enter one
- On the "Webserver type" question, select "Apache2" and then click "Forward"
Setup Cacti
- Visit the website of your Cacti server, should be similar to "http://server.ip.address/cacti/"
- This should automatically initiate the "Cacti Installation Guide" in your web-browser
- Click "Next", "Next", and "Finish" to complete this guide
- Login to Cacti with the default username and password of "admin" and "admin"
- You will be forced to change the "admin" password to something new
- Cacti is now successfully installed!
Recommended: Create a root password for MySQL
Now you need to create a root password for MySQL
- Note: Choose a password and place it between the quotation marks below
sudo mysqladmin -u root password "YourPasswordGoesHere"
Previous Documentation on Installing Cacti
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) by installing the apache2 package.
}}} (see InstallingSoftware). 3. Install MySQL components (If not already installed) by installing the php5-mysql and mysql-server packages (see InstallingSoftware). 4. During the mail server installation, select the following options if you're 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 by installing the Cacti package in Ubuntu (see InstallingSoftware). 6. During the cacti installation, select the following options if you're 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 the 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 [1] into the address bar. Note, you can also use the IP address or DNS address of the PC instead of using "localhost". 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 [FOUND] 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 [2] .
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. A2. You can also get this message if you run the GRANT ALL command without the quotes around the password or without the semi-colon at the end. 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';
Q3. I get a "red X" and my graphs will not display properly. A. I have found that this is because the mysql module sometimes does not get properly registered with PHP. Run the command "php -m" and if you do not see mysql listed then this is your problem. Run the command "dpkg-reconfigure php5-mysql" to correct the problem and then run the command "php -m" again to see if it is now listed. Run the command "apache2ctl restart" to restart the Apache server. Q4. I get a "red X" and my graphs will not display properly.
Fatal error: Call to undefined function mysql_pconnect() in /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 372
A. This is probably due to the fact that the poller runs using the commandline php. So you have to edit /etc/php5/cli/php.ini and make sure you add extension=mysql.so. Q5. When I add a graph, I notice an error in the log: "CMDPHP: Poller[0] ERROR: SQL Exec Failed "update data_template_data set rrd_maximum='|query_ifSpeed|' where local_data_id=8"" A. I believe there's a problem with the package. The query is trying to update a field in a column that doesn't exist in the table data_template_data. I was able to clear this error by running 'sudo apt-get remove cacti' and installing 0.8.6i manually. (I think the package currently installs 0.8.6h) I didn't locate a .php file that had both the string 'data_template_data' and the string 'rrd_maximum' but something launched that sql command. Q6. When I change the Title of a graph, the graph disappears from the list. The log says, "CMDPHP: Poller[0] ERROR: SQL Assoc Failed "select data_input_fields.type_code, data_input_data.value from (data_input_fields,data_input_data) where data_input_fields.id=data_input_data.data_input_field_id and data_input_data.data_template_data_id= and (data_input_fields.type_code='index_type' or data_input_fields.type_code='index_value' or data_input_fields.type_code='output_type')" A. I believe there's a problem with the package. This sql query is just broken - though it may be the log process munging the report of the query being attempted rather than the query itself. I was able to clear this error by running 'sudo apt-get remove cacti' and installing 0.8.6i manually. (I think the package currently installs 0.8.6h)