Afflicted for my English of bad quality, I am French and continuous to learn
Installation instructions for Win32 platform : ( i succeeded for win XP PRO )
U requires to download :
• RRDTOOL : rrdtool-1.0.40.x86distr.zip-5.8.zip Link : (http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/ )
• PHP : php-4.3.4-Win32
• MYSQL : mysql-4.0.18-win
• Apache : apache_2.0.49-win32-x86-no_ssl
• Perl : ActivePerl-5.8.3.809-MSWin32-x86
• Cacti : cacti 0.8.5-win32
For all these installations, u can specify another folder than c:\ like c:\Project\ etc .. or c:\xxx\...
The following installation instruction is based on c:\ but u could see my .ini files that the directory is c:\Onduleur\ etc so don’t forget to check all ur directory commands.
=============================================================================
-Installing Apache
Make sure you have stopped any IIS web servers before you proceed.
Double click the .msi file to start the install.
Install it as a service.
Use the typical setup. (U can install it where u want )
Install Apache to the c:\ directory. ( yes the root of c, it automatically installs to c:\apache2 or u can install to another directory like c:\xxx\apache2 )
Create the c:\apache2\htdocs\cacti directory.
Please restart your machine after the install to make sure the service was installed correctly. When Apache monitor starts it should have the green light on the service status.
=============================================================================
-Installing PHP
Extract PHP to c:\ or same folder than ur apache2 ( c:\xxx\ )
Rename the installed directory to c:\php, it will be something like php-4.3.4 but rename it.
Copy php4ts.dll from the c:\php directory to the c:\Windows\system32 directory.
In the c:\php directory, rename php.ini-dist to php.ini and make the following edits (I have included my working php.ini at the bottom and check the directory if u didn’t installed on the c:\ root. As u can see in my php.ini mine is C:\Onduleur\ where there are apache2,php etc )
dont forget to remove the « ; « before extension=php_snmp.dll that u add
extension_dir=c:\php\extensions
extension=php_snmp.dll (just remove the ; from the beginning of the line)
include_path=c:\apache2\htdocs\cacti
register_globals=On
register_argc_argv=On
max_execution_time=200
Mine is like that :
Etc …;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = " C:\Onduleur\Apache2\htdocs\cacti "
register_globals=On
register_argc_argv=On
max_execution_time=200
; The root of the PHP pages, used only if nonempty.
In the c:\apache2\conf directory, make the following edits to httpd.conf:
LoadModule php4_module c:\php\sapi\php4apache2.dll
AddType application/x-httpd-php .php
DirectoryIndex index.html index.htm index.php
Mine is like that :
Etc …# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule php4_module c:/Onduleur/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php
DirectoryIndex index.html index.htm index.php
LoadModule access_module modules/mod_access.so
=============================================================================
-Install ActiveState Perl
The Active Perl website has very good and detailed instructions on how to install. With XP Pro.
you should not have to install any of the additional tools.
Download the Active Perl .MSI install file.
Install Perl to the c:\perl directory.
Make sure the XP default path now contains a c:\perl\bin statement.
I have installed perl in c:\perl too.
=============================================================================
Install cacti
Unzip the cacti tar.gz file to c:\apache2\htdocs directory
Rename the standard cacti directory, something like cacti-0.6.8, to cacti
Everything should be in c:\apache2\htdocs\cacti
=============================================================================
-Install rrdtool
Unzip rrdtool to c:\rrdtool and copy c:\rrdtool\src\tool_release\rrdtool.exe to c:\rrdtool
u can install it to another directory too.
=============================================================================
-Install MySQL
Extract the MySQL zip file to a temp directory and run setup.exe.
Install MySQL to the c:\mysql directory. Or another u want.
Run c:\mysql\bin\winmysqladmin.exe or ur c:\xxx\mysql\bin\winmysqladmin.exe
When entering a username and password make sure the user has read and write access to the
following directories :
c:\apache2\htdocs\cacti\rra
c:\apache2\htdocs\cacti\log
and execute, read and write access to the following directories
c:\php
c:\php\sapi
Reboot your machine.
If winmysqladmin.exe does not run automatically when you restart, run
c:\mysql\bin\winmysqladmin.exe
Once this starts, it may put itself in the task bar as a stoplight, open it up.
Select the databases tab.
Right mouse click on your machine ip/name.
select create database.
Name the database cacti.
Now edit ur cacti.sql in ur cacti directory and remove « =============== « at the beginning. It should be like that :
Import the default cacti database by:-- MySQL dump 9.09
--
-- Host: localhost Database: dev_cacti_2
--
-- Server version 4.0.15-standard
--
-- Table structure for table `cdef`
--
CREATE TABLE cdef ( etc … or just erase all before CREATE TABLE … )
From the c:\MySQL\bin directory, execute the following command:
mysql cacti < c:\apache2\htdocs\cacti\cacti.sql
In the c:\apache2\htdocs\cacti\include directory, make the following edits to config.php
$database_default = "cacti";
$database_hostname = "localhost";
$database_server_os = "win32";
The following entries should match what is in your my.ini file (username and password you set
when you installed MySQL). To view your my.ini file you can open winmysqladmin.exe and click on
tht my.ini tab or look at the my.ini file in c:\windows.
$database_username = "cactiuser";
$database_password = "cacti";
Move all MIB files from c:\php\mibs to c:\usr\mibs or ur c:\xxx\usr\mibs.
Create a folder tmp in ur c:\xxx or c:\temp directory. It depends where u installed all programs.
Reboot your machine
=============================================================================
Reboot your machine
=============================================================================
Creating the scheduled task to run every five minutes:
Select Start--> Settings--> Control Panel
Double click on Scheduled Tasks.
Double click on Add Scheduled Task.
Hit next.
Hit browse.
Go to c:\php and select php.exe.
Select daily and hit next.
Hit next again without changing the time or settings.
When entering a username and password make sure the user has read and write access to the
following directories:
c:\apache2\htdocs\cacti\rra
c:\apache2\htdocs\cacti\log
read, write and execute access to the following directories
c:\php
c:\php\sapi
Hit next.
Hit finish.
Now Right mouse click on the task you just created, and select properties.
Select the Schedule tab.
Make sure Daily is selected and hit the advanced button.
Check the Repeat task box, set it for 5 minutes and set the duration for 24 hours.
Hit Ok.
In the Run box enter text to make the statement say this:
c:\php\php.exe c:\apache2\htdocs\cacti\cmd.php
The start in box should say c:\apache\htdocs\cacti
I have noticed this quirk. Ever time you edit the task you must re-enter the password for the
account you are using.
Hit Ok
==============================================================================
Go to the : http://www.raxnet.net/downloads/cacti/p ... e-patched/
And download all .php and replaces olds.
You must now access the site by going to http://your-server-ip/cacti and follow the simple setup steps.
If i add a snmp device like i did...to be sure it works...when ur snmp device is found. Its written in black in Devices like :
SNMP Information
System: MGE UPS SNMP FIJI Board, V4.07
Uptime: 54435564
Hostname:
I hope this could help everybody that begin with cacti.
If u have any problems..advice me.
thks