# http://nerull.no-ip.com/mrtg/setup.php ###################################################################### # Multi Router Traffic Grapher -- Example Configuration File ###################################################################### # # * copy this file to ../run and call it mrtg.cfg # * consider using ../run/cfgmaker to build your initial mrtg.cfg file # # This file is for use with mrtg-2.x # # Note: # # * Keywords must start at the begin of a line. # # * Lines which follow a keyword line which do start # with a blank are appended to the keyword line # # * Empty Lines are ignored # # * Lines starting with a # sign are comments. # #################### # Global Configuration # #################### # Where should the logfiles, and webpages be created? WorkDir: /disk/web/mrtg Options[_]: growright,bits # -------------------------- # Optional Global Parameters # -------------------------- # How many seconds apart should the browser (Netscape) be # instructed to reload the page? If this is not defined, the # default is 300 seconds (5 minutes). # Refresh: 600 # How often do you call mrtg? The default is 5 minutes. If # you call it less often, you should specify it here. This # does two things: # a) the generated HTML page does contain the right # information about the calling interval ... # b) a META header in the generated HTML page will instruct # caches about the time to live of this page ..... # In this example we tell mrtg that we will be calling it # every 10 minutes. If you are calling mrtg every 5 # minutes, you can leave this line commented out. # Interval: 10 # With this switch mrtg will generate .meta files for CERN # and Apache servers which contain Expiration tags for the # html and gif files. The *.meta files will be created in # the same directory as the other files, so you might have # to set "MetaDir ." in your srm.conf file for this to work # # NOTE: If you are running Apache-1.2 you can use the mod_expire # to achieve the same effect ... see the file htaccess-dist #WriteExpires: Yes # If you want to keep the mrtg icons in some place other than the # working directory, use the IconDir varibale to give its url. # IconDir: /mrtgicons/ # Temp 1.3.6.1.4.1.318.1.1.1.2.2.2.0. # Temp/Hum 1.3.6.1.4.1.318.1.1.2.1.1.0 # setenv WITHOUT_X11 yes # portinstall sysutils/xmbmon LoadMIBs: /usr/local/share/snmp/mibs/UCD-SNMP-MIB.txt # ################################################# # IP accounting # ################################################# Options[ipa-overview-rate]: gauge, noinfo, nopercent, growright, unknaszero Target[ipa-overview-rate]: `/usr/local/etc/mrtg/ipa-rate.pl overview` MaxBytes[ipa-overview-rate]: 400000 # WithPeak[ipa-overview-rate]: y Title[ipa-overview-rate]: IP accounting for Overview PageTop[ipa-overview-rate]:

IP accounting for the Overview

Options[ipa-overview-total]: gauge, noinfo, nopercent, growright Target[ipa-overview-total]: `/usr/local/etc/mrtg/ipa-total.pl overview` MaxBytes[ipa-overview-total]: 50000000000 # WithPeak[ipa-overview-total]: y Title[ipa-overview-total]: IP accounting for Server PageTop[ipa-overview-total]:

IP accounting for Overview

YLegend[ipa-overview-total]: Bytes this month ShortLegend[ipa-overview-total]: B Options[ipa-user1-rate]: gauge, noinfo, nopercent, growright, unknaszero Target[ipa-user1-rate]: `/usr/local/etc/mrtg/ipa-rate.pl user1` MaxBytes[ipa-user1-rate]: 400000 # WithPeak[ipa-user1-rate]: y Title[ipa-user1-rate]: IP accounting for User-1 PageTop[ipa-user1-rate]:

IP accounting for User-1

Options[ipa-user1-total]: gauge, noinfo, nopercent, growright Target[ipa-user1-total]: `/usr/local/etc/mrtg/ipa-total.pl user1` MaxBytes[ipa-user1-total]: 22000000000 # WithPeak[ipa-user1-total]: y Title[ipa-user1-total]: IP accounting for User-1 PageTop[ipa-user1-total]:

IP accounting for User-1

YLegend[ipa-user1-total]: Bytes this month ShortLegend[ipa-user1-total]: B Options[ipa-user2-rate]: gauge, noinfo, nopercent, growright, unknaszero Target[ipa-user2-rate]: `/usr/local/etc/mrtg/ipa-rate.pl user2` MaxBytes[ipa-user2-rate]: 400000 # WithPeak[ipa-user2-rate]: y Title[ipa-user2-rate]: IP accounting for User-2 PageTop[ipa-user2-rate]:

IP accounting for User-2

Options[ipa-user2-total]: gauge, noinfo, nopercent, growright target[ipa-user2-total]: `/usr/local/etc/mrtg/ipa-total.pl user2` MaxBytes[ipa-user2-total]: 75000000000 # WithPeak[ipa-user2-total]: y Title[ipa-user2-total]: IP accounting for User-2 PageTop[ipa-user2-total]:

IP accounting for User-2

YLegend[ipa-user2-total]: Bytes this month ShortLegend[ipa-user2-total]: B Options[ipa-user3-rate]: gauge, noinfo, nopercent, growright, unknaszero Target[ipa-user3-rate]: `/usr/local/etc/mrtg/ipa-rate.pl user3` MaxBytes[ipa-user3-rate]: 400000 # WithPeak[ipa-user3-rate]: y Title[ipa-user3-rate]: IP accounting for User-3 PageTop[ipa-user3-rate]:

IP accounting for User-3

Options[ipa-user3-total]: gauge, noinfo, nopercent, growright Target[ipa-user3-total]: `/usr/local/etc/mrtg/ipa-total.pl user3` MaxBytes[ipa-user3-total]: 5000000000 # WithPeak[ipa-user3-total]: y Title[ipa-user3-total]: IP accounting for User-3 PageTop[ipa-user3-total]:

IP accounting for User-3

YLegend[ipa-user3-total]: Bytes this month ShortLegend[ipa-user3-total]: B Options[ipa-local-rate]: gauge, noinfo, nopercent, growright, unknaszero Target[ipa-local-rate]: `/usr/local/etc/mrtg/ipa-rate.pl local` MaxBytes[ipa-local-rate]: 400000 # WithPeak[ipa-local-rate]: y Title[ipa-local-rate]: IP accounting for Lokaal PageTop[ipa-local-rate]:

IP accounting for Lokaal

Options[ipa-local-total]: gauge, noinfo, nopercent, growright Target[ipa-local-total]: `/usr/local/etc/mrtg/ipa-total.pl local` MaxBytes[ipa-local-total]: 5000000000 # WithPeak[ipa-local-total]: y Title[ipa-local-total]: IP accounting for Lokaal PageTop[ipa-local-total]:

IP accounting for Lokaal

YLegend[ipa-local-total]: Bytes this month ShortLegend[ipa-local-total]: B # External tool used: ipa IP accounting # Found in FreeBSD ports at /usr/local/ports/systools/ipa ## ## 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) ... # # 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.