tools for monitoring monthly traffic

Mark Purcell mark at purcell.aaa.net.au
Fri Nov 30 22:11:18 EST 2001


On Fri, Nov 30, 2001 at 06:15:13PM +1100, Damien Elmes wrote:
> i got a friendly letter from the telstra ADSL folks today, indicating
> they've "updated and improved" their usage meter. so i go have a look,
> and low-and-behold, the old CGI based method has been taken away. in
> its place are a windows or mac executable.

Not sure what link they have given you, but the standard usage meter
off http://telstra.com is pointing to https://bcoba-server.bigpond.net.au:8443/rhwc/smu
and that works fine under konqueror here.

> rather than rant to you guys, i might go let off some steam  with a
> game. i just write to enquire if people have experience with software
> which can keep track of the traffic done in a month's period, seeing
> as how i'm going to have to do this myself now.

MRTG is one option, have a look at my stats at http://purcell.homeip.net/mrtg/
for an idea.

Of course I have thrown in a little bit of extra magic to MRTG [1]

The other major option appears to be IOG, but I haven't used that.

Mark

// IOG v0.99 - Input/Output Grapher - README
//
// Official Homepage: http://www.dynw.com/iog/

IOG is a network I/O byte grapher made to graph cumulative KB/MB/GB
totals for hours/days and months. It is intended to be simple, fast
(support thousands of hosts) and integrate well with MRTG. Data for
each host is updated hourly and HTML graphs are created. It uses a
data consolidation algorithm which allows for a small, non-growing
database file for each host. No external graphing libs or
executables are required.


[1] purcell:/usr/bin# diff -u mrtg mrtg.msp2
--- mrtg        Sun Sep  9 00:23:39 2001
+++ mrtg.msp2   Fri Nov 30 21:00:07 2001
@@ -972,6 +972,12 @@
                 'w' => 'week',
                 'm' => 'month',
                 'y' => 'year');
+
+   my %dys  = ('d' => 1,
+               'w' => 7,
+               'm' => 30,
+               'y' => 365);
+

     $$rcfg{'rgb1'}{$router} = "" unless defined $$rcfg{'rgb1'}{$router};
     $$rcfg{'rgb2'}{$router} = "" unless defined $$rcfg{'rgb2'}{$router};
@@ -1035,7 +1041,10 @@
         print HTML "
 <!-- Begin $sample{$peri} -->
 <HR>
-".&$LOC("<B>$sample{$peri}").&$LOC(" Average)</B><BR>")."
+".&$LOC("<B>$sample{$peri}").&$LOC(" Average)
+ $InCo  " .int($$avin{$peri}{$router}*0.086400*$dys{$peri})." Mb/$full{$peri}
+ $OutCo " .int($$avout{$peri}{$router}*0.086400*$dys{$peri})." Mb/$full{$peri}
+ </B><BR>")."
 <IMG VSPACE=10 WIDTH=$gifw HEIGHT=$gifh ALIGN=TOP
      SRC=\"$dirrel$$cfg{imagehtml}$$rcfg{directory_web}{$router}$router-$full{$peri}.${main::GRAPHFMT}\" ALT=\"$full{$peri}\">
  <TABLE CELLPADDING=0 CELLSPACING=0>




More information about the linux mailing list