> I would like to know how much data going thru my cable modem (both
incoming
> and outgoing) within some time interval, e.g. weekly. I think I saw
some
> brief discussions about it but I cannot find out the relevant
information. I
> would like to be able to store the daily statistics somewhere and then
add
> them up and send me mail at the end of one week. I have an internal
Redhat
> server, so I can store intermediate data there.
>
> Could somebody help me? I am running Dachstein.

Check into running MRTG on your RH server, and snmp on the Dachstein
box.

If you want to roll something on your own, basically take a look at
/proc/net/dev, which lists TX/RX bytes/packets/errors/etc.  Do a little
math on the numbers, and you'll have your stats.

NOTE:  Dachstein doesn't include anything that can handle big-number
math, and the byte counts can get pretty large...probably the easiest
way to do something on your own (if MRTG won't do what you want) is to
do something like e-mail the contents of /proc/net/dev periodically from
cron to an account on your RH box.

...or you could create an ssh account on the Dachstein box, and have a
script on the RH box grab /proc/net/dev via ssh for processing...

...or you could grab /proc/net/dev via http & weblet/sh-httpd...

...or you could write a program that could handle the large number math,
and run that on the Dachstein box...

...or about a zillion other options :-)

Charles Steinkuehler
http://lrp.steinkuehler.net
http://c0wz.steinkuehler.net (lrp.c0wz.com mirror)





-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to