Thread View: news.software.nntp
4 messages
4 total messages
Started by Don Lewis
Mon, 07 Apr 1997 00:00
innlog.pl incorrectly parses some innfeed log entries
Author: Don Lewis
Date: Mon, 07 Apr 1997 00:00
Date: Mon, 07 Apr 1997 00:00
57 lines
2351 bytes
2351 bytes
innfeed has two different peer checkpoint/final log formats. When
it is running normally, it logs:
peername final seconds 3585 offered 5991 accepted 5952 refused 2 rejected 22
When the peer is unable to accept any articles because it is throttled or
dead, innfeed changes the log entry to:
peername final seconds 369 spooled 666
innlog.pl does not distinguish between these two formats (it just looks for
"checkpoint" or "final"), and adds the number of spooled articles to the
offered article count.
*** innlog.pl- Mon Apr 7 15:09:12 1997
--- innlog.pl Mon Apr 7 15:10:59 1997
***************
*** 638,644 ****
$innfeed_connect{$host}++;
next;
}
! if ($Fld[7] eq "checkpoint") {
next if $colon;
$cp_innfeed_seconds{$host} = $Fld[9];
$cp_innfeed_offered{$host} = $Fld[11];
--- 638,644 ----
$innfeed_connect{$host}++;
next;
}
! if ($Fld[7] eq "checkpoint" && $Fld[10] eq "offered") {
next if $colon;
$cp_innfeed_seconds{$host} = $Fld[9];
$cp_innfeed_offered{$host} = $Fld[11];
***************
*** 658,664 ****
$innfeed_misc{"write_pending"}++;
next;
}
! if ($Fld[7] eq "final") {
next if $colon;
$innfeed_seconds{$host} += $Fld[9];
$innfeed_offered{$host} += $Fld[11];
--- 658,664 ----
$innfeed_misc{"write_pending"}++;
next;
}
! if ($Fld[7] eq "final" && $Fld[10] eq "offered") {
next if $colon;
$innfeed_seconds{$host} += $Fld[9];
$innfeed_offered{$host} += $Fld[11];
--
Don "Truck" Lewis TDK Semiconductor
Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road
Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
"spooled" stats [Re: innlog.pl incorrectly parses some innfeed log entries]
Author: Fabien TASSIN
Date: Tue, 08 Apr 1997 00:00
Date: Tue, 08 Apr 1997 00:00
33 lines
1713 bytes
1713 bytes
Don Lewis wrote: > > innfeed has two different peer checkpoint/final log formats. When > it is running normally, it logs: > > peername final seconds 3585 offered 5991 accepted 5952 refused 2 rejected 22 > > When the peer is unable to accept any articles because it is throttled or > dead, innfeed changes the log entry to: > > peername final seconds 369 spooled 666 > > innlog.pl does not distinguish between these two formats (it just looks for > "checkpoint" or "final"), and adds the number of spooled articles to the > offered article count. innreport do not have this problem because the two lines are processed differently. I just wonder if it is interesting to display the "spooled" value as is. It represents the number of articles spooled during the day (or between now and the last log rotation) but not the number of articles actually waiting. What should be the better number to display ? the latest one or the total for the period ? -- Fabien TASSIN mailto:tassin@eerie.fr E.E.R.I.E. Nimes FRANCE http://www.eerie.fr/~news/
Re: innlog.pl incorrectly parses some innfeed log entries
Author: Don Lewis
Date: Wed, 09 Apr 1997 00:00
Date: Wed, 09 Apr 1997 00:00
45 lines
2010 bytes
2010 bytes
In article <5ibrge$o53$1@news.gv.tsc.tdk.com>,
Don Lewis <gdonl@tsc.tdk.com> wrote:
>innfeed has two different peer checkpoint/final log formats. When
>it is running normally, it logs:
[ deleted ]
>innlog.pl does not distinguish between these two formats (it just looks for
>"checkpoint" or "final"), and adds the number of spooled articles to the
>offered article count.
[ patch deleted ]
Oh bother. That'll teach me to post a patch before testing it. Here's
a patch that actually works correctly:
*** innlog.pl- Tue Apr 8 15:54:48 1997
--- innlog.pl Tue Apr 8 15:54:48 1997
***************
*** 640,645 ****
--- 640,646 ----
}
if ($Fld[7] eq "checkpoint") {
next if $colon;
+ next if $Fld[10] ne "offered";
$cp_innfeed_seconds{$host} = $Fld[9];
$cp_innfeed_offered{$host} = $Fld[11];
$cp_innfeed_accepted{$host} = $Fld[13];
***************
*** 660,665 ****
--- 661,667 ----
}
if ($Fld[7] eq "final") {
next if $colon;
+ next if $Fld[10] ne "offered";
$innfeed_seconds{$host} += $Fld[9];
$innfeed_offered{$host} += $Fld[11];
$innfeed_accepted{$host} += $Fld[13];
--
Don "Truck" Lewis TDK Semiconductor
Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road
Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
Re: "spooled" stats [Re: innlog.pl incorrectly parses some innfeed log entries]
Author: Don Lewis
Date: Wed, 09 Apr 1997 00:00
Date: Wed, 09 Apr 1997 00:00
20 lines
1478 bytes
1478 bytes
In article <33497B3D.4786@eerie.fr>, Fabien TASSIN <tassin@eerie.fr> wrote: >I just wonder if it is interesting to display the "spooled" value as is. >It represents the number of articles spooled during the day (or between >now and the last log rotation) but not the number of articles actually >waiting. > >What should be the better number to display ? the latest one or >the total for the period ? I'd vote for the total for the period. BTW, I've got some patches to innfeed that add logging of the number of articles "unspooled". I'm hopeful that these will be included in the next release. -- Don "Truck" Lewis TDK Semiconductor Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
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