⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.txt

📁 主要用于监控网络流量并动态产生可视化结果
💻 TXT
📖 第 1 页 / 共 3 页
字号:
 Target[ezwf]: 2:public@wellfleetA + 1:public@wellfleetA              * 4:public@ciscoF     _________________________________________________________________   RouterUptime   In cases where you calculate the used bandwidth from several   interfaces you normaly don't get the router uptime and router name   displayed on the web page.      If these interfaces are on the same router and the uptime and name   should be displayed nevertheless you have to specify its community and   address again with the RouterUptime keyword.      Example:    Target[kacisco.comp.edu]: 1:public@194.64.66.250 + 2:public@194.64.66.250 RouterUptime[kacisco.comp.edu]: public@194.64.66.250     _________________________________________________________________   MaxBytes   The maximum value either of the two variables monitored are allowed to   reach. For monitoring router traffic this is normally specified in   bytes per second this interface port can carry.      If a number higher than MaxBytes is returned, it is ignored. Also read   the section on AbsMax for further info. The MaxBytes value is also   used in calculating the Y range for unscaled graphs (see the section   on Unscaled).      Since most links are rated in bits per second, you need to divide   their maximum bandwidth (in bits) by eight (8) in order to get bytes   per second. This is very important to make your unscaled graphs   display realistic information. T1 = 193000, 56K = 7000, Ethernet =   1250000. The MaxBytes value will be used by mrtg to decide whether it   got a valid response from the router.      If you need two different MaxBytes values for the two monitored   variables, you can use MaxBytes1 and MaxBytes2 instead of MaxBytes.      Example:    MaxBytes[ezwf]: 1250000     _________________________________________________________________   MaxBytes1   Same as MaxBytes, for variable 1.     _________________________________________________________________   MaxBytes2   Same as MaxBytes, for variable 2.     _________________________________________________________________   Title   Title for the HTML page which gets generated for the graph.      Example:    Title[ezwf]: Traffic Analysis for Our Nice Company     _________________________________________________________________   PageTop   Things to add to the top of the generated HTML page. Note that you can   have several lines of text as long as the first column is empty.      Note that the continuation lines will all end up on the same line in   the html page. If you want linebreaks in the generated html use the   '\n' sequence.      Example:    PageTop[ezwf]: <H1>Traffic Analysis for ETZ C95.1</H1>   Our Campus Backbone runs over an FDDI line\n   with a maximum transfer rate of 12.5 megabytes per   Second.     _________________________________________________________________                         Optional Target Configuration Tags     _________________________________________________________________   AddHead   Use this tag like the PageTop header, but its contents will be added   between </TITLE> and </HEAD>.      Example:    AddHead[ezwf]: <link rev="made" href="[57]mailto:mrtg@blabla.edu";>     _________________________________________________________________   AbsMax   If you are monitoring a link which can handle more traffic than the   MaxBytes value. Eg, a line which uses compression or some frame relay   link, you can use the AbsMax keyword to give the absolute maximum   value ever to be reached. We need to know this in order to sort out   unrealistic values returned by the routers. If you do not set AbsMax,   rateup will ignore values higher than MaxBytes.      Example:    AbsMax[ezwf]: 2500000     _________________________________________________________________   Unscaled   By default each graph is scaled vertically to make the actual data   visible even when it is much lower than MaxBytes. With the Unscaled   variable you can suppress this. It's argument is a string, containing   one letter for each graph you don't want to be scaled: d=day w=week   m=month y=year. In the example scaling for the yearly and the monthly   graph are suppressed.      Example:    Unscaled[ezwf]: ym     _________________________________________________________________   WithPeak   By default the graphs only contain the average values of the monitored   variables - normally the transfer rates for incoming and outgoing   traffic. The following option instructs mrtg to display the peak 5   minute values in the [w]eekly, [m]onthly and [y]early graph. In the   example we define the monthly and the yearly graph to contain peak as   well as average values.      Examples:    WithPeak[ezwf]: ym     _________________________________________________________________   Suppress   By default mrtg produces 4 graphs. With this option you can suppress   the generation of selected graphs. The option value syntax is   analogous to the above two options. In this example we suppress the   yearly graph as it is quite empty in the beginning.      Example:    Suppress[ezwf]: y     _________________________________________________________________   Directory   By default, mrtg puts all the files that it generates for each target   (the GIFs, the HTML page, the log file, etc.) in WorkDir.      If the Directory option is specified, the files are instead put into a   directory under WorkDir. (For example the Directory option below would   cause all the files for a target ezwf to be put into directory   /usr/tardis/pub/www/stats/mrtg/ezwf/ .)      The directory must already exist; mrtg will not create it.      Example:    WorkDir: /usr/tardis/pub/www/stats/mrtg Directory[ezwf]: ezwf     _________________________________________________________________   XSize and YSize   By default mrtgs graphs are 100 by 400 pixels wide (plus some more for   the labels. In the example we get almost square graphs ...      Note: XSize must be between 20 and 600; YSize must be larger than 20      Example:    XSize[ezwf]: 300 YSize[ezwf]: 300     _________________________________________________________________   XZoom and YZoom   If you want your graphs to have larger pixels, you can ``Zoom'' them.      Example:    XZoom[ezwf]: 2.0 YZoom[ezwf]: 2.0     _________________________________________________________________   XScale and YScale   If you want your graphs to be actually scaled use XScale and YScale.   (Beware while this works, the results look ugly (to be frank) so if   someone wants to fix this: patches are welcome.      Example:    XScale[ezwf]: 1.5 YScale[ezwf]: 1.5     _________________________________________________________________   YTics and YTicsFactor   If you want to show more than 4 lines per graph, use YTics. If you   want to scale the value used for the YLegend of these tics, use   YTicsFactor. The default value for YTics is 4 and the default value   for YTicsFactor is 1.0 .      Example:     Suppose you get values ranging from 0 to 700.  You want to plot 7 lines and want to show  0, 1, 2, 3, 4, 5, 6, 7 instead of 0, 100, 200,  300, 400, 500, 600, 700.  You should write then:  YTics[ezwf]: 7  YTicsFactor[ezwf]: 0.01     _________________________________________________________________   Step   Change the default step from 5 * 60 seconds to something else (I have   not tested this well ...)      Example:    Step[ezwf]: 60     _________________________________________________________________   Options   The Options Keyword allows you to set some boolean switches:      growright          The graph grows to the left by default. This option flips the          direction of growth causing the current time to be at the right          edge of the graph and the history values to the left of it.             bits          All the monitored variable values are multiplied by 8 (i.e.          shown in bits instead of bytes) ... looks much more impressive          :-) It also affects the 'factory default' labeling and units          for the given target.             perminute          All the monitored variable values are multiplied by 60 (i.e.          shown in units per minute instead of units per second) in case          of small values more accurate graphs are displayed. It also          affects the 'factory default' labeling and units for the given          target.             perhour          All the monitored variable values are multiplied by 3600 (i.e.          shown in units per hour instead of units per second) in case of          small values more accurate graphs are displayed. It also          affects the 'factory default' labeling and units for the given          target.             noinfo          Suppress the information about uptime and device name in the          generated webpage.             nopercent          Don't print usage percentages             transparent          make the background of the generated gifs transparent ...             integer          Print summary lines below graph as integers without comma             dorelpercent          The relative percentage of IN-traffic to OUT-traffic is          calculated and displayed in the graph as an additional line.          Note: Only a fixed scale is available (from 0 to 100%).          Therefore for IN-traffic greater than OUT-traffic also 100% is          displayed. If you suspect that your IN-traffic is not always          less than or equal to your OUT-traffic you are urged to not use          this options. Note: If you use this option in combination with          the Colours options, a fifth colour-name colour-value pair is          required there.             gauge          Treat the values gathered from target as absolute and not as          ever incrementing counters. This would be useful to monitor          things like disk space, processor load, temperature, and the          like ...                    In the absence of 'gauge' and 'absolute' options, MRTG treats          variable as a counter and calculates the difference between the          current and the previous value and divides that by the elapsed          time between the last two readings to get the value to be          plotted.             absolute          This is for data sources which reset their value when they are          read. This means that rateup does not havt to build the          difference between this and the last value read from the data          source. The value obtained is still divided by the elapsed time          between the last two readings, which makes it different from          the 'gauge' option. Useful for external data gatherers.             unknaszero          Log unknown data as zero instead of the default behaviour of          repeating the last value seen. Be careful with this, often a          flat line in the graph is much more obvious than a line at 0.             Example:    Options[ezwf]: growright, bits     _________________________________________________________________   kilo   Use this option to change the multiplier value for building prefixes.   Defaultvalue is 1000. This tag is for the special case that 1kB =   1024B, 1MB = 1024kB and so far.      Example:    kilo[ezwf]: 1024     _________________________________________________________________   kMG   Change the default multiplier prefixes (,k,M,G,T,P). In the tag   ShortLegend define only the basic units. Format: Comma seperated list   of prefixed. Two consecutive commas or a comma at start or end of the   line gives no prefix on this item. Note: If you do not want prefixes,   then leave this line blank.      Example: velocity in nm/s (nanometers per second) displayed in nm/h.    ShortLegend[ezwf]: m/min kMG[ezwf]: n,u,m,,k,M,G,T,P options[ezwf]: perhour     _________________________________________________________________   Colours   The Colours tag allows you to override the default colour scheme.   Note: All 4 of the required colours must be specified here. The colour   name ('Colourx' below) is the legend name displayed, while the RGB   value is the real colour used for the display, both on the graph and   in the html doc.      Format is: Colour1#RRGGBB,Colour2#RRGGBB,Colour3#RRGGBB,Colour4#RRGGBB      Important: If you use the dorelpercent options tag a fifth colour name   colour value pair is required:   Colour1#RRGGBB,Colour2#RRGGBB,Colour3#RRGGBB,Colour4#RRGGBB,Colour5#RR

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -