Networking Forums

Networking Forums > Computer Networking > Linux Networking > Simple daemon to log bandwidth usage per port/host?

Reply
Thread Tools Display Modes

Simple daemon to log bandwidth usage per port/host?

 
 
Jonathan A.
Guest
Posts: n/a

 
      10-17-2003, 07:21 PM

Hi,

I've been searching for the past couple of days, and getting pretty
frustrated in my efforts. Could anyone point me to a simple daemon
that is capable of logging bandwidth usage on a "per port/host" basis.

For instance, I would like a running log of the total amount of
traffic on port 119 from my ISP's news server to my machine. I've
seen some apps that look capable of doing such a thing, but they
mostly seem to be horribly complex things that require PHP, SQL,
iptables-accounting, etc. It all seems to be complete overkill for
my purposes. The simpler daemon type apps seem to be only capable
of generating per-interface stats.

I just want a simple daemon that will generate a textual log of
traffic totals and can differentiate hosts/ports. Maybe something
using libpcap or similar.

Any ideas?

TIA,
Jonathan

--
Don't just hit reply. Email address is broken. Thank
your friendly neighborhood spammer. Email replies to:
user: jnthn1 domain: earthlink<dot>net
 
Reply With Quote
 
 
 
 
Klaatu
Guest
Posts: n/a

 
      10-17-2003, 07:41 PM
Jonathan A. wrote:

>
> Hi,
>
> I've been searching for the past couple of days, and getting pretty
> frustrated in my efforts. Could anyone point me to a simple daemon
> that is capable of logging bandwidth usage on a "per port/host" basis.
>
> For instance, I would like a running log of the total amount of
> traffic on port 119 from my ISP's news server to my machine. I've
> seen some apps that look capable of doing such a thing, but they
> mostly seem to be horribly complex things that require PHP, SQL,
> iptables-accounting, etc. It all seems to be complete overkill for
> my purposes. The simpler daemon type apps seem to be only capable
> of generating per-interface stats.
>
> I just want a simple daemon that will generate a textual log of
> traffic totals and can differentiate hosts/ports. Maybe something
> using libpcap or similar.
>
> Any ideas?
>
> TIA,
> Jonathan
>


IPTraf?
http://iptraf.seul.org/
 
Reply With Quote
 
Jonathan A.
Guest
Posts: n/a

 
      10-17-2003, 08:37 PM
On Fri, 17 Oct 2003 19:41:10 GMT, Klaatu
<mutster8_nospam_@netscape.net> appears to have said:

> Jonathan A. wrote:
>>
>> I just want a simple daemon that will generate a textual log of
>> traffic totals and can differentiate hosts/ports. Maybe something
>> using libpcap or similar.

>
> IPTraf?


Well, it's possible to run iptraf in background with a filter set to
monitor just the host/port I'm interested in. Only problem is, I use
iptraf in interactive mode a lot, and I don't see any way to change
the filters in interactive mode that wouldn't also apply next time I
start in "daemon" mode.

IOW, I would have to be careful to remember to re-apply the filter
every time I removed it in interactive mode, if I want to keep
background mode from logging everything next time it starts. It's
a thought, but something more "fire and forget" would be much more
manageable over the long term.

ciao,
Jonathan

--
Don't just hit reply. Email address is broken. Thank
your friendly neighborhood spammer. Email replies to:
user: jnthn1 domain: earthlink<dot>net
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
simple usage of windows TAP-Win32 driver DigitalJerry@gmail.com Linux Networking 0 04-15-2008 01:50 AM
Monitoring bandwidth usage - writing a simple monitor cga2000 Linux Networking 4 01-01-2008 08:18 PM
bandwidth usage meter? liu Network Routers 4 05-20-2007 01:43 PM
Bandwidth usage logger Daytona Broadband 27 09-03-2006 01:09 PM
Measuring bandwidth usage Mark Allison Broadband 3 09-22-2004 02:26 PM



1 2 3 4 5 6 7 8 9 10 11