Mrtg for windows traffic monitoring execution schedule

Source: Internet
Author: User
Tags mrtg

Mrtg (Multi Router Traffic Grapher, MRTG) obtains device Traffic information from the device through the snmp protocol, and displays the Traffic load to the user in an HTML document containing a PNG format, the traffic load is displayed in a very intuitive way. The following is a batch of Mrtg windows traffic monitoring execution schedules.

Mrtg windows execution schedule
In Win NT (including Win 2000), The MRTG scheduler has to use the at Command provided by the NT System (auto task, which must be installed in the Resource kit ). Remove fiveminute.zip to the c: \ mrtg directory. There are a total of six batches of files. The functions are described one by one:
Mrtgkick. bat is the underlying batch file, mainly used to run the mrtg main program
@ Echo off
C: \ perl \ bin \ perl c: \ mrtg \ run \ mrtg. cfg
A. bat, B. bat, C. the three batches of bat are used to avoid continuous calls to mrtgkick. bat causes Recursive (progressive return, that is, the previous execution entity has not been executed, the system resources have not been released, the next execution entity has been created, and the resources cannot be obtained during use, resulting in a dead end ), therefore, the content of these three batches is the same.
@ Echo off
Start c: \ mrtg \ mrtgkick. bat

2. bat has only one line of content, mainly because the parameter transmission mode is set to at automatic scheduling, the first parameter (% 1) is the execution time, and the second parameter (% 2) is the content of the executed program.
At % 1/every: m, t, w, th, f, s, su "% 2"
Note: In/every: m, t, w, th, f, s, and su, m Refers to Monday, and the rest are pushed accordingly. That is to say, the task is executed from Monday to Sunday. In other words, the task is executed every day.

3a. bat is the top-level batch file and is also the object for future scheduling settings. This batch file is called 2.bat and two parameters are passed in. For details, refer to the above description. We can understand that it is to take turns to execute A on time. bat, B. bat, C. the reason for the execution in turn is to avoid Recursive.
Call 2.bat 0: 00 C: \ mrtg \ A. BAT
Call 2.bat 0: 05 C: \ mrtg \ B. BAT
Call 2.bat 0: 10 C: \ mrtg \ C. BAT
Call 2.bat 0: 15 C: \ mrtg \ A. BAT
Call 2.bat 0: 20 C: \ mrtg \ B. BAT
Call 2.bat 0: 25 C: \ mrtg \ C. BAT

After learning about the scheduling principle, we can execute it now:
C: \ mrtg> 3a
This batch file can be executed only once. It will create 288 execution projects on the at list, that is, the five, ten, fifteen, and twenty points per hour every day ......... run MRTG once each time.
I have completed Mrtg windows traffic statistics
Now let's take a look at the results! On the far right of the screen, we can see that the traffic is running out!

What is next?
Learning to install and use MRTG is not the end of this topic, but the beginning. As mentioned above, you can use plug-ins to perform real-time statistics on special application systems. If you need such information, refer to c: \ mrtg \ contrib directory file and original code.

I would like to remind you again that the original code of Mrtg for windows is developed for UNIX or a specific system and cannot be directly executed on Winodws.

Article Reprinted from network management: http://www.bitscn.com/wb/system/200609/76663.html

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.