Cacti user manual configuration ISS and Installation

Source: Internet
Author: User
Tags rrdtool

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:
 

 
 
  1. shell> cd mysql\bin  
  2. shell> mysqladmin --user=root password somepassword  
  3. 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:
 

 
 
  1. shell> mysql --user=root --password mysql  
  2. mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY ’somepassword’;  
  3. 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:
 

 
 
  1. DB_Host IP_Address or Hostname (not localhost)  
  2. DB_Database cacti  
  3. DB_User cactiuser  
  4. 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:
 

 
 
  1. $database_default = "cacti";   
  2. $database_hostname = "localhost";   
  3. $database_username = "cactiuser";   
  4. $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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.