Thread View: news.software.nntp
5 messages
5 total messages
Started by Todd D. Taft
Mon, 29 Apr 1996 00:00
News monitoring/statistics programs for INN
Author: Todd D. Taft
Date: Mon, 29 Apr 1996 00:00
Date: Mon, 29 Apr 1996 00:00
16 lines
1367 bytes
1367 bytes
Are there any programs that can monitor various aspects of news usage? I'm interested in factors like: which newsgroups use up the most disk space on my server, which newsgroups get the most traffic (measured in number of articles), which newsgroups are consistently read by my users, etc. I'd like to be able to use this information so that I can set reasonable expire times on my server. Before I went out and re-invented the wheel, I was wondering if anyone else has written something that can do some or all of this with inn 1.4sec on a solaris box? -- Todd D. Taft taft@cs.unc.edu WWW: http://www.cs.unc.edu/~taft/ todd_taft@unc.edu U.N.C. Department of Computer Science Facilities Staff
Re: News monitoring/statistics programs for INN
Author: Seong-ho
Date: Mon, 29 Apr 1996 00:00
Date: Mon, 29 Apr 1996 00:00
44 lines
1885 bytes
1885 bytes
On 29 Apr 1996 15:48:58 -0400, taft@cs.unc.edu (Todd D. Taft) wrote:
>Are there any programs that can monitor various aspects of news usage?
>I'm interested in factors like: which newsgroups use up the most disk
>space on my server, which newsgroups get the most traffic (measured in
>number of articles), which newsgroups are consistently read by my
>users, etc.
Hi,
Try this :
1. Add to /etc/syslog.conf and restart #syslogd
news.crit *
news.crit /dev/console
news.crit /var/log/news/news.crit
news.err /var/log/news/news.err
news.notice;news.info /var/log/news/news.notice
news.debug /var/log/news/news.debug
2. Create the news.crit, news.err, news.notice, news.debug files using
#touch command
ex) touch /var/log/news/news.debug
3. Run news.daily and read the report, and you can notice that
informations which you want to know is added the report.
Thanks...
===================================================
Seong-ho Jang (Internet Engineering Dept.)
ADDRESS: Hansol Telecom Co., Ltd.
Posco Center,892,Daechi 4 Dong,
Kangnam-Ku, Seoul, Korea, 135-777
E-mail : black@hansol.co.kr
TEL : 02-3457-5185
FAX : 02-3457-5117
Hitel : 88162013
Dacom : mblck
=================================================
Re: News monitoring/statistics programs for INN
Author: Paul Schaller
Date: Tue, 30 Apr 1996 00:00
Date: Tue, 30 Apr 1996 00:00
22 lines
1522 bytes
1522 bytes
> taft@cs.unc.edu (Todd D. Taft) writes: > Are there any programs that can monitor various aspects of news usage? > I'm interested in factors like: which newsgroups use up the most disk > space on my server, which newsgroups get the most traffic (measured in > number of articles), which newsgroups are consistently read by my > users, etc. I'd like to be able to use this information so that I can > set reasonable expire times on my server. Before I went out and > re-invented the wheel, I was wondering if anyone else has written > something that can do some or all of this with inn 1.4sec on a solaris > box? > -- > Todd D. Taft taft@cs.unc.edu > WWW: http://www.cs.unc.edu/~taft/ todd_taft@unc.edu > U.N.C. Department of Computer Science Facilities Staff > >>>> I am also looking for such a beast to report on the usage and what not. Paul
Re: News monitoring/statistics programs for INN
Author: Mike Frisch
Date: Wed, 01 May 1996 00:00
Date: Wed, 01 May 1996 00:00
19 lines
1327 bytes
1327 bytes
In article <31854255.2692643@168.126.63.6>, black@hansol.co.kr (Seong-ho) wrote:
>3. Run news.daily and read the report, and you can notice that
>informations which you want to know is added the report.
For your information, news.daily does not generate most of the
output the original poster requested. There is definitely a need for some
third party software which will do detailed statistics on INN log files.
Mike.
======================================================================
Mike Frisch Email: mfrisch@saturn.tlug.org
Northstar Technologies WWW: http://www.io.org/~mfrisch
Newmarket, Ontario, CANADA Compuserve: 76620,2534
Re: News monitoring/statistics programs for INN
Author: USENET news
Date: Mon, 06 May 1996 00:00
Date: Mon, 06 May 1996 00:00
57 lines
3198 bytes
3198 bytes
In article <4m36fa$f29@tsc.cs.unc.edu>, Todd D. Taft <taft@cs.unc.edu> wrote:
>Are there any programs that can monitor various aspects of news usage?
>I'm interested in factors like: which newsgroups use up the most disk
>space on my server, which newsgroups get the most traffic (measured in
>number of articles), which newsgroups are consistently read by my
>users, etc.
For incoming news flow, see my flowstats (perl) scripts, available from
ftp://ftp.math.psu.edu/pub/INN/contrib/flowstats-1.5.1.tar.gz. I'd also
recommend Dave Barr's INN web page (http://www.math.psu.edu/barr/INN.html),
which has a link to the flowstats kit and much, much more. Flowstats uses a
perl script running as an INN channel feed to save data which can then be
used to generate e.g. daily, weekly, monthly, annual summaries of incoming
news volume by article count and MB for each group and hierarchy.
To find which groups/hierarchies are using the space, I have a cron job
which runs du over the spool, and then summarises the groups using most
space. Extracting the relevant bit from the shell script (assumes du output
(in KB, i.e. du -k on Solaris 2) is in news.du, and that the spool directory
(used to locate the total line) is "/news2/spool". These days I'd write it
in perl, but this is ancient...
=====
total="`nawk '/\/news2\/spool$/ {print \$1}' ${1:-news.du}`"
# NB variable substitution is enabled for the in-stream script to allow
# substitution of $total... so beware un-escaped $'s elsewhere...
nawk -f - $2 $3 <<end ${1:-news.du}
BEGIN {if (minpct == 0) minpct = 0.5
print "Newsgroup directory sizes as percentage of spool use."
print
print "NB At each level, all subdirectories are included."
print
print "Total spool use = " $total " KB"
print "Groups occupying less than " minpct "% of spool omitted."
print
}
/\/news2\/spool/ {
pct = (\$1 * 100) / $total
level = (split(\$2,junk,"/")-3)*2 # indent level
if (pct >= minpct) printf("%7.1f%" level "s%s\n",pct," ",\$2)
}
end
=====
Remember that totals from different sources of information may not match for
good reasons, e.g. totals from data volumes versus totals from the spool
files (where the latter are rounded up to a multiple of the disc block or
fragment size).
John Line
--
Cambridge University Computing Service - USENET news manager. Usually John Line
newsmaster@ucs.cam.ac.uk (alias {newsmaster,news,usenet}@news.cam.ac.uk)
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