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

📄 mrtg_cfg

📁 mrtg 监控,请认真阅读您的文件包然后写出其具体功能
💻
📖 第 1 页 / 共 2 页
字号:
### By default the graphs only contain the average transfer# rates for incoming and outgoing traffic. The# following option instructs mrtg to display the peak# 5 minute transfer rates 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.# WithPeak[ezwf]: ym#### Supress ------------------------------------------### By Default mrtg produces 4 graphs. With this option you# can suppress the generation of selected graphs.  The format# is analog to the above option. In this example we suppress# the yearly graph as it is quite empty in the beginning.# Suppress[ezwf]: y#### Directory### By default, mrtg puts all the files that it generates for each# router (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, given the options in# this mrtg.cfg-dist file, the "Directory" option below would cause all# the ezwf files to be put into /usr/tardis/pub/www/stats/mrtg/ezwf .)## The directory must already exist; mrtg will not create it.# 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# XSize[ezwf]: 300# YSize[ezwf]: 300#### XZoom YZoom -------------------------------------------------### If you want your graphs to have larger pixels, you can# "Zoom" them.#XZoom[ezwf]: 2.0#YZoom[ezwf]: 2.0#### XScale 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 fix this: patches are # welcome.# XScale[ezwf]: 1.5# YScale[ezwf]: 1.5## ## Step -----------------------------------------------------------### Change the default step with from 5 * 60 seconds to # something else I have not tested this well ...# Step[ezwf]: 60#### Options ------------------------------------------### The "Options" Keyword allows you to set some boolean # switches:## growright - The graph grows to the left by default.## bits -      All the numbers printed are in bits instead #             of bytes ... looks much more impressive :-)## noinfo -    Supress the information about uptime and#             device name in the generated webpage.## absolute -  This is for data sources which reset their #             value when they are read. This means that #             rateup has not to build the difference between #             this and the last value read from the data#             source. Useful for external data gatherers.## gauge -     Treat the values gathered from target as absolute#             and not as counters. This would be useful to#             monitor things like diskspace, load and so#             on ....## nopercent   Don't print usage percentages## integer     Print only integers in the summary #             below the graph (No Kilo, Mega, Gigas) ... ## Options[ezwf]: growright, bits#### 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 n the# html doc.# Format is: Colour1#RRGGBB,Colour2#RRGGBB,Colour3#RRGGBB,Colour4#RRGGBB#    where: Colour1 = Input on default graph#           Colour2 = Output on default graph#           Colour3 = Max input#           Colour4 = Max output#           RRGGBB  = 2 digit hex values for Red, Green and Blue# Colours[ezwf]: GREEN#00eb0c,BLUE#1000ff,DARK GREEN#006600,VIOLET#ff00ff#### Background ------------------------------------------### With the "Background" tag you can configure the background# colour of the generated HTML page# Background[ezwf]: #a0a0a0a#### YLegend, ShortLegend, Legend[1234] ------------------### The following keywords allow you to override the text# displayed for the various legends of the graph and in the# HTML document## * YLegend : The Y-Axis of the graph# * ShortLegend: The 'b/s' string used for Max, Average and Current# * Legend[1234IO]: The strings for the colour legend##YLegend[ezwf]: Bits per Second#ShortLegend[ezwf]: b/s#Legend1[ezwf]: Incoming Traffic in Bits per Second#Legend2[ezwf]: Outgoing Traffic in Bits per Second#Legend3[ezwf]: Maximal 5 Minute Incoming Traffic#Legend4[ezwf]: Maximal 5 Minute Outgoing Traffic#LegendI[ezwf]: &nbsp;In:#LegendO[ezwf]: &nbsp;Out:# Note, if LegendI or LegendO are set to an empty string with# LegendO[ezwf]:# The corresponding line below the graph will not be printed at all.# If you live in an international world, you might want to # generate the graphs in different timezones. This is set in the # TZ variable. Under certain operating systems like Solaris, # this will provoke the localtime call to giv the time in # the selected timezone ...# Timezone[ezwf]: Japan# The Timezone is the standard Solaris timezone, ie Japan, Hongkong,# GMT, GMT+1 etc etc.# By default, mrtg (actually rateup) uses the strftime(3) '%W' option# to format week numbers in the monthly graphs.  The exact semantics# of this format option vary between systems.  If you find that the# week numbers are wrong, and your system's strftime(3) routine# supports it, you can try another format option.  The POSIX '%V'# option seems to correspond to a widely used week numbering# convention.  The week format character should be specified as a# single letter; either W, V, or U.# Weekformat[ezwf]: V # ############################## Two very special Target names# ############################## To save yourself some typing you can define a target# called '^'. The text of every Keyword you define for this# target will be PREPENDED to the corresponding Keyword of# all the targets defined below this line. The same goes for# a Target called '$' but its options will be APPENDED.## The example will make mrtg use a common header and a# common contact person in all the pages generated from# targets defined later in this file.##PageTop[^]: <H1>NoWhere Unis Traffic Stats</H1><HR>#PageTop[$]: Contact Peter Norton if you have any questions<HR>######################################################################################################################################################################################################## Now some example mrtg.cfg files######################################################################################################################################################################################################## Minimal mrtg.cfg#--------------------#WorkDir: /usr/tardis/pub/www/stats/mrtg#Target[r1]: 2:public@myrouter.somplace.edu#MaxBytes[r1]: 64000#Title[r1]: Traffic Analysis ISDN#PageTop[r1]: <H1>Stats for our ISDN Line</H1># Minimal Cfg for several Routers.#---------------------------------#WorkDir: /usr/tardis/pub/www/stats/mrtg##Title[^]: Traffic Analysis for#PageTop[^]: <H1>Stats for our#PageTop[$]: Contact The Chief if you notice anybody<HR>##Title[isdn]: our ISDN Line#PageTop[isdn]: our ISDN Line </H1>#Target[isdn]: 2:public@router.somplace.edu#MaxBytes[isdn]: 64000##Title[backb]: our Campus Backbone#PageTop[backb]: our Campus Backbone </H1>#Target[backb]: 1:public@router.somplace.edu#MaxBytes[backb]: 1250000# the following line removes the default prepend value# defined above#Title[^]:#Title[isdn2]: Traffic for the Backup ISDN Line#PageTop[isdn2]: our ISDN Line </H1>#Target[isdn2]: 3:public@router.somplace.edu#MaxBytes[isdn2]: 64000

⌨️ 快捷键说明

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