Cacti is a software implemented in php. Its main function is to use the snmp service to obtain data and then use rrdtool to store and update data, when you need to view data, use rrdtool to generate charts and present them to users.
Configure iis web Services in the Cacti User Manual:
Start the iis mmc interface, right-click "Default WEB site", and select "properties" in most cases ".
On the "main directory" Page, select "configuration" and click "add ". "Browse" to php4isap1. dll or php5isapi. dll, and type the extension. php.
On the "ISAPI filter" page, click "add" to browse to php4isapi. dll or php5isapi. dll, and enter "php" in "Filter Name"
On the "document" Page, add "index. php" to the list"
Run the following command to stop and start the IIS service:
Net stop iisadmin
Net start w3svc
Grant IUSR_XXX read and execution permissions to the file c: \ winnt \ system32 \ cmd.exe
Cacti user manual for RRDTool Installation
Expand the RRDTool compressed package to the C: \ rrdtool directory, and copy c: \ rrdtool \ src \ tool_release \ rrdtool.exe to the c: \ rrdtool directory.
Install MySQL in Cacti User Manual
Expand the mysqlcompressed package to a folder and run setup.exe
Install MySQL in the c: \ mysql directory
Run the c: \ mysql \ bin \ winmysqladmin.exe command to start MySQL
Set a password for the root user:
- shell> cd mysql\bin
- shell> mysqladmin --user=root password somepassword
- shell> mysqladmin --user=root --password reload
Create a MySQL database:
Shell> mysqladmin -- user = root -- password create cacti
Import default Cacti data:
Shell> mysql -- user = root -- password cacti <c: \ apache2 \ htdocs \ cacti. SQL
(Optional) create a user and password for the Cacti database:
- shell> mysql --user=root --password mysql
- mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY ’somepassword’;
- mysql> flush privileges
;
Install Net-SNMP
If you plan to allow any host to support SNMP v2c, you must download and install the Net-SNMP library. Net-SNMP provides an installation wizard to install their products. In any case, be careful not to use long file names, because Cacti does not support this version. We recommend that you install Net-SNMP in the directory c: \ net-snmp
Install Cactid in Cacti User Manual
Expand the Cacti package to c: \ cactid, and modify the cactid. conf file to include the following statements:
- DB_Host IP_Address or Hostname (not localhost)
- DB_Database cacti
- DB_User cactiuser
- DB_Password cacti
All other configurations earlier than 0.8.6 are out of date. If you keep them, Cacti may not oppose them, but they are no longer required. Cacti has now released the binary installation package. Therefore, a full installation of Cygwin is not longer required.
If you have installed Cygwin or want to install Cygwin, You need to delete three DLL files and SH. EXE files from the c: \ cactid directory.
Install Cacti
Expand the cacti package. This section describes how to expand the compressed file to the C: \ Apache \ htdocs \ cacti directory. Of course, you can specify different directories. Make sure that "Use fold names" is selected during expansion so that the required sub-directories will be created.
Edit include/config. php and specify the MySQL user name, password, and database:
- $database_default = "cacti";
- $database_hostname = "localhost";
- $database_username = "cactiuser";
- $database_password = "cacti";
Next you need to develop a scheduled task to run poller. php every five minutes. Make sure that the Task Scheduler service has been started and start as follows.
Note: The following is based on XP and WIN2K3. You can also follow these introductions and configure them in WIN2K.
Choose Start> Settings> control panel and double-click Task Plan ".
Double-click "add Task Scheduler"
Click "Next", click "Browse", and select c: \ php \ php.exe. If PhP5 or later, use php-win.exe instead. Select "Daily" and click "Next"
Click "Next". Do not change the time and date settings.
When entering the user name and password, make sure that the user has read and write permissions on the following directories.
C: \ apache2 \ htdocs \ cacti \ rra
C: \ apache2 \ htdocs \ cacti \ log
Make sure that the user has the permission to read, write, and execute the following directories.
C: \ php
C: \ php \ sapi
Click "Next" and "finish" to close the wizard.
Right-click the task scheduler you just created and select "properties"
Select plan page
Make sure that "Daily" is selected and click "advanced ".
Check the "repeated" option and set it to every five minutes. The duration is 24 hours.
Click "OK"
In the "run" file box, enter the following command
C: \ php \ php.exe c: \ mycacti \ website \ cacti \ poller. php
Enter c: \ mycacti \ website \ cacti in the Start box.
In the IE browser, enter:
Http: // your-server/cacti