Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Cacti how to use the manual to configure ISS and install related software

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you the "Cacti how to use the manual to configure ISS and install related software", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "Cacti how to use the manual to configure ISS and install related software" this article.

Cacti is a software implemented in PHP language, its main function is to use snmp services to obtain data, then use rrdtool to store and update data, and when users need to view data, use rrdtool to generate charts and present them to users.

The Cacti user manual configures the IIS WEB service:

Launch the IIS MMC interface, right-click the default WEB site (in most cases) and select Properties.

Under the Home Directory page, select configuration and click add. Browse to php4isap1.dll or php5isapi.dll and type the extension .php

Under the "ISAPI filter" page, click add, browse to php4isapi.dll or php5isapi.dll, and fill in "php" for "filter name".

Under the document page, add "index.php" to the list

Stop and start the IIS service with the following command:

Net stop iisadmin

Net start w3svc

Permissions assigned to the user IUSR_XXX to read and execute the file: C:\ winnt\ system32\ cmd.exe

Cacti user's manual to install RRDTool

Expand the RRDTool package to the C:\ rrdtool directory and copy c:\ rrdtool\ src\ tool_release\ rrdtool.exe to the c:\ rrdtool directory.

Cacti user's manual to install MySQL

Expand the MySQL package to a temporary folder and run setup.exe

Install MySQL to the c:\ mysql directory

Start MySQL by running the c:\ mysql\ bin\ winmysqladmin.exe command

Set a password for the root user:

Shell > cd mysql\ bin

Shell > mysqladmin-- user=root password somepassword

Shell > mysqladmin-- user=root-- password reload

Create an MySQL database:

Shell > mysqladmin-- user=root-- password create cacti

Import default Cacti data:

Shell > mysql-- user=root-- password cacti

< c:\apache2\htdocs\cacti\cacti.sql (可选)为Cacti数据库创建一个用户和口令: 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 make any host 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 filenames, because Cacti is not supported in this version. We recommend that you install Net-SNMP in the directory c:\ net-snmp

Cacti user's manual to install Cactid

Expand the Cacti package under c:\ cactid and modify the cactid.conf file to include the following declaration:

DB_Host IP_Address or Hostname (not localhost)

DB_Database cacti

DB_User cactiuser

DB_Password cacti

All other configurations prior to 0.8.6 are out of date. If you keep them, Cacti may not object, but they are no longer required. Cacti has now released the binary installation package, so a full installation of Cygwin is not longer required.

If you have installed Cygwin, or plan to install it, you need to delete three DLL files and SH.EXE files from the c:\ cactid directory

Install Cacti

Expand the cacti package. The introduction here assumes that the zip file is expanded to the C:\ Apache\ htdocs\ cacti directory, of course you can specify a different directory. Be sure to select "Use fold names" when you expand so that the required subdirectories are created.

Edit include/config.php, specify MySQL username and password, database:

$database_default = "cacti"

$database_hostname = "localhost"

$database_username = "cactiuser"

$database_password = "cacti"

Next you need to make a scheduled task to make poller.php run every five minutes. Make sure that Task Scheduler service is started and follow the steps below to start.

Note: the following introduction is based on XP and WIN2K3. You can also follow these instructions and configure them just as well under WIN2K.

Select start-> Settings-> Control Panel and double-click Task schedule.

Double-click add Task schedule

Click "next" and "browse" to locate and select c:\ php\ php.exe. If it is PHP5, use php-win.exe instead. Select "Daily" and click "next"

Click "next" and do not change the time and date settings

When entering a user name and password, make sure that the user has read and write access to the following directory

C:\ apache2\ htdocs\ cacti\ rra

C:\ apache2\ htdocs\ cacti\ log

Make sure that the user has read, write, and execute permissions to the following directory

C:\ php

C:\ php\ sapi

Click next, finish to close the wizard

Right-click on the task plan you just created and select Properties

Select the Plan page

Make sure Daily is selected and click the Advanced button

Check the repeat option and set it every five minutes for a duration of 24 hours

Click "OK"

In the run file box, enter the following command

C:\ php\ php.exe c:\ mycacti\ website\ cacti\ poller.php

In the start box, enter: C:\ mycacti\ website\ cacti.

In the IE browser, enter:

Http://your-server/cacti

The above is all the contents of the article "how to configure ISS and install related software in Cacti manual". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report