Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The configuration and installation method of Mrtg

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "Mrtg configuration and specific installation methods". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Mrtg (Multi Router Traffic Grapher,MRTG) is a tool software for monitoring the network link traffic load. It obtains the device traffic information from the device through the snmp protocol, and displays the traffic load to the user in the form of a graphical HTML document containing PNG format, showing the traffic load in a very intuitive form. Here is the IIS installation process of Windows for your reference.

The specific installation method for Mrtg configuration is as follows:

I. Mrtg configuration CISCO configuration

1. Enter enable mode

2 、 config terminal

3. Enter the following commands in turn

Snmp-server community public RO

Snmp-server trap-source FastEthernet0/0

Snmp-server contact [your contact EMAIL address]

Snmp-server enable traps

II. MRTG installation

1. Windows2003 installs iis

2. Install activeperl. After installation, check the isapi interpreter in iis. Action parsing of get,post in .pl and .plx is required. In addition, perl is added to operating system environment variables.

3. Extract the mrtg to the specified directory, such as c:\ mrtg, and manually create a web page storage address, such as e:\ mrtgwww

4. Command enter c:\ mrtg\ bin and run the following command

Perl cfgmaker public@192.168.111.3-global "workdir: e:\ mrtgwww"-output mrtgpublic_cisco.cfg

Note: public is the community name configured in cisco, followed by the ip address of the cisco corresponding to the ip address of the Ethernet port.

4. After the command is run, a mrtgpublic_cisco.cfg file will be generated in C:\ MRTG\ BIN

5. Command enter c:\ mrtg\ bin and run the following command

Perl mrtg mrtgpublic_cisco.cfg and check to see if e:\ mrtgwww already has a lot of html files generated

If you execute it three times in a row, there will be no hint for the execution of *, and there will be some warning errors in the first two times, which is normal.

6. Notepad modification mrtgpublic_cisco.cfg

Add the following three lines

Options [_]: growright, bits

Note: indicates that statistical traffic is measured in bit

RunAsDaemon: yes

Note: indicates that it works as a background service and updates the html web page every 5 minutes

Language: GB2312

Note: display Chinese as gb2312

7. Command enter c:\ mrtg\ bin and run the following command again

Perl mrtg mrtgpublic_cisco.cfg

8. Use the mrtgwww directory as the release directory for iis

9. Enter the address of the iis server in the ie browser on any PC to view the

This is the end of the content of "Mrtg configuration and specific installation method". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report