🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Nicholas Gareth John OBrien Mon, 06 Nov 2000 00:00
Generating Weekly/Monthly INN reports
#49008
Author: Nicholas Gareth John OBrien
Date: Mon, 06 Nov 2000 00:00
24 lines
1602 bytes
I'm looking to generate HTML statistics reports on INN on a weekly 
and/or monthly basis. Now I know innreport can do this on a daily 
basis - the sort of statistics it can generate are what I am looking
for. However I was looking for similar software which do this by week
and or by month.

Now my first thought is to to modify innreport to do this, but in case
I am "reinventing the wheel" I just thought I check with the group
just in case this has been done already.

I am using INN 2.2.2 in case that makes any difference.

	Rgds.,

		Nick

-- 
========================================================================
"Animal? No worse - human!", Manny - "Runaway Train"
Nick O'Brien                        Phone: +44 118 931 8432
Computer Officer                    Email: N.G.J.OBrien@reading.ac.uk
Reading University, UK              Web: http://www.rdg.ac.uk/~vis98ngo/

Re: Generating Weekly/Monthly INN reports
#49010
Author: Anonymous Coward
Date: Mon, 06 Nov 2000 23:52
33 lines
2634 bytes
On 6 Nov 2000, Nicholas Gareth John OBrien wrote:

> I'm looking to generate HTML statistics reports on INN on a weekly 
> and/or monthly basis. Now I know innreport can do this on a daily 
> basis - the sort of statistics it can generate are what I am looking
> for. However I was looking for similar software which do this by week
> and or by month.
> 
> Now my first thought is to to modify innreport to do this, but in case

Why modify innreport?  You should be able to get it to do what
you want by the way you invoke it.  (Caution: untested, do not
try this at home, seek parental guidance, it's only fun until
someone loses an eye)

scanlogs calls innreport as something like
/news/bin/innreport -f /news/etc/innreport.conf /news/log/OLD/news.old /news/log/OLD/news.notice.old
so to get further days included, all you need to do would be to
pass all the days to innreport...
innreport -f innreport.conf news.old news.notice.old news.notice.1 news.notice.2 news.notice.3 ...

OF course, by default, these old numbered files are gzipped, so you'd
have to make copies or uncompress them in advance.  Yes, it would
take a bit of time longer than a single logfile.  And this gives you
exactly the same info that you get in daily innreport summaries,
over the period of several days.

If this is a bit much, you could hack innreport to store a copy
of all the hashes it builds up each day so you could reread them
weekly/monthly rather than rescanning a week's or month's worth
of logs...

Re: Generating Weekly/Monthly INN reports
#49066
Author: bill davidsen
Date: Wed, 15 Nov 2000 00:13
36 lines
2808 bytes
In article <meowbot-AutoPost-67893-59346-100000@netscum.dQ>,
Anonymous Coward  <anonymous@Censorous.NewsBastards.Org> wrote:

| Why modify innreport?  You should be able to get it to do what
| you want by the way you invoke it.  (Caution: untested, do not
| try this at home, seek parental guidance, it's only fun until
| someone loses an eye)
| 
| scanlogs calls innreport as something like
| /news/bin/innreport -f /news/etc/innreport.conf /news/log/OLD/news.old /news/log/OLD/news.notice.old
| so to get further days included, all you need to do would be to
| pass all the days to innreport...
| innreport -f innreport.conf news.old news.notice.old news.notice.1 news.notice.2 news.notice.3 ...

  I would be amazed if this didn't work, since I've sort-of tried it by
cleverly breaking the crontab entry for news daily. Seems to work fine
if you come in on Monday and say "Gadzooks, I've screwed the pooch
again" and run daily on a bunch of days of data. Of course the output of
all the stuff reported hourly get rather ugly, or at least long.

  You might consider using a slightly hacked config file to put the HTML
(if you use it) somewhere else, and some other options might respond
well to tuning.

  Will innreport read off stdin? Yes, I should go look myself... in that
case something like:
  for n in {5,4,3,2,1};do 
    gzip -dc /usr/local/news/logs/OLD/news{,.notice}.$n.gz
  done | innreport -f innreport2.conf

might work, assuming you have a decent shell. Love them little braceies.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
Make the rules? I don't make the rules. I don't even FOLLOW the rules!
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