bwbar resetting

Gah! wtf!?

Moderators: SnotRocket, fydo

bwbar resetting

Postby imbezol » Mon Oct 27, 2003 8:03 pm

I don't know if I'm doing something wrong with bwbar but I run it on igloo and cabin and with both of them the totals reset all the time. Here's my config.. let me know if something looks obviously wrong.

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.
imbezol
Site Admin
 
Posts: 79
Joined: Fri Oct 10, 2003 8:31 am
Location: Edmonton, Alberta

Postby imbezol » Fri Oct 31, 2003 1:20 pm

I think I might have solved the problem. I set the refresh time to 3 seconds and upped the maximum to reflect a 100Mb line and it seems to have fixed it. I'm thinking it's more likely the maximum that was causing it to go over and reset.
imbezol
Site Admin
 
Posts: 79
Joined: Fri Oct 10, 2003 8:31 am
Location: Edmonton, Alberta

Postby imbezol » Wed Nov 12, 2003 9:04 am

Argh.. igloo's not resetting anymore but cabin still is and their configs are the same.
imbezol
Site Admin
 
Posts: 79
Joined: Fri Oct 10, 2003 8:31 am
Location: Edmonton, Alberta

Postby burn » Wed Nov 26, 2003 10:35 pm

Here is mine, I don't think it has ever reset.

Code: Select all
#!/bin/bash

BWBAR_DIRECTORY=/home/burn/bwbar
OUTPUT_DIRECTORY=/web/bluedevil.ca/mrtg/htdocs/eth0
INDEX_FILENAME=index.shtml
MEASUREMENT_TYPE=3
DEVICE=eth0
INTERVAL=5
BRIEF_MODE=0
SHOW_PERCENT=1
MAX_IN=100000
MAX_OUT=100000
User avatar
burn
Site Admin
 
Posts: 35
Joined: Sun Oct 26, 2003 10:49 pm
Location: Sylvan Lake

Postby fiftyfly » Fri Nov 28, 2003 5:35 am

just out of curiosity did you happen to notice if the reset happens to coincide with a rollover in /proc/net/dev's counters?
fiftyfly
Root me
 
Posts: 3
Joined: Fri Nov 28, 2003 4:41 am

Postby imbezol » Fri Dec 12, 2003 8:59 am

I hadn't thought of that but I'll keep an eye on it.
imbezol
Site Admin
 
Posts: 79
Joined: Fri Oct 10, 2003 8:31 am
Location: Edmonton, Alberta


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron