Use cacti on Linux to monitor Windows servers (1)

Source: Internet
Author: User

UseLinuxOnCactiGo to monitoringWindowsServer, good results. Let's see how it works!

Previously, cacti or mrtg was used to monitor switch traffic and rarely used to monitor servers. Recently, a job suddenly needed to monitor Windows servers, the monitoring settings are based on vswitches and Linux, and there is no specific selection for windows monitoring. So I studied and shared my experience with you. In addition, my cacti is installed on debian linux, and some installation commands are not suitable for other linux systems. Please note that.

Operating System: debian 5

1. Install mysql

Apy-get install mysql-server-5.0

During installation, you will be prompted to enter the mysql root Password

2. install apache and php

Apt-get install apache2 libapache2-mod-php5 php5 php5-gd php5-mysql php5-cli php5-common php5-snmp php-net-socket

Php5-gd is related to drawing

Php5-mysql and database

Php-net-socket, which is sometimes required by cacti

3. Install cacti

Apt-get install cacti rrdtool snmp

During installation, you will be required to enter the mysql root Password you just set, and then a cacti library will be automatically created. At the same time, you also need to enter the above password to install the cacti, which is very simple and clear, debian is good at this. The advantage is that the software is fast to install, and you don't need to go to any rpm packages or the like. In a word, you can complete the cacti settings.

1. First import the scripts for monitoring windows to cacti

The attachment contains a cacti_snmp_informant_std_w32_metrics.zip package, which contains the script file, among which snmp_informant _. files starting with xml must be stored in the snmp_querIEs directory of the cacti server. If your debian file is stored in the directory/usr/share/cacti/resource/snmp_queries /. Files starting with cacti_data_query are all imported through the cacti page.

2. Create a new server in Devices, fill in the name and IP address, and snmp information. add the following at the bottom:

3. Click Create Graphs for this Host at the top, select Graphs Types, and add the project to be monitored.

In this way, you can configure the Windows server.


Related Article

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.