Quick installation of CACTI traffic monitoring in Windows

Source: Internet
Author: User

Recently, the company needs to propose a solution to remotely monitor several mounted servers. Some time ago, I saw people discussing CACTI on the CU. So I installed and debugged the CACTI against the online tutorials, but it may be too good, I encountered many problems in this process. Here I will record this process and give it to cainiao like me.

CACTI is a PHP program that uses SNMPGET to collect data and draw data using the RRDTOOL Drawing Engine. RRDTOOL is a replacement of MRTG and its author is a person. RRDTOOL is too powerful, so the command is too complicated to use, and CACTI appears at this moment. It is a graphical interface and is easy to use, so you do not need to directly contact RRDTOOL. But it is based on SNMP and RRDTOOL, so it is best to learn more about the use of NET-SNMP and RRDTOOL.

Okay. Let's take a look at how to install CACTI in Windows. As I mentioned earlier, CACTI is a PHP system, so if it is installation and debugging, the most important thing is to establish a PHP environment. Other simple applications such as RRDTOOL and Net-Snmp can be installed without too many settings.

PHP is a powerful scripting language that can only be used in Linux at first. As it develops, it can be used in Windows. Since it was initially used in Linux, it is not as simple as other Windows software and requires some necessary configuration, this may be temporarily inapplicable to those who are familiar with Windows. It is a script engine and does not have the functions of Web servers. It works with Web services such as Apache and IIS in the form of plug-ins.

Mysql is an open-source and powerful database system. It was originally used on Linux and can be used in Windows. The latest version includes the installation and Setup Wizard, which is easy to use.

I. Appserv installation and PHP settings

In the previous article, I wrote in detail how to install and set up Apache, PHP, and Mysql under Winodws. However, it is still too troublesome to install and configure Apache, PHP, and Mysql, currently, most websites use Apache + PHP + Mysql and the environment is similar. Is there a simpler way to build this server environment? The answer must be yes, or this article will not exist.

By searching on the internet, I found the Appserv software, which is a combination of PHP website shelving tools under Windows, thai authors repackage free website resources on the Internet into a single installer to help beginners quickly complete the website. The software included in AppServ includes: apache, Apache Monitor, PHP, MySQL, PHP-Nuke, and phpMyAdmin. The latest version is 2.5.8. This software is very easy to install, and the next step is very convenient to install, and after the installation is complete, an Apache + PHP + Mysql environment can be set up. This tool also installs the PhpMyAdmin Mysql management tool, which is too convenient for cainiao. Note that if the default port 80 of the local machine is already in use, remember to change the default port 80 to unused, such as 8080 and the Mysql login password.

Because this environment is the PHP website environment, we need to make some necessary settings for PHP to meet our needs. In fact, we mainly add several environment variables. Choose Start> Control Panel> system> advanced> environment variable ". On the "System variables" tab, click Add. In the displayed window, enter MIBDIRS for the variable name and C: \ AppServ \ php5 \ extras \ mibs for the variable value. OK; find the "path" variable, click Edit, and add the PHP search path at the end of the variable value, which is your PHP installation path and extension plug-in path. Here is C: \ AppServ \ php5 and C: \ AppServ \ php5 \ ext, so I added "; C: \ AppServ \ php5; C: \ AppServ \ php5 \ ext ". Do not add double quotation marks. You only need to add the content in the double quotation marks.

We also need to enable PHP support for SNMP, GD, and Socket, open the c: \ windows \ php. ini file, make sure extension = php_gd2.dll, extension = php_mysql.dll, extension = php_snmp.dll,

Extension = php_sockets.dll does not have a semicolon before the three options.

In this case, restart Windows to make the settings take effect.

Ii. Install CACTI

After the system is restarted, the first thing we need to do is to install Net-Snmp in Windows. This tool is also very convenient to install. It is just the next step, so we don't need to set anything, it is best to install it in the default Cacti path, which saves a lot of trouble by setting CACTI. By default, Cacti finds that the path of Net-Snmp is C: \ net-snmp, so we 'd better install it in this directory.

RRDTOOL already has a version in Windows, so we only need to decompress it. Because CACTI's default search path is c: \ rrdtool, so we can extract it to this directory.

Finally, we only need to copy CACTI to the root directory of the Web server. Here I am C: \ AppServ \ www, so I decompress the CACTI downloaded from the Internet to the CACTI directory under this directory, then open the IE input: http: // localhost, and click the phpMyAdmin Database Manager Version 2.9.2 link, enter the Mysql user name and password, enter PhpMyAdmin, create a database "cacti", create a user "cactiuser", and password "cactiuser ", this user is given full control over the "cacti" database permissions. Then select import data and import the C: \ AppServ \ www \ cacti. SQL file to the cacti database. At this point, we can open IE and enter http: // localhost/cacti/install. php to make some simple settings for cacti, mainly the path settings.

In this way, we have successfully installed CACTI. Of course, we still need to set the task plan. For detailed settings, see my previous article "installing CACTI on Windows ".

Attached to the required software:

AppServ: http://www.onlinedown.net/soft/35753.htm

CACTI: http://www.cacti.net/downloads

RRDTOOL For Windows: http://www.onlinedown.net/soft/35753.htm

Net-Snmp For Windows:

Http://sourceforge.net/project/showfiles.php? Group_id = 12694 & package_id = 162885 & release_id = 466298

These are the latest stable versions of the software.

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.