diff --git a/docs/CODING.htm b/docs/CODING.htm deleted file mode 100644 index b5f56dd12c..0000000000 --- a/docs/CODING.htm +++ /dev/null @@ -1,91 +0,0 @@ - - - - - cacti Documentation - - - - - -

Cacti Coding Standards

- -

Cacti-Specific Stuff

- -

- -

Common Sense Stuff

- -

- -

Good Developer Practices

- -

- - - - diff --git a/docs/FAQ.htm b/docs/FAQ.htm deleted file mode 100644 index 3426feb206..0000000000 --- a/docs/FAQ.htm +++ /dev/null @@ -1,201 +0,0 @@ - - - - - Cacti Frequently Asked Questions - - - - - -

Cacti Frequently Asked Questions (FAQ)

- -

Using Cacti

- -

    -
  1. - How do I create traffic graphs? - -

    Before you can create traffic graphs, Cacti must have working SNMP support. One way to do this is to - compile PHP with SNMP support built in, many times you can install the 'php-snmp' package to do this. The - second option is to have Cacti call the snmpget and snmpwalk binaries from your ucd-snmp or net-snmp - installation. You can use the about page to determine whether to are using "built-in" or "external" SNMP - support.

    - -

    Now that you have working SNMP support, follow these steps.

    - -
      -
    1. Click "Polling Hosts" on Cacti's menu.
    2. -
    3. Click "Add" to add a new polling host.
    4. -
    5. Type a description, hostname, management IP, and SNMP community. Make sure to select "Generic SNMP-enabled Host" - under "Host Template" and click "Create".
    6. -
    7. You should see one or more interfaces listed under the "Data Query [SNMP - Interface Statistics]" box. Place a - check next to each interface that you want to graph. Below the box, select type of graph that you want to create - (bits, bytes, summation, etc).
    8. -
    9. Click "Save", and "Create" on the following screen to create your graphs.
    10. -
    -
  2. -
- -

General

- -

    -
  1. - I get the following error message from Cacti: Warning: Undefined variable: _SERVER in - .../cacti/install/index.php on line 59 - -

    Cacti 0.8 and above requires that you have at least PHP 4.1 or greater installed.

    -
  2. -
  3. - I get the following error message from Cacti: Fatal error: Call to undefined function: - mysql_connect() in /usr/share/cacti/include/database.php on line 19 - -

    Your installation of PHP does not have MySQL installed or enabled. On binary-based distributions, make sure - you have the 'php-mysql' package installed. Also make sure that 'extension=mysql.so' is uncommented in your - php.ini file.

    -
  4. -
  5. - I have forgotten my 'admin' password to Cacti, how do I reset it? - -

    To reset the admin account password back to the default of 'admin', connect to your Cacti database at the command line.

    - -

    shell> mysql -u root -p cacti

    - -

    Now execute the following SQL:

    - -

    mysql> update user_auth set password='21232f297a57a5a743894a0e4a801fc3' where username='admin';

    -
  6. -
- - -

Monitoring

- -

    -
  1. - I am polling thousands of items and cmd.php takes more than 5 minutes to run. - -

    Give cactid, the future replacement for cmd.php a try. Unlike cmd.php, cactid is written in c and makes use - of pthreads. On a typical installation, it is not uncommon for cactid to poll about 500 items in less then 10 - seconds.

    -
  2. -
  3. - I changed x, and now some of my graphs are not updating. - -

    The best thing to do here is to force Cacti to rebuild its poller cache. To do this click "Utilities" - on the Cacti menu, and simply select "Clear Poller Cache".

    -
  4. -
  5. - I am using Redhat 8.0 and SNMP is not working. - -

    Redhat 8.0 comes with a broken php-snmp package. Updating your 'php-snmp' and 'net-snmp' packages to their latest - versions should fix this problem.

    -
  6. -
  7. - How do I configure net-snmp so it will work with Cacti? - -

    Run snmpconf -g basic_setup and follow the prompts. Also check that the file being used by snmpd is the correct - config file. For Redhat Linux, snmpconf creates the /etc/snmpd.conf, but snmpd uses /etc/snmpd/snmpd.conf.

    - -

    If this doesn't work a very simple config file is:

    - -

    # contact
    - syslocation Something
    - syscontact "root@someone.com"
    -
    - # auth
    - rocommunity public
    -
    - # disk monitoring
    - disk /

    -
  8. -
- -

Graphs

- -

    -
  1. - I just installed Cacti and all of my graphs appear as broken images. - -

    For you to actually get graph images, cmd.php must run at least once so it can create .rrd files in Cacti's - 'rra/' directory. Double check that you configured your /etc/crontab file to execute cmd.php every five minutes. - Also make sure that the user cmd.php runs as has permission to create new files in Cacti's 'rra/' directory.

    - -

    If all of your settings appear correct, try running cmd.php manually by cd'ing to Cacti's directory and typing:

    - -

    shell> php cmd.php

    - -

    If you have files in your 'rra/' directory, but your graphs still appear as broken images, you should enable - graph debug mode see exactly why the graphs are not rendering. To do this go into Cacti, select "Graph Management" - from the menu, select any graph listed, and select "Turn On Graph Debug Mode".

    -
  2. -
  3. - My graphs render, but they do not contain any data. - -

    More often than not, this problem's cause is permissions. For instance if you run cmd.php manually as root for - testing, any .rrd files that it creates will be owned by root. Now when cmd.php runs from cron, it will not be - able to update these .rrd files because they are owned by root. You can double check the owner of your .rrd files - by running the following command in your Cacti directory:

    - -

    shell> ls -al rra/

    - -

    If only some of your graphs are not updating correctly, double check the "Maximum Value" field for all data - sources used by these graphs. If the value being fed to the .rrd file exceeds its "Maximum Value", RRDTool will insert - an "Unknown" and you will see no data on the graph.

    -
  4. -
  5. - A lot of my graphs contain long ifAlias names, but they are being truncated to 15 characters. - -

    Cacti does this by default to better control graph title formatting. You can change this limit, by going to "Cacti - Settings" on the Cacti menu, selecting the "Visual" tab, and changing the value for "Data Queries - Maximum Field Length".

    -
  6. -
  7. - One of my devices rebooted and now I have a huge spike on my graph! - -

    This occurs because the reboot causes SNMP's counters to reset, which can cause a rather large spike on the graph - when RRDTool tries to determine the change between the new small counter value and the large previous value. One way to - combat this issue is to specify realistic maximum values for your data sources. RRDTool will ignore any value that is larger - than the maximum value.

    - -

    If you already have a spike on one or more of your graphs, there is a really - useful Perl script that will remove them for you.

    -
  8. -
- -

Windows Related

- -

    -
  1. - I get the following error message from Cacti: Fatal error: Cannot redeclare title_trim() (previously - declared in ...\cacti\include\functions.php:27) - -

    Contrary to previous versions of Cacti, you must not put Cacti in your PHP include path. Check your php.ini file to make - sure there is not something like 'include_path = C:/Apache2/htdocs/cacti'. -

  2. -
diff --git a/docs/INSTALL-WIN32.htm b/docs/INSTALL-WIN32.htm deleted file mode 100644 index 425b1bfbcf..0000000000 --- a/docs/INSTALL-WIN32.htm +++ /dev/null @@ -1,242 +0,0 @@ - - - - - Cacti Installation Instruction for Windows - - - - - -

Cacti Installation (Windows)

- -

Dependencies

- -Cacti requires: -

- -

Install PHP

- -

    -
  1. Extract PHP to c:\ and rename the new directory to 'php'.

    - -

  2. Copy the files in c:\php\dlls to c:\winnt\system32

    - -

  3. Copy the file c:\php\php4ts.dll to c:\winnt\system32

    - -

  4. Move all MIB files from c:\php\mibs to c:\usr\mibs

    - -

  5. Create the directory c:\tmp

    - -

  6. In the c:\php directory, rename the php.ini-dist file to php.ini, copy it to c:\winnt, - and make the following changes to the file:

    - -

    extension_dir = c:/php/extensions
    - extension=php_snmp.dll
    - session.save_path=c:\tmp

    - - Make sure to replace c:/webroot/cacti with your full path to cacti.

    -

- -

Configure the Webserver (Apache)

- -

    -
  1. Install the Apache web server. This is as simple as double clicking the .msi file and following the prompts. - Make sure to install it as a service and for the sake of the HOWTO, install it to c:\apache or c:\apache2

    - -

  2. If you are using Apache 1.3.x, add the following lines to your httpd.conf file in the c:\apache\conf directory:

    - -

    LoadModule php4_module c:/php/sapi/php4apache.dll
    - AddModule mod_php4.c
    - AddType application/x-httpd-php .php
    - DirectoryIndex index.html index.htm index.php

    - -

  3. If you are using Apache 2.x, add the following lines to your httpd.conf file in the c:\apache2\conf directory:

    - -

    LoadModule php4_module c:\php\sapi\php4apache2.dll
    - AddType application/x-httpd-php .php
    - DirectoryIndex index.html index.htm index.php

    - -

- -

Configure the Webserver (IIS)

- -

    -
  1. Start the Microsoft Management Console, right click on Default Web Server (in most cases) and - select Properties.

    - -

  2. Under the Home Directory tab, select Configuration and click Add. - Browse to the path of php4isapi.dll, and type in .php as the extension.

    - -

  3. Under the ISAPI Filters tab, click add and browse to the php4isapi.dll file. Name the - filter "php" and click OK.

    - -

  4. Under the Documents tab, add index.php to the list.

    - -

  5. Completely stop and start the IIS service using the following commands:

    - -

    net stop iisadmin
    - net start w3svc

    - -

- -

Install MySQL

- -

    -
  1. Extract the MySQL zip file to a temp directory and run setup.exe.

    - -

  2. Install MySQL to the c:\mysql directory.

    - -

  3. Start MySQL by running c:\mysql\bin\winmysqladmin.exe

    - -

  4. Set a password for the root user

    - -

    C:\> cd mysql\bin
    - C:\MySQL\bin> mysqladmin password 'password'
    - C:\MySQL\bin> mysqladmin --user=root --password reload


    - -
  5. Create the MySQL database:

    - -

    C:\MySQL\bin> mysqladmin --user=root --password create cacti


    - -
  6. Import the default cacti database:

    - -

    C:\MySQL\bin> mysql --user=root --password cacti < c:\apache2\htdocs\cacti\cacti.sql


    - -
  7. Optional: Create a MySQL username and password for cacti.

    - -

    C:\MySQL\bin> mysql --user=root --password mysql
    - mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';
    - mysql> flush privileges;


    -
- -

Installation Instructions

- -

    -
  1. Extract the distribution archive. You can use a program like WinZip to - open .tar.gz files. These instructions will assume that the archive has been - extracted to C:\Apache\htdocs\cacti, although you can use a different path if you wish. - Make sure you extract with "Use folder names" enabled, so that the necessary sub-folders - will be used.

    - -

  2. Unzip rrdtool and copy rrdtool.exe from the src/tool_release directory to somewhere such as - C:\rrdtool

    - -

  3. Edit the cacti\include\config.php file.

    - -

    - -
  4. You are going to need to schedule a task, so cmd.php can run every 5 minutes. Make sure the - Task Scheduler service is started and open up the Scheduled Tasks control panel item. - Add a new task, browse to your php.exe file and click Next. Have the task run daily (for now) and - click Next twice until you are at the username/password screen. You must enter a user that has - read/write permissions to cacti rra/ and log/ directories here. Click Next, check the box to open - Advanced Properties and click Finish.

    - - You are going to have to enter the full command line in the Run textbox. Using default paths, - your command line should look something like:

    - -

    c:\php\php.exe c:\apache2\htdocs\cacti\cmd.php

    - -

    Select the Schedule tab and click Advanced. Check the Repeat task checkbox - and change it to every 5 minutes, then change the Duration to 24 hours. That should - schedule cmd.php to run every 5 minutes.

    - -
  5. Point your web browser to:

    - -

    http://your-server/cacti/
    - -

    Log in the with a username/password of admin. You will be required to - change this password immediatly. Using the default paths described in this document, your - paths should look something like:

    - -

    PHP Binary Path:

    - -

    c:/php/php.exe

    - -

    rrdtool Binary Path:

    - -

    c:/rrdtool/rrdtool.exe

    - -

    cacti Web Root:

    - -

    /cacti

    - -

    Apache Web Root:

    - -

    c:/apache2/htdocs

    -
- - - diff --git a/docs/INSTALL.htm b/docs/INSTALL.htm deleted file mode 100644 index 222e02dbb2..0000000000 --- a/docs/INSTALL.htm +++ /dev/null @@ -1,134 +0,0 @@ - - - - - Cacti Installation Instructions - - - - - -

Cacti Installation

- -

Dependencies

- -Cacti requires: -

- -

Installation Instructions

- -

    -
  1. Extract the distribution tarball.

    - -

    shell> tar xzvf cacti-version.tar.gz


    - -
  2. Create the MySQL database:

    - -

    shell> mysqladmin --user=root create cacti


    - -
  3. Import the default cacti database:

    - -

    shell> mysql cacti < cacti.sql


    - -
  4. Optional: Create a MySQL username and password for cacti.

    - -

    shell> mysql --user=root mysql
    - mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';
    - mysql> flush privileges;


    - -
  5. Edit include/config.php.

    - -

    - -
  6. Set the appropriate permissions on cacti's directories for graph/log generation. You should execute these commands from inside cacti's directory to change the permissions.

    - -

    shell> chown -R cactiuser rra/ log/


    - -

    (Enter a valid username for cactiuser, this user will also be used in the next step for - data gathering.)

    - -
  7. Add a line to your /etc/crontab file similar to:

    - -

    */5 * * * * cactiuser php /var/www/html/cacti/cmd.php > /dev/null 2>&1

    - -

    - -
  8. Point your web browser to:

    - -

    http://your-server/cacti/
    - -

    Log in the with a username/password of admin. You will be required to - change this password immediatly. Make sure to fill in all of the path variables carefully - and correctly on the following screen.

    -
- - - diff --git a/docs/UPGRADE.htm b/docs/UPGRADE.htm deleted file mode 100644 index 218b6539b7..0000000000 --- a/docs/UPGRADE.htm +++ /dev/null @@ -1,110 +0,0 @@ - - - - - Cacti Upgrade Instructions - - - - - -

Cacti Upgrade

- -

Upgrade Instructions

- -

    -
  1. Backup the old cacti database:

    - -

    shell> mysqldump cacti > mysql.cacti


    - -
  2. Backup the old cacti directory:

    - -

    shell> mv cacti cacti_old


    - -
  3. Extract the distribution tarball.

    - -

    shell> tar xzvf cacti-version.tar.gz


    - -
  4. Rename the new cacti directory to match the old one:

    - -

    shell> mv cacti-version cacti


    - -
  5. Copy the *.rrd files from the old cacti directory:

    - -

    shell> cp cacti_old/rra/* cacti/rra/


    - -
  6. Edit include/config.php.

    - -

    - -
  7. Set the appropriate permissions on cacti's directories for graph/log generation. You should execute these commands from inside cacti's directory to change the permissions.

    - -

    shell> chown cactiuser rra/ log/


    - -

    (Enter a valid username for cactiuser, this user will also be used in the next step for - data gathering.)

    - -
  8. Point your web browser to:

    - -

    http://your-server/cacti/
    - -

    Make sure to fill in all of the path variables carefully - and correctly on the following screen.

    -
- - -