Article View: news.software.nntp
Article #35842Modifications to feeder-stats.pl
From: Brad Knowles
Date: Mon, 08 Mar 1999 00:00
Date: Mon, 08 Mar 1999 00:00
84 lines
4653 bytes
4653 bytes
Folks,
I've made some modifications to Iain's feeder-stats.pl script that is
used with Diablo & Cyclone to produce web pages with various statistics on
them, but I haven't heard anything from him in the last few e-mail
messages I've sent.
Therefore, I'd like to share with the folks on this newsgroup my
various changes, get your feedback, see if I've made any horrible
programming mistakes (which I haven't caught yet ;-), etc....
Normally, I'd just include the context diff with my post, but given
that I've also done things like stripping trailing spaces throughout the
source, the diffs are actually pretty large now (the "real" changes are
pretty small, however).
Anyway, you can find my latest context diffs at
<ftp://ftp.shub-internet.org/pub/shub/feeder-stats.pl.diff>.
In summary, the major changes I made were:
* Added a "-H <hour>" option, so that you could force it to fill
out the graphs up to a specific hour. This is useful if you should happen
to be hacking on feeder-stats.pl and you manage to break it so that at
least one day's worth of stats end up being broken and/or missing. ;-)
* Changed the current "%Acc" column to be "%Tot", because it is
really a measure of how many articles you've accepted from that site (or
transmitted to that site) as a ratio of the total number of articles in or
out.
* Added a new "%Acc" column that is a ratio of the total number of
articles accepted from/transmitted to only that one specific site (so, you
may be accepting nearly 100% of the articles offered by a particular site,
although this may be only a very small portion of the total number of
articles you accept overall).
* Added new "outbound by time" table and graph, corresponding to
the previous "inbound by time" table/graph. This required a slight
renumbering of the other sections of the report.
* Added new "outbound" graphs that correspond to the previous
"inbound" graphs. Note that outbound volume graph is kind of broken right
now, since the total volume is usually so much higher than any one
individual volume that the total is the only line that gets visibly
charted, while the rest basically just fall off the bottom of the chart.
I'm awaiting a new version of chart.pm that I hope will add the ability to
apply logarithmic scaling to the vertical axis of a chart, so that
exceptionally large values don't down out the lower values.
* Added a slight time delay after initial startup, with the intent
that the script will now be started via cron at fifty-nine minutes after
the hour, instead of on the hour. The idea being that currently we're all
losing the stats between 11:00 PM and 12:00 AM, since when the script
starts up at exactly 12:00 Midnight, it's already the next day and the
chart gets minimal data written to it for the few minutes of time that
Diablo/Cyclone will have been running since the cut-over and while
feeder-stats.pl is chugging through the log files.
You can see a sample of the kind of output provided by this new
version of feeder-stats.pl at
<http://feederbox.skynet.be/stats/index.html>.
The next thing on my plate will be to add innreport-like per host bar
graphs of the various textual charts, so that you can see at a glance just
exactly how many articles are being offered by a particular site versus
how many are being accepted, etc....
BTW, we're looking to add some more outbound feeds. If you're looking
for a newsfeed from a site in the Freenix Top 200, see
<http://feederbox.skynet.be/newsbone-part.html#plans>.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Technical Details
Message-ID:
<brad-0803991518320001@brad.techos.skynet.be>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-mailShow Full Headers
Complete Article Headers
Message-ID: <brad-0803991518320001@brad.techos.skynet.be> Subject: Modifications to feeder-stats.pl Date: Mon, 08 Mar 1999 00:00:00 +0000 From: brad@shub-internet.org (Brad Knowles) 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: 452574204 X-Complaints-To: abuse@skynet.be X-Trace: news1.skynet.be 920902738 28076 195.238.1.121 (8 Mar 1999 14:18:58 GMT) Organization: Shub-Internet X-URL: http://www.shub-internet.org/ NNTP-Posting-Date: 8 Mar 1999 14:18:58 GMT Newsgroups: news.software.nntp