[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] network monitor



On Thu, 2002-11-07 at 15:37, Kevin Barrass wrote:
> 
> Hi
> 
> Im trying to set up somethin to monitor network traffic types on a LAN, i
> tried ntop but found it unstable and produced too much information all i
> want to get pretty much is a pie chart giving percentage of traffic type on
> that lan such as 80 HTTP 20 telnet i was gona use tcpdump and us a perl
> script to generate the pie chart but if there is somethin already out there
> id rather use that.

I'm planning something related, using Perl, a few modules from CPAN.
(Net::PcapUtils, NetPacket::Ethernet, NetPacket::IP, NetPacket::UDP,
NetPacket::TCP and Time::HiRes).
The Perl script grabs traffic directly from libpcap (what tcpdump uses)
and then writes it into a plain text file for further processing by a
second script.

http://www.mellon-collie.net/mycrap/grab-libpcap.txt 
for a bit of code (although you should note I'm not bothered about good
code in this - just the right answer at the end of it all).

Hope this helps.

-- 
NAME    :	Adam Allen.
EMAIL   :	adam@dynamicinteraction.co.uk

COMMENT :	~~~~ insert your favourite signature comment here ~~~~

PGP    
:	http://search.keyserver.net:11371/pks/lookup?op=vindex&search=adam%40dynamicinteraction.co.uk

Attachment: signature.asc
Description: This is a digitally signed message part