Deployment of MRTG monitoring H3C switch port traffic tutorial

Source: Internet
Author: User
Tags snmp switches mrtg

Recently, the bandwidth in the IDC is always full. To measure the daily traffic and increase the bandwidth, the switch is the S5000 series of H3C, I thought of using a relatively mature MRTG to measure the traffic of the monitoring switch port. Next I will record the implementation steps for future use.
 
Required devices:

One management ip address of the H3C switch: 192.168.0.233
Server 2003 ip address: 192.168.0.53
 
H3C switch configuration:

Because MRTG uses the snmp protocol to capture traffic information of vswitches and other settings, you must enable the snmp protocol on the vSwitch:
The snmp protocol cannot be configured on the web interface of S5000 series switches. If the switch is in the data center and cannot be configured on the Console port, you can only use telnet commands for management.
1On server 2003, open "run" and enter the telnet 192.168.0.233 command to go to the H3C switch management interface.
2Enter the initial password admin and log on to the H3C management interface.
3, <H3C> system-view
# Enter the user view interface, and then enter the login password. The password is the login password on the web management interface.
4, [H3C] snmp-agent community read public
# Set the community name (community) to public, which will be used in subsequent mrtg configuration

For other H3C series switches, the following two steps are required:
[H3C] snmp-agent sys-info version all
# Set the SNMP versions supported by the vSwitch, including v1 v2 v2c and v3, and all for all
[H3C] snmp-agent target-host trap address 192.168.0.53 securityname public
# Set the switch to send snmp packets to the 192.168.0.53 monitoring server

 
5And finally input save to save
[H3C] quit
# Exit view interface
<H3C> save
# Save configuration
 
Server 2003 PC configuration:
1Install activeperl_5.16.2.3020.12913.msi (click to download)
(1) the installation is very simple. Next, install it in c: perl (default directory)
(2) add the iis guest account permission to the C: Perl folder so that mrtg can run on the website
 
2Install mrtg1200.2 (click to download)
(1rar extract the downloaded mrtg ).2.rar to the c: mrtg-2.16.2 directory, then go to the C: mrtg-2.16.2bin directory at the cmd command prompt and execute the perl mrtg command
(2) if the mrtg-2.16.2 appears-Multi Router Traffic Grapher ...... Indicates that PERL can execute MRTG, but the MRTG configuration document is missing. Next we will create the configuration document MRTG. CFG.
(3) execute the following command under C: mrtg-2.16.2bin>:
Perl compiler maker public@192.168.0.233-global "workdir: c: wwwmrtg"-output mrtg. cfg
* Workdir: there is a space behind it *
Command parameter description:
Public: The community string of the SNMP device.
192.168.0.233: IP address of the monitored switch
Workdir: "c: wwwmrtg": MRTG working directory
Mrtg. cfg: configuration file to be output and created

(4) Now the MRTG configuration document has been created and stored in c: mrtg-2.16.2bin, now open and edit this mrtg. cfg with Notepad
Add language: Chinese at the beginning
Add RunAsDaemon: yes to the next line of ### Global Config Options.
# The above two rows are displayed in Chinese and automatically updated
(5) create the c: wwwmrtg directory and add the write permission to the iis guest account. The created directory must be consistent with the Workdir: c: wwwmrtg in the MRTG. CFG document. Otherwise, an error will occur.
(6) go to the cmrtg-2.16.2bin> command prompt and execute: perl indexmaker mrtg. cfg> c: wwwmrtgindex.htm to generate a traffic report
(7) execute perl mrtg. cfg to start real-time monitoring:
Note:If the cmd window is closed, the real-time monitoring of MRTG will be suspended, so it cannot be closed.
 
IIS configuration
Open the IIS Manager, change the default home directory of the website to c: wwwmrtg, and save the settings.
 
Enter http: // 127.0.0.1 in the browser to view the H3C S5000 series traffic monitoring reports.


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.