Cacti (home)ForumsDocumentation

This is an old revision of the document!

Install Cacti

  1. Download the current version from
  2. Extract the ZIP file to the root of your web server directory:
    1. IIS: C:\Inetpub\wwwroot\cacti\
    2. Apache: C:\Apache2\htdocs\cacti\

Patch Cacti

  1. There are two methods of applying patches:
    1. Visit<cacti version>/pre-patched/ and manually download and replace the patched files.
    2. If you have Cygwin installed, then the patch instructions which use wget and patch, will work.
  2. You might need to reapply file/folder security on the files patched. Double check they are correct.

Configure Cacti

  1. Edit “\cacti\include\config.php” and specify the database type, name, host, user and password for your Cacti configuration.
    $database_type = "mysql";
    $database_default = "cacti";
    $database_hostname = "localhost";
    $database_username = "cactiuser";
    $database_password = "cacti";
       Edit this to point to the default URL of your Cacti install
       ex: if your cacti install as at http://serverip/cacti/ this
       would be set to /cacti/
    $url_path = "/cacti/";
  1. From within Cacti, go to Settings → Paths and verify the paths to point to the correct locations. Recommended examples are posted below. If you plan on using Spine, then it is very important that all paths include forward slashes instead of backslashes.
Path Setting
PHP Binary Path: c:/php/php.exe
RRDTool Binary Path: c:/rrdtool/rrdtool.exe
SNMPGET Path: c:/net-snmp/bin/snmpget.exe
SNMPWALK Path: c:/net-snmp/bin/snmpwalk.exe
SNMPBULKWALK Path: c:/net-snmp/bin/snmpbulkwalk.exe
SNMPGETNEXT Path: c:/net-snmp/bin/snmpgetnext.exe
Cacti Logfile Path: c:/mycacti/website/cacti/log/cacti.log
Spine Path: c:/spine/Spine.exe
  1. Click on Devices. Delete the Localhost devices as it intended for Linux environments.
  2. In the upper right corner, click Add. Fill in the following information and then click Add.
    Description: My Windows localhost
    Hostname: localhost
    Host Template: Windows 2000/XP
  3. You should now be looking at the localhost device screen. Right under it's name, there should be some SNMP information listed, if not you should double check the SNMP settings on the server and firewall settings. In the upper right-hand corner, click on Create Graphs for this Host. On the following screen, select a disk partition and network interface. At the bottom of the page, click on Create.
  4. Log into the user account you'll be using for the scheduled task and verify starting a Cacti polling cycle works. Do this by running the following from the command prompt:
    php c:/cacti_web_root/cacti/poller.php

    The output should look something like the following:

    C:\>php c:\inetpub\wwwroot\cacti\poller.php
    10/28/2005 04:57:12 PM - SYSTEM STATS: Time:4.7272 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:2 DataSources:4 RRDsProcessed:2

    After this has ran once, you should have “cacti.log” in ”/cacti/log/” and rrd files in /cacti/rra/.

  5. You are going to need to schedule a task while logged on as an Administrator. This task is required to you can run “poller.php” every 5 minutes. Make sure the Task Scheduler service is started and follow the steps below to begin.
    Note: The following instructions are based on Windows XP and Windows Server 2003. You should be able to follow these instructions close enough for Windows 2008 as well.
    1. Select Start –> Settings –> Control Panel and double click on Scheduled Tasks.
    2. Double click on Add Scheduled Task.
    3. Click Next and Browse on the following screen. Find “C:\php\” and select “php.exe”. Choose Daily on and click Next.
    4. Click Next again without changing the time or date settings.
    5. When entering a username and password make sure the user has read and write access to the following directories:

      Make sure the user has read, write, and execute access to the following directories:

    6. Click Next and Finish to close the wizard.
    7. Right click on the task you just created, and select Properties.
    8. Select the Schedule tab.
    9. Make sure Daily is selected and click the Advanced button.
    10. Check the Repeat checkbox, set it for 5 minutes and set the duration for 24 hours.
    11. Click Ok
    12. In the Run textbox enter the following text making sure to use the appropriate paths.

      The start in box should say



Personal Tools