Article View: news.software.nntp
Article #16753innlog.pl incorrectly parses some innfeed log entries
From: 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
Technical Details
Message-ID:
<5ibrge$o53$1@news.gv.tsc.tdk.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!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <5ibrge$o53$1@news.gv.tsc.tdk.com> Subject: innlog.pl incorrectly parses some innfeed log entries Date: Mon, 07 Apr 1997 00:00:00 +0000 From: gdonl@tsc.tdk.com (Don Lewis) 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!not-for-mail X-Deja-AN: 231386132 Organization: TDK Semiconductor, Nevada City CA Newsgroups: news.software.nntp