- Code: Select all
#!/bin/bash
# This file contains the configuration parameters for the bwbar program. You
# will need to change the first two parameters (BWBAR_DIRECTORY and
# OUTPUT_DIRECTORY); the rest are optional.
BWBAR_DIRECTORY=/usr/sbin
# This is the location of the DIRECTORY where the bwbar program is located.
# (The program itself is located at BWBAR_DIRECTORY/bwbar)
OUTPUT_DIRECTORY=/www/bigfiber.net/www/html/mrtg/bwbar
# This is the location of the directory where we will output the statistics
# from the program.
INDEX_FILENAME=index.shtml
# This is the name of the file within the OUTPUT_DIRECTORY where the program will
# write its statistics to. If your HTTP server only parses server-side includes
# in files with .shtml extensions, you may want to change this to "index.shtml".
# Otherwise, it should not need to be altered.
MEASUREMENT_TYPE=3
# This is the format of the output. Since bits are usually used when measuring
# data over time, you will likely want to use one of the first two. If you don't
# understand why these values are abbreviated the way they are, please read the
# note about such in the README file.
# These types are valid:
# 1 = kilobits per second (kb/s)
# 2 = megabits per second (Mb/s)
# 3 = kilobytes per second (kB/s)
# 4 = megabytes per second (MB/s)
DEVICE=eth0
# This is the name of the physical network device which will be monitored, e.g.
# eth0, eth1, lo, ppp0. We cannot monitor virtual interfaces (eth0:1, etc.).
INTERVAL=1
# This is the interval at which statistics will be gathered, in seconds. If you
# want up-to-the-second information, use 1. With intervals greater than 1, all
# data displayed in "per second" form is really an average based on the interval.
BRIEF_MODE=0
# This controls whether we output the statistics in "brief mode" or not. In
# brief mode, only the "Current bandwidth usage is" line is displayed; no
# aggregate statistics are collected. This is useful if your HTTP server does
# not support server-side includes (SSI). Valid values are:
# 0 = off
# 1 = on
SHOW_PERCENT=0
# This controls whether we output a "Current percent utilization is:" line or
# not. Valid values are:
# 0 = off
# 1 = on
MAX_IN=10000
# This is the maximum inbound capacity in kilobits per second, used to calculate
# the percentage if SHOW_PERCENT is enabled.
MAX_OUT=10000
# This is the maximum outbound capacity in kilobits per second, used to calculate
# the percentage if SHOW_PERCENT is enabled.
# End of configuration.
