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.