[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Sheflug] network monitor
cool, cheers ill have a look at this and see if i can apply it to what im
doing, ill let u know how i get on.
Regards
Kev
-----Original Message-----
From: Mr. Adam nospam [at] dynamicinteraction.co.uk]
Sent: 07 November 2002 18:23
To: shef-lug [at] list.sheflug.org.uk
Subject: 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%40dynamic
interaction.co.uk
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.