Diagram of MRTG monitoring switch port traffic

Source: Internet
Author: User
Tags mrtg

MRTG (MultiRouter Traffic Grapher, MRTG) is a typical network Traffic statistical analysis tool based on SNMP. It obtains traffic information from the device through the SNMP protocol, and displays the traffic load to the user in HTML document containing JPEG format, which is very intuitive. It is a widely used network traffic statistics Tool. Now, we will explain how to use MRTG to monitor the traffic of each port of the vswitch based on our actual work. Environment Description: MRTG is installed on the Windows 2000 management workstation to manage two switches: Foundery Serveriron 800 layer-4 switch (IP address: 10.86.11.138) Foundery Bigiron 8000 route switch (IP address: 10.86.11.139) preparation: Download Perl for Windows NT/2000 (http://www.activestate.com/) Be sure to download version 5.005 or update. Download MRTG forWindows NT/2000 (http://people.ee.ethz.ch /~ Oetiker/WEBtools/mrtg/pub) Need to Know the switch device read-only SNMP community string I actually use: ActivePerl-5.8.0.804-MSWin32-x86.zip mrtg-2.9.25. zip the read-only SNMP community strings of the two switches are sdcdn software installation: 1. to install mrtg, you only need to decompress mrtg 2.9.25.zip to the C: \ mrtg directory on the windows 2000 management workstation.
2. Install www.2cto.com in Perl. Decompress activeperl-5.8.0.804-mswin32-x86.zip and a batch processing file is generated: Installer. bat. Double-click installer. bat. Follow the prompts to install. The default installation directory is c: \ perl.
Note: Check whether the variable path in Control Panel --- system --- advanced --- environment variable contains the path of c: \ perl \ bin. If not, edit and add it.

3. generate the default MRTG configuration file (you can customize the file name, such as mrtg. cfg) Run c: \ mrtg \ bin> perl compiler maker sdcdn@10.86.11.138 sdcdn@10.86.11.139 -- global "workdir: c: \ netmanager" -- output mrtg. cfg supplement: 10.86.11.138 10.86.11.139 is the IP address of the two vswitches respectively. Ensure that the c: \ netmanager directory exists first.
4. start MRTG and run the command c: \ mrtg \ bin> start/D c: \ mrtg \ bin wperl mrtg-logging = eventlog mrtg. cfg.
In this case, a large number of html files www.2cto.com are generated under the c: \ netmanager directory.

Each port generates an html file, which is not conducive to management. We can continue to summarize it into an html file and monitor the ports of all switches on one page. Run the command c: \ mrtg \ bin> perl indexmaker mrtg. cfg -- output = c: \ netmanager \ index.html

In this case, the "index.html" file under "c: \ netmanager" will be opened and observed.

Now, the mrtg configuration is complete. Now you can monitor the traffic on the vswitch port with ease! There are many MRTG functions, such as monitoring the CPU utilization and bandwidth of network servers. Interested readers can continue to study! This article is from the fat shark network.

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.