Professional Documents
Culture Documents
Docslide - Us Cacti On Windows Using Wamp A1
Docslide - Us Cacti On Windows Using Wamp A1
WINDOWS 2000
Rev. A1
By Uus Noviardi (2008-11-04)
Contents
1
Overview ....................................................................... 3
Requirements ............................................................... 3
Post-Installation ......................................................... 17
7.1
Apache setup ................................................. 17
7.2
MySQL Setup ................................................. 18
7.2.1
Updating Root password (optional) ................ 18
7.2.2
Create the MySQL database.......................... 19
7.2.3
Import the default Cacti database .................. 19
7.2.4
Create a MySQL username and password for
Cacti. .............................................................. 20
7.3
Cacti Setup..................................................... 21
7.3.1
Updating Cacti config file ............................... 21
7.3.2
Web installation process ................................ 21
7.4
Install SNMP Agent on Windows 2000........... 25
7.5
Adding graphs for localhost on Cacti.............. 33
7.6
Installing CRON for windows.......................... 40
Overview
This document is a procedure to setup CACTI on a PC/Server with Windows 2000 OS.
Requirements
After the installation completed then verified by using your browser (ex. IE), put URL
http://localhost and page will be shown like this
To verify the PHP you can click the phpinfo() from the homepage.
Copy font files (*.ttf) from C:\wamp\rrdtool to c:\winnt\fonts by execute the command:
C:\wamp\rrdtool>copy *.ttf c:\winnt\fonts
Or you can use windows explorer
7 Post-Installation
7.1 Apache setup
Edit apache alias
It is recommended to set a password for the root user, but if you dont want you, you can
skip to next step.
shell> cd mysql\bin
shell> mysqladmin --user=root password somepassword
shell> mysqladmin --user=root --password reload
or
If you are running MySQL 4.1 and above, you will need to apply the old password setting
in order to authenticate with Cacti. To make this change, stop the MySQL service and
add the following to the Start Parameter field. Start it again once it has been added.
--old-password
You will also need to update the cactiuser account with the
old password style.
shell> UPDATE mysql.user SET Password = OLD_PASSWORD('cactiuser')
WHERE Host = 'localhost' AND User = 'cactiuser';
mysql> FLUSH PRIVILEGES;
C:/wamp/rrdtool/rrdtool.exe
PHP Binary Path:
C:/wamp/bin/php/php5.2.6/php.exe
snmpwalk Binary Path:
C:/wamp/netsnmp/bin/snmpwalk.exe
snmpget Binary Path:
C:/wamp/netsnmp/bin/snmpget.exe
snmpbulkwalk Binary Path:
C:/wamp/netsnmp/bin/snmpbulkwalk.exe
snmpgetnext Binary Path:
C:/wamp/netsnmp/bin/snmpgetnext.exe
Cacti Log File Path:
C:/wamp/apps/cacti-0.8.7a/log/cacti.log
Setup SNMP
Verify
Perform:
Verbose Query or Reload query data for
1. SNMP Get Mounted Partition
2. SNMP Get Processor Information
3. SNMP Interface Statistics
Create Graph for this host
Help is on C:\wamp\apps\cacti-0.8.7a\docs\html\install_windows.html
Test cacti poller
C:\wamp\apps\cacti-0.8.7a>C:\wamp\bin\php\php5.2.6\php poller.php