🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Padisetti Rajeswara Rao Thu, 13 Mar 1997 00:00
Determine how much data has been transferred..
#15870
Author: Padisetti Rajeswara Rao
Date: Thu, 13 Mar 1997 00:00
27 lines
1127 bytes
hi all

I am working using inn1.4 on HP-UX 10.x

I am interested in knowing..

How much data (or how many bytes) has been transferred
in and out through the newsfeed.

The log file does log the number of articles that have
been transferred (with statistics like accepted, rejected
and refused ) but does not log the amount of data that
has been transferred.

One way to acheive this is keep polling the freespace on
hard disk. But, this does not give exact picture
becuz there could be some local postings.


Best Regards,

-- 

Raj

Re: Determine how much data has been transferred..
#15818
Author: Matt Dillon
Date: Wed, 12 Mar 1997 00:00
42 lines
1665 bytes
:In article <33276187.56FB@india.hp.com>,
:Padisetti Rajeswara Rao  <prrao@india.hp.com> wrote:
:>hi all
:>
:>I am working using inn1.4 on HP-UX 10.x
:>
:>I am interested in knowing..
:>
:>How much data (or how many bytes) has been transferred
:>in and out through the newsfeed.
:>
:>The log file does log the number of articles that have
:>been transferred (with statistics like accepted, rejected
:>and refused ) but does not log the amount of data that
:>has been transferred.
:>
:>One way to acheive this is keep polling the freespace on
:>hard disk. But, this does not give exact picture
:>becuz there could be some local postings.
:>
:>
:>Best Regards,
:>
:>-- 
:>
:>Raj

    innd doesn't really keep track of the number of bytes. 

    At the moment, a full feed runs 5 gigabytes and 300,000
    articles a day.  A large portion of that is alt.binaries.
    With appropriate filtering, you can cut it down to around
    2 gigabytes a day.  You can get the full details from:

    http://thereisnocabal.news.erols.com/

					-Matt



Re: Determine how much data has been transferred..
#15833
Author: Robert Stone
Date: Thu, 13 Mar 1997 00:00
46 lines
2466 bytes
Padisetti Rajeswara Rao (prrao@india.hp.com) wrote:
: hi all
: 
: I am working using inn1.4 on HP-UX 10.x
: 
: I am interested in knowing..
: 
: How much data (or how many bytes) has been transferred
: in and out through the newsfeed.
: 

one way this could be done is by placing a statistics generation program
in the innd newsfeeds file as a channel feed like this:

stats:*:Tc,Wbpts:/usr/local/bin/foo

this will fire up /usr/local/bin/foo and pass it data on stdin of
the format:

<bytes> <post time> <recieved time> <from feed>

from which i can generate average latency and byte counts on feeds... the
group the article was posted to may also be useful if you have a lot of feeds
because you could determine what feeds are handling which groups the best
and have them only feed those groups to you (the alt.binaries hierachies come
to mind here).

i'm working on a channel feed statistic program to do these things, but i have
not yet had the time to exploit the possibilities.  If i go get something
useful togeather... this group will be the first to know about it.

keep in mind that you DO NOT want to write out data after each line of
proccessing, or even every 200 lines... a better meathod would be to set a
timer in the code and dump stats every 10 or 15 minutes (allowing you to more
easily generate pretty graphs which we all know make our bosses happy).

also, this only sees the accepted files.  a program to tally how much
bandwitdth is wasted and from where it comes would also be useful, but i don't
know where one would place that (innd hacks??).
-- 
rstone@accesscom.com           | "i feel a great disturbance in the force,
UNIX/Network Administrator     | luke, as if a thousand lusers cried out...
Access Internet Communications | and were silenced." "oh, good." - Tom Yates

Re: Determine how much data has been transferred..
#15835
Author: Matthew White
Date: Thu, 13 Mar 1997 00:00
69 lines
2527 bytes
dillon@flea.best.net (Matt Dillon) wrote:

>:In article <33276187.56FB@india.hp.com>,
>:Padisetti Rajeswara Rao  <prrao@india.hp.com> wrote:
>:>hi all
>:>
>:>I am working using inn1.4 on HP-UX 10.x
>:>
>:>I am interested in knowing..
>:>
>:>How much data (or how many bytes) has been transferred
>:>in and out through the newsfeed.
>:>
>:>The log file does log the number of articles that have
>:>been transferred (with statistics like accepted, rejected
>:>and refused ) but does not log the amount of data that
>:>has been transferred.
>:>
>:>One way to acheive this is keep polling the freespace on
>:>hard disk. But, this does not give exact picture
>:>becuz there could be some local postings.
>:>
>:>
>:>Best Regards,
>:>
>:>-- 
>:>
>:>Raj
>
>    innd doesn't really keep track of the number of bytes. 
>
>    At the moment, a full feed runs 5 gigabytes and 300,000
>    articles a day.  A large portion of that is alt.binaries.
>    With appropriate filtering, you can cut it down to around
>    2 gigabytes a day.  You can get the full details from:
>
>    http://thereisnocabal.news.erols.com/
>
>					-Matt

Hmmm....

I'm using INN-1.5.1, so that might make a difference.

I was under the impression that it did log file size. I get this in
/var/log/news/news:

(long line broken up.)

Mar 13 10:48:28.520 + news.sprintlink.net [....]
		      ^^^^ 
		where it came from
<3390ba6b.897045297@aklobs.org.nz> (sci/physics/72240) [....]
^^^^				      ^^^^^^^^^^  
msg. ID			       where the article is
3604 overview coyote.channel1.com wizard.pn.com
^^^^ 
size 

I've written a perl script that can harvest this information, but I
don't know how portable it is.  It uses a really big regex that only
recognizes lines like the one above.  Am I correct in assmuing that
not all log files look alike?  Would anyone like to see this script?

-Matthew


Re: Determine how much data has been transferred..
#15867
Author: James Brister
Date: Thu, 13 Mar 1997 00:00
24 lines
1250 bytes
Padisetti Rajeswara Rao <prrao@india.hp.com> writes:

> How much data (or how many bytes) has been transferred
> in and out through the newsfeed.

To get the incoming amounts look at the config file variable

	LOG_SIZE

which is set to DO by default. It gives you this in the log entry:

Mar 13 18:35:58.240 + 0.0.0.0 <ahbou=5g464t$c1k@ds2.acs.ucalgary.ca> 1658
                                                                     ^^^^
(byte count).

	awk '$4 == "+"{tot+=$7}END{print tot}' /var/log/news/news

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium      http://www.isc.org     inn@isc.org 

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads