Cacti (home)ForumsDocumentation

Differences

This shows you the differences between two versions of the page.

manual:088:1_installation.2_install_windows.7_configure_cacti [2012/11/05 06:09]
BSOD2600
manual:088:1_installation.2_install_windows.7_configure_cacti [2019/10/29 15:16] (current)
Line 4: Line 4:
     - IIS: C:\Inetpub\wwwroot\cacti\     - IIS: C:\Inetpub\wwwroot\cacti\
     - Apache: C:\Apache2\htdocs\cacti\     - Apache: C:\Apache2\htdocs\cacti\
 +
  
 === Patch === === Patch ===
Line 10: Line 11:
     - If you have Cygwin installed, then the patch instructions which use wget and patch, will work.     - If you have Cygwin installed, then the patch instructions which use wget and patch, will work.
   - You might need to reapply file/folder security on the files patched. Double check they are correct.   - You might need to reapply file/folder security on the files patched. Double check they are correct.
 +
  
 === Configure === === Configure ===
 +<note important>Throughout this section, **cacti_web_root** is referenced. It's intended to be substituted with the real Cacti web server path of your environment. 
 +Typically this is: \\
 +C:\Inetpub\wwwroot\cacti\
 +\\ or \\
 +C:\Apache2\htdocs\cacti\</note>
  
-  - Edit "\cacti\include\config.phpand specify the database type, name, host, user, password, and url_path for your Cacti configuration.<code>$database_type = "mysql";+  - Edit **\cacti_web_root\cacti\include\config.php** and specify the database type, name, host, user, password, and url_path for your Cacti configuration.<code>$database_type = "mysql";
 $database_default = "cacti"; $database_default = "cacti";
 $database_hostname = "localhost"; $database_hostname = "localhost";
Line 26: Line 33:
 $url_path = "/cacti/";</code> $url_path = "/cacti/";</code>
  
-  - 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.+  - From within Cacti, go to Settings -> Paths and verify the paths to point to the correct locations. Recommended examples are posted below.  
 +<note>If you plan on using Spine, then it is very important that all paths include forward slashes instead of backslashes.</note>
  
 ^ Path                      ^ Setting                                   ^ ^ Path                      ^ Setting                                   ^
Line 35: Line 43:
 | **SNMPBULKWALK Path:**    | c:/net-snmp/bin/snmpbulkwalk.exe | | **SNMPBULKWALK Path:**    | c:/net-snmp/bin/snmpbulkwalk.exe |
 | **SNMPGETNEXT Path:**     | c:/net-snmp/bin/snmpgetnext.exe  | | **SNMPGETNEXT Path:**     | c:/net-snmp/bin/snmpgetnext.exe  |
-| **Cacti Logfile Path:**   | c:/mycacti/website/cacti/log/cacti.log    |+| **Cacti Logfile Path:**   | c:/cacti_web_root/log/cacti.log    |
 | **Spine Path:**            | c:/spine/Spine.exe                        | | **Spine Path:**            | c:/spine/Spine.exe                        |
  
Line 49: Line 57:
   - At the bottom of the page, click on Create.   - At the bottom of the page, click on Create.
   - 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:<code>   - 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:<code>
-php c:/cacti_web_root/cacti/poller.php+C:\>php c:/cacti_web_root/poller.php
 </code>The output should look something like the following:<code> </code>The output should look something like the following:<code>
-C:\>php c:/cacti_web_root/cacti/cmd.php+C:\>php c:/cacti_web_root/cmd.php
 11/04/2012 10:01:57 PM - CMDPHP: Poller[0] Time: 1.1106 s, Theads: N/A, Hosts: 1 11/04/2012 10:01:57 PM - CMDPHP: Poller[0] Time: 1.1106 s, Theads: N/A, Hosts: 1
 </code>After this has ran once, you should have "cacti.log" in "/cacti/log/" and rrd files in /cacti/rra/. </code>After this has ran once, you should have "cacti.log" in "/cacti/log/" and rrd files in /cacti/rra/.
Line 59: Line 67:
  
 == Windows XP/2003 == == Windows XP/2003 ==
-    - Select Start --> Settings --> Control Panel and double click on **Scheduled Tasks**. +    - In Control Panels, open **Scheduled Tasks**. 
-    - Double click on Add Scheduled Task. +    - Double click on **Add Scheduled Task**
-    - Click Next and Browse on the following screen. Find "C:\php\" and select "php.exe". Choose Daily on and click Next.+    - Click Next and Browse on the following screen. Find "C:\php\" and select "php.exe". Choose **Daily** on and click **Next**.
     - Click Next again without changing the time or date settings.     - Click Next again without changing the time or date settings.
     - When entering a username and password make sure the user has read and write access to the following directories:<code>cacti_web_root/cacti/rra     - When entering a username and password make sure the user has read and write access to the following directories:<code>cacti_web_root/cacti/rra
Line 69: Line 77:
     - Click Next and Finish to close the wizard.     - Click Next and Finish to close the wizard.
     - Right click on the task you just created, and select Properties.     - Right click on the task you just created, and select Properties.
-    - Select the Schedule tab+    - Select the //Schedule Tab//
-    - Make sure Daily is selected and click the Advanced button. +    - Make sure **Daily** is selected and click the **Advanced** button. 
-    - Check the Repeat checkbox, set it for 5 minutes and set the duration for 24 hours. +    - Check the **Repeat** checkbox, set it for **5 minutes** and set the duration for **24 hours**
-    - Click Ok+    - Click OK
     - In the Run textbox enter the following text making sure to use the appropriate paths.<code>     - In the Run textbox enter the following text making sure to use the appropriate paths.<code>
 c:\php\php.exe  c:\php\php.exe 
-c:\mycacti\website\cacti\poller.php</code>The start in box should say <code>"c:\mycacti\website\cacti"</code>.+c:\cacti_web_root\poller.php</code>The start in box should say <code>"C:\cacti_web_root\"</code>.
  
  
 == Windows 2008+ == == Windows 2008+ ==
 +  - Open **Task Scheduler**
 +  - Create a new Task
 +  - //General Tab//
 +    - Name: Cacti Poller
 +    - Security Options:  
 +      - Specify the user/service account the task will run under.
 +      - Select **Run whether user is logged on or not**
 +  - //Triggers Tab//
 +    - Create a new trigger.
 +    - Select **Daily**
 +    - Reoccur every: **1 days**
 +    - Repeat Task every: **5 minutes** for a duration of **Indefinitely**
 +    - Select **Enabled**
 +    - Click **OK**
 +  - //Actions Tab//
 +    - Create a new action.
 +    - Program: **C:\PHP\php.exe**
 +    - Argument: **C:\cacti_web_root\poller.php**
 +    - Start In: **C:\cacti_web_root\**
 +  - //Conditions & Settings Tabs//
 +    - Configure per your IT standards.
 +  - Click **OK** to create the Task.





Personal Tools