Article View: news.software.nntp
Article #15833Re: Determine how much data has been transferred..
From: Robert Stone
Date: Thu, 13 Mar 1997 00:00
Date: Thu, 13 Mar 1997 00:00
46 lines
2466 bytes
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
Technical Details
Message-ID:
<5g9ok7$nfn$1@DarkStar.trap.sj.ca.us>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<33276187.56FB@india.hp.com>Show Full Headers
Complete Article Headers
Message-ID: <5g9ok7$nfn$1@DarkStar.trap.sj.ca.us> Subject: Re: Determine how much data has been transferred.. Date: Thu, 13 Mar 1997 00:00:00 +0000 From: talby@darkstar.trap.sj.ca.us (Robert Stone) References: <33276187.56FB@india.hp.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 225678033 Distribution: inet X-Server-Date: 15 Mar 1997 08:20:12 GMT Organization: DarkStar Newsgroups: news.software.nntp