dogsbody.org
Table Of Contents

Sections: About Me , Unreal Tournament . Web Stuff . Games , Fun Stuff , News Articles ,
General

Front Page
Sign & view the guestbook

About Me

Who am I
Contact Me
Why dogsbody?
Search my music collection
Real Audio Tunes
Things to do before I'm 30
Revolving Head!!

Unreal Tournament

Map pictures
View all map pics
Open Server Query
Query Script
My Servers (Closed)

Web Stuff

Temperature Monitor
Cobalt Package Update
Raq Site Bandwidth Script
Mail2Palm
Finger Client

Games

Battleships
Concentration
Dots
Tower of Hanoi
Peg

Fun Stuff

Shakespearean insult
SETI@home
Infinite Number of Monkeys
Phrases
Guess the MIDI

News Articles

Nerds get more action
Conscience of a Hacker
Y2K - The Maths
Beyond Infinity
The ultimate answer is 65


Yes, this site is VERY old, I have big plans to update it (I have my new site set up but I have yet to migrate all this old stuff over), I'm afraid my priorities are with the Dogsbody Hosting and Camberley Skaters sites at the moment.

Raq Site Bandwidth Script




Latest Version 1.04 (30 Sep 2004)


Introduction

This script is for the Cobalt Raq4 (although I would love to know if it works with the Raq3 too??). It uses the internally generated /home/.cobalt/report/stats.tab file to display the bandwith used by each virtual site on the server even if your virtual sites are on the same IP address. The stats.tab file is generated by the Raq when it splits the log files up for each site. A total is kept for Web, FTP & E-mail by month showing the number of hits, transfers & mails as well as the total amount of bandwidth used for each one. This script displays that data with some nifty additions...


What it does

At it's basic level this script displays the data in the stats.tab file in a webpage but it also...
  • The script is password protected by default. If "admin" logs in they will see a summary for all sites. If a standard user logs in they will only see details of their own site. This means you can publish the URL and siteadmins can check their own sites usage.
  • Add extra data to the stats. e.g. I run a Helix streaming server and split the logs in the same way to create my own stats.tab file for helix. This script will merge data from both.
  • Two warning levels. If the usage for a site is over a two bandwidth levels it will be highlighted. These levels can be configured by you.
  • Easy control over look and feel
Screenshot of admin summary page
Screenshot of the site detail page




Installation

The setup should be pretty easy...
  • Download the script from the site ('wget URL').
  • Put the download where you want it.
  • Extract the compressed tar using 'tar zxvf raq-bandwidth.tar.gz'.
  • Check the file permissions for the directory & files
  • Check that the script runs first by browsing to the ..../bandwidth/ directory.
  • If it works the change any setup you wish to change in the top if the index.cgi script.


Feedback

I would love feedback on this script, good and bad. Thank you.


Changelog
  • 1.04 - 30 Sep 2004
    • Release to public
  • Pre 1.04
    • Beta Testing. Thank you Thom LaCosta & Florian Arzberger




Dogsbody Hosting

Copyright © 1997-2008 Dogsbody.org