[news.software.b] Looking for news stats utilities

tar@ksuvax1.cis.ksu.edu (Tim Ramsey) (02/18/89)

I'm looking for utilities to provide stats on where the news flowing
through my site is coming from and where it's going.

Here's what I'd like:

1) Something that could tell me how many Kbytes as well as how many articles
   I sent to and received from my news neighbors.

2) Who posted articles locally, the subject line of the articles, etc.

Thanks in advance for any pointers or programs.

Tim
--
Timothy Ramsey
BITNET: tar@KSUVAX1
Internet: tar@ksuvax1.cis.ksu.edu
UUCP: ...!rutgers!ksuvax1!tar

root@conexch.UUCP (Larry Dighera) (02/21/89)

In article <859@deimos.cis.ksu.edu> tar@ksuvax1.cis.ksu.edu (Tim Ramsey) writes:
>I'm looking for utilities to provide stats on where the news flowing
>through my site is coming from and where it's going.
>
>Here's what I'd like:
>
>1) Something that could tell me how many Kbytes as well as how many articles
>   I sent to and received from my news neighbors.
>
>2) Who posted articles locally, the subject line of the articles, etc.
>
>Thanks in advance for any pointers or programs.
>
>Tim
>--
>Timothy Ramsey
>BITNET: tar@KSUVAX1
>Internet: tar@ksuvax1.cis.ksu.edu
>UUCP: ...!rutgers!ksuvax1!tar

Here is a little script that I through together to give me an idea of
how well ihave/sendme was working.  Hope you find it useful.

==========================  nstat Begins  ================================
:
#	nstat: This script displays information on news articles 
#	received from two sites that feed news via ihave/sendme.
#

LOG=/usenet/usenet/lib/log
LASTDATE=`ls -l $LOG.old.Z | awk '{print $6, $7, $8}'`
SITE1=turnkey
SITE2=zardoz
export LOG SITE1 SITE2 LASTDATE

echo "\f\n\n\t\tU S E N E T    S T A T U S    I N F O R M A T I O N\n"
echo "\tFrom: $LASTDATE\t\tTo: `date`\n\n"
awk -F"	" 'BEGIN {tr = 0; td = 0; tt = 0; zr = 0; zd = 0; zt = 0}
$2 == "'$SITE1'" {if (substr($3,1,5) == "recei") tr++}
$2 == "'$SITE1'" {if (substr($3,1,3) == "Dup") td++}
$2 == "'$SITE2'" {if (substr($3,1,5) == "recei") zr++}
$2 == "'$SITE2'" {if (substr($3,1,3) == "Dup") zd++}
END {tt=tr+td; zt=zr+zd}
END {print "TURNKEY: \n\tArticles Posted: \t", tr, "\n\tDuplicates Rejected: \t", td}
END {print "Total Articles Received: \t", tt, "\nPercentage of Duplicates: \t"; if (td == 0) print "0\n"; else printf("%-3.2fl \n", td/tt*100)}
END {print "\nZARDOZ: \n\tArticles Posted: \t", zr, "\n\tDuplicates Rejected: \t", zd}
END {print "Total Articles Received: \t", zt, "\nPercentage of Duplicates: \t"; if (zd == 0) print "0\n"; else printf("%-3.2fl \n", (zd/zt)*100)}' $LOG

echo "\n\n"
==========================  nstat Ends  ================================

Larry Dighera

-- 
USPS: The Consultants' Exchange, PO Box 12100, Santa Ana, CA  92712
TELE: (714) 842-6348: BBS (N81); (714) 842-5851: Xenix guest account (E71)
UUCP: conexch Any ACU 2400 17148425851 ogin:-""-ogin:-""-ogin: nuucp
UUCP: ...!uunet!turnkey!conexch!root || ...!trwrb!ucla-an!conexch!root