Article View: news.software.nntp
Article #49066Re: Generating Weekly/Monthly INN reports
From: bill davidsen
Date: Wed, 15 Nov 2000 00:13
Date: Wed, 15 Nov 2000 00:13
36 lines
2808 bytes
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!
Technical Details
Message-ID:
<8uskf0$a8so$1@newssvr06-en0.news.prodigy.com>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!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!europa.netcrusader.net!208.184.7.66!newsfeed.skycache.com!Cidera!cpk-news-hub1.bbnplanet.com!news.gtei.net!newscon04.news.prodigy.com!prodigy.com!newsmst01!postmaster.news.prodigy.com!darkstar.prodigy.com!davidsenReferences:
<8u6pj4$bsi$1@susscsc1.reading.ac.uk> <meowbot-AutoPost-67893-59346-100000@netscum.dQ>Show Full Headers
Complete Article Headers
Message-ID: <8uskf0$a8so$1@newssvr06-en0.news.prodigy.com> Subject: Re: Generating Weekly/Monthly INN reports Date: Wed, 15 Nov 2000 00:13:20 +0000 From: davidsen@tmr.com (bill davidsen) References: <8u6pj4$bsi$1@susscsc1.reading.ac.uk> <meowbot-AutoPost-67893-59346-100000@netscum.dQ> 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!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!europa.netcrusader.net!208.184.7.66!newsfeed.skycache.com!Cidera!cpk-news-hub1.bbnplanet.com!news.gtei.net!newscon04.news.prodigy.com!prodigy.com!newsmst01!postmaster.news.prodigy.com!darkstar.prodigy.com!davidsen Newsgroups: news.software.nntp Organization: TMR Associates, Schenectady NY Lines: 35 NNTP-Posting-Host: darkstar.prodigy.com X-Trace: newssvr06-en0.news.prodigy.com 974247200 336792 192.168.190.236 (15 Nov 2000 00:13:20 GMT) X-Complaints-To: abuse@prodigy.net NNTP-Posting-Date: 15 Nov 2000 00:13:20 GMT Originator: davidsen@darkstar.prodigy.com