🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Bernhard Schmidt Thu, 07 Feb 2002 12:57
[INN] adept innreport to logfile changes?
#56338
Author: Bernhard Schmidt
Date: Thu, 07 Feb 2002 12:57
23 lines
1666 bytes
Hi,

I have a small problem with innreport from INN 2.3.2.

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]

or

Feb  7 09:54:23 koroth nntpd[24343]: xxx.xxx.de connect [2001:768:x::xx]

But now innreport does not create nnrpd statistics anymore. I tried to
change innreport but this script is far beyond my knowledge of perl.
Has anyone an idea how to fix this?

-- 
Bernhard Schmidt
Network Operation Center
Cybernet AG, Muenchen
Re: [INN] adept innreport to logfile changes?
#56405
Author: 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
Re: [INN] adept innreport to logfile changes?
#56435
Author: Bernhard Schmidt
Date: Sun, 10 Feb 2002 14:12
21 lines
1808 bytes
Jeffrey M. Vinocur wrote:

> 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).

Oh great, interested in a feed? :-)

> 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:

Thanks, I already found this. I looked for nnrpd-connect parsing in
~news/bin/innreport and ~news/etc/innreport.conf for a long time, but
forgot to have a look on ~news/lib/innreport_inn.pm. Now it works,
thanks again.

-- 
Bernhard Schmidt
Network Operation Center
Cybernet AG, Muenchen
Re: [INN] adept innreport to logfile changes?
#56436
Author: Bernhard Schmidt
Date: Sun, 10 Feb 2002 14:27
21 lines
1908 bytes
Jeffrey M. Vinocur wrote:

> 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).

Oh great, interested in a peering over IPv6? :-)

> 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:

Thanks, I already found this. I looked for nnrpd-connect parsing in
~news/bin/innreport and ~news/etc/innreport.conf for a long time, but
forgot to have a look on ~news/lib/innreport_inn.pm. Now it works,
thanks again.

-- 
Bernhard Schmidt
Network Operation Center
Cybernet AG, Muenchen
Re: [INN] adept innreport to logfile changes?
#56441
Author: Jeffrey M. Vinocur
Date: Sun, 10 Feb 2002 19:38
16 lines
1546 bytes
In article <slrna6d0pq.10ii.bschmidt@bschmidt.msgid.cybernet-ag.net>,
Bernhard Schmidt  <bschmidt@cybernet-ag.net> wrote:
>Jeffrey M. Vinocur wrote:
>
>> 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).
>
>Oh great, interested in a peering over IPv6? :-)

Sure!  Anyone interested in such can contact me via email.


-- 
Jeffrey M. Vinocur
jeff@litech.org
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