🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #58678

Re: INN-2.3.1+CNFS: Way to get diskusage by groups?

#58678
From: jpk
Date: Fri, 03 May 2002 17:47
73 lines
3320 bytes
I use this script.  I run it in cron every night.  When I see a group that's
taking up a lot of space and which is of no interest to my customers, I
remove that group.

-Jim

#!/usr/bin/sh
#
# ovdb_count    Look through the overview database to get a list of
#               all newsgroups with postings, number of postings, and
#               megabytes used.
# Kunze 10/01

TMPFILE=/tmp/$$_ovdb_count
SORTFILE=/tmp/ovdb_count.lst
SIZFILE=/tmp/ovdb_count.size
OLDPWD=`pwd`
OVDB=/usr/local/news/spool/overview

cd $OVDB
find . -name '*.DAT' \
  -exec awk -F" " '{ KBTOT += $7/1024
    LC += 1}
    END {
      MBTOT=KBTOT/1024
      fname=a[split(FILENAME,a,"/")]
      name=substr(fname,1,length(fname)-4)
      printf "%-51s%6d%12.1f\n", name,LC,MBTOT}' \
  {} \; > $TMPFILE

cd $OLDPWD
sort $TMPFILE > $SORTFILE
sort -r -k 3,3 $SORTFILE > $SIZFILE

printf "Top space usage\n\n" > $TMPFILE
printf "%-51s%6s%14s\n" newsgroup posts megabytes >> $TMPFILE
head -10 $SIZFILE >> $TMPFILE
echo "\nNon-alt top space users:\n" >> $TMPFILE
grep -v "^alt." $SIZFILE |head -10 >> $TMPFILE
mailx -s "newsgroup space usage" YOURNAME@EMAIL.ADDRESS < $TMPFILE

###rm $TMPFILE
"Hor" <tn@fhm.edu> wrote in message news:3CCE6162.B68A12A9@fhm.edu...
> Hi,
>
> I am the news admin of news.netplace.de - we are receiving a lot of
> articles daily (full feed with no binary groups). Lately our incoming
> feed exploded size-wise (about 4 times as much MBs as before). I guess
> someone is sending us a lot of big articles (binaries) to a group we
> havn't blocked.
>
> I am looking for a way to find out which group is the problem, so that I
> can
> remove it from our incoming feeds.
> Is there a way to get a list of groups with diskusage and article count
> from INN-2.3.1 in CNFS mode?
>
> I know my total diskusage, but I dont know which groups are the "bad"
> ones.
>
> Any ideas?
>
> Thanks,
>
> Thomas
> --
> Thomas Niederreiter                      Tel: +49 89 551805-11
> netplace Telematic GmbH                  Fax: +49 89 551805-24
> Marsstrasse 26                           Email: tn@netplace.de
> D-80335 Muenchen                         http://www.netplace.de


Technical Details
Message-ID: <aauie8$9mh$1@news.tamerica.net>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!nntp5.savvis.net!uunet!dfw.uu.net!ash.uu.net!news.tamerica.net!not-for-mail
References: <3CCE6162.B68A12A9@fhm.edu>

Show Full Headers
Complete Article Headers
Message-ID: <aauie8$9mh$1@news.tamerica.net>
Subject: Re: INN-2.3.1+CNFS: Way to get diskusage by groups?
Date: Fri, 3 May 2002 11:47:16 -0600
From: "jpk" <nxk83jia9@yahoo.com>
References: <3CCE6162.B68A12A9@fhm.edu>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!nntp5.savvis.net!uunet!dfw.uu.net!ash.uu.net!news.tamerica.net!not-for-mail
Newsgroups: news.software.nntp
Organization: TouchAmerica
Lines: 72
NNTP-Posting-Host: 216.166.147.129
X-Trace: news.tamerica.net 1020448008 9937 216.166.147.129 (3 May 2002 17:46:48 GMT)
X-Complaints-To: usenet@tamerica.net
NNTP-Posting-Date: Fri, 3 May 2002 17:46:48 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400