Most of the global statistics are stored in rrds...

# ls -1 /usr/share/ntop/rrd/interfaces/eth1
activeHostSendersNum.rrd
arpRarpBytes.rrd
badChecksumPkts.rrd
broadcastPkts.rrd
domains
droppedPkts.rrd
ethernetBytes.rrd
ethernetPkts.rrd
fragmentedIpBytes.rrd
hosts
...you get the idea...

And you do know the other trick, right?  You can use the graph.c code to
pull a graph of any ntop rrd:

http://127.0.0.1:3000/plugins/rrdPlugin?action=graph&key=interfaces/eth1/hos
ts/00/00/D1/EF/02/D0/&name=pktSent&title=pktSent&start=now-12h&end=now

Should be mostly obvious...

key is the subdirectory relative to the /usr/share/ntop/rrd directory
name= is the specific file to graph
title= is, well, the title printed on the graph,
start= and end= give the time range

-----Burton


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of KiNo
> Sent: Tuesday, May 04, 2004 10:07 AM
> To: ntop-user
> Subject: RE: [Ntop] How to set Ntop as a NetFlow sender ? (SQL)
>
>
> Ok, I see.
> So is there a way to save stats about global
> distribution of TCP protocols (HTTP, Proxy, Netbios,
> Mail) in order to create an litle historic ?
> Idealy it could be great if I was be able to save
> graphs as well or at least if I was be able to
> re-generate in ntop.
>
> I'm note sure this information is saved in the RRD
> database, I saw something nice by clicking on the
> small icon 'historical data' below the table 'For
> device' in the page Summary/Traffic but nothing for
> the Global TCP/UDP Protocol Distribution.
>
> Cheers
>
> Nicolas
>
>
>  --- "Burton M. Strauss III" <[EMAIL PROTECTED]>
> a �crit : > De: "Burton M. Strauss III"
> <[EMAIL PROTECTED]>
> > �: <[EMAIL PROTECTED]>
> > Objet: RE: [Ntop] How to set Ntop as a NetFlow
> > sender ? (SQL)
> > Date: Tue, 4 May 2004 09:11:12 -0500
> >
> > Can't do it - Luca ripped that code out at the end
> > of the 3.0 development
> > cycle (3/1/04)...
> >
> > "Modified Files:
> >     netflowPlugin.c
> > Log Message:
> > Reworked at the OS fingerprint/characterization:
> > they are now split.
> > Added support for NetFlow v1 (used mostly by Extreme
> > Networks Switches)
> > Removed the ability to use ntop as a NetFlow probe:
> > this facility
> > was not used since a long time, not too efficient,
> > and untested/not-ready
> > for version 3."
> >
> > It always worked fine for me, no clue what the
> > problems Luca was aware of
> > were.
> >
> > -----Burton
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of KiNo
> > > Sent: Tuesday, May 04, 2004 7:41 AM
> > > To: ntop-user
> > > Subject: [Ntop] How to set Ntop as a NetFlow
> > sender ? (SQL)
> > >
> > >
> > > Hi,
> > > I'd like to save ntop stats into a mySQL database,
> > so
> > > I read the procedure described in the Ntop 3.0's
> > FAQ
> > > but the explanation is rather short for me, sorry.
> > >
> > >    "To use this with a single instance of ntop,
> > just
> > > set ntop up as a netflow sender, directed at the
> > > script (e.g. 127.0.0.1 on any port you like)."
> > >
> > > I configured the script
> > ntop/NetFlow/netFlowClient.pl
> > > and I created the mysql database and the
> > appropriate
> > > table with the script provided.
> > >
> > > Now I'd like to know how to set ntop as NetFlow
> > sender
> > > in order to forward data from ntop to the perl
> > script
> > > and then to the database.
> > >
> > > I check the plug-in section of web interface, but
> > it
> > > only talk about "collection".
> > >
> > > PS: if there is another method to save stats into
> > > mysql databases, I'm listening too.
> > > I saw that ntop save some information in rrd but
> > not
> > > those I need.
> > > In fact,I mainly use Ntop to monitor the TCP
> > protocol
> > > distribution (HTTP, Mail, NetBios and so on) in my
> > > bandwith. So I would like to save this information
> > > frequently in  order to browse them later and to
> > make
> > > report. If anyone has an idea thank you very much.
> > >
> > > Platform: Ntop3.0rc1, Debian Testing
> > >
> > > Nicolas
>
>
>
>
>
>
>
> Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
> Cr�ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
>
> Dialoguez en direct avec vos amis gr�ce � Yahoo! Messenger
> !T�l�chargez Yahoo! Messenger sur http://fr.messenger.yahoo.com
> _______________________________________________
> Ntop mailing list
> [EMAIL PROTECTED]
> http://listgateway.unipi.it/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to