Dear Sir,

I am writing to thank you for your letter and say that

On Wed, Sep 25, 2002 at 05:03:11PM +1000, Ben Zampatti wrote:
> Hi, I was wondering if there was a way to make it so that the stats of say
> the tcp/udp page (data recvd) can be saved in a html form? i noticed that
> when you move your mouse over the tcp/udp part, it comes up as
> "sortDataReceivedIP.html" but that file doesnt even exist anywhere on the
> system. Ideally, I need a way so that after every week, it keeps the stats
> in a html file and then resets the stats, so this way I can keep a record
> of how much bandwidth has been used by each machine every month. Any help
> will be greatly appreciated! Thanks.
> 

should that page exit, then if you really want to do what you are asking
you will need to start coding an application that gets the web page,
parses the HTML, and saves what you want.

On the other hand, ntop already has a beautiful means of exporting stats
via HTTP requests that requires _no_ HTML parsing.

You can find samples of this usage in the www sub dir of the source
distribution. 

I have found the Perl and RRD examples very helpful, although my usage
is split into

1 A collector run by cron that gets the relevant ntop web page and the
values you want, updating an RRD

2 a display program that uses rrdcgi to present the RRD data as an RRD
graph.

Yours sincerely.

-- 
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop

Reply via email to