🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #56405

Re: [INN] adept innreport to logfile changes?

#56405
From: Jeffrey M. Vinocur
Date: Sat, 09 Feb 2002 22:22
37 lines
2279 bytes
In article <slrna64uda.1r44.bschmidt@bschmidt.msgid.cybernet-ag.net>,
Bernhard Schmidt  <bschmidt@cybernet-ag.net> wrote:
>
>I've applied a small private patch to include the IPs of reader
>connects everytime in order to separate between IPv4 and IPv6
>connects. Therefor a line in the logfile looks like this
>
>Feb  7 13:42:33 koroth nnrpd[77594]: xxx.xxx.de connect [195.143.x.x]

>But now innreport does not create nnrpd statistics anymore. I tried to
>change innreport but this script is far beyond my knowledge of perl.

Ok, there are two things I can suggest to you (because we are
working on IPv6 for INN and have done nearly the same thing).
The first is that if you put the IP before the word "connect",
like this:

Feb  9 17:17:37 marduk nnrpd[8136]: marduk.litech.org (128.84.154.54) connect
Feb  9 17:17:57 marduk nnrpd[8167]: ip6-localhost (::1) connect

innreport will (by accident, more or less) ignore it in
generating the reports.  The other is to change the relevant line
in innreport.  It currently looks something like this:

    if ($left =~ /(\S+) connect$/o)

but you could make it look like this:

    if ($left =~ /(\S+) connect \[[0-9a-fA-F:.]*\]$/o)

which I think would work.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <a447e9$6gf$3@marduk.litech.org>
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.ems.psu.edu!news.litech.org!not-for-mail
References: <slrna64uda.1r44.bschmidt@bschmidt.msgid.cybernet-ag.net>

Show Full Headers
Complete Article Headers
Message-ID: <a447e9$6gf$3@marduk.litech.org>
Subject: Re: [INN] adept innreport to logfile changes?
Date: Sat, 09 Feb 2002 22:22:01 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <slrna64uda.1r44.bschmidt@bschmidt.msgid.cybernet-ag.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.ems.psu.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Lithium Technologies
Lines: 36
Sender: jeff@litech.org
NNTP-Posting-Host: marduk.litech.org
X-Trace: marduk.litech.org 1013293321 6671 128.84.154.54 (9 Feb 2002 22:22:01 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Sat, 9 Feb 2002 22:22:01 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)