Thread View: news.software.nntp
4 messages
4 total messages
Started by User1001
Wed, 26 Jan 2005 10:00
Updating INNREPORT for persistent servers and more accurate Incoming counts
Author: User1001
Date: Wed, 26 Jan 2005 10:00
Date: Wed, 26 Jan 2005 10:00
309 lines
15093 bytes
15093 bytes
Having two particular newsfeeds where one uses a persistent network
connection for an entire day, or longer, and the other which uses much
shorter "transaction group periods" (ie; multiple CONNECTED entries in
NEWS.NOTICE) I have found that INNREPORT-3.0.2 misses some incoming
article counts and completely misses "persistent connection" newsfeeds.
The following two patches to INNREPORT and INNREPORT_INN.PM correct the
above and as a side affect - expands the servers listed in the Incoming
reporting sections to list all "<server>:<channel>" pairs instead of just
"<server>".
I have verified the corrected Incoming Feeds article count differences,
but there is an apparent one-article-off change in INNXMIT that I would
think would NOT be affected by the Incoming changes, but am still trying
to track that down.
I have not yet verified the Incoming Volume amounts and will do that next.
I was more concerned about the Incoming Feeds reporting as I was not
getting ANYthing for our one "persistent connection" feed, and the
reported counts did not match what I found in the respective NEWS.NOTICE
file.
The Elapsed times may appear to be "skewed" but are really affected by
the persistent connection feeds. I have given some thought to trying to
keep the first time and subtract subsequent times to come up with more
"local" time differences that reflect the "current day", but have not
completed that yet, so the Elapsed times may be larger than initially
expected.
At any rate, for those that are interested, please back up your
original/current INNREPORT and INNREPORT_INN.PM and try these patches.
The modified Incoming sections should look something like:
Incoming Feeds (INN):
Server Connects Offered Taken Refused Reject %Accpt Elapsed
<persistent#1>:21 0 685002 110024 1335 573643 16% 113:32:16
<persistent#1>:24 0 662763 105183 1307 556273 15% 113:29:56
<multiple #1>:10 22 78996 21512 48474 9010 27% 24:15:09
<multiple #1>:26 1 174 25 74 75 14% 00:10:00
localhost:20 0 0 0 0 0 0% 00:00:00
TOTAL: 5 23 79170 236744 51190 1139001 16% 251:27:21
Incoming Volume (INN):
Server AcceptVol DupVol TotalVol %Acc Vol/Art Elapsed
<persistent#1>:21 260.5 MB 0.0 KB 260.5 MB 100% 0.4 KB 113:32:16
<persistent#1>:24 246.6 MB 0.0 KB 246.6 MB 100% 0.4 KB 113:29:56
<multiple #1>:10 59.7 MB 0.0 KB 59.7 MB 100% 2.0 KB 24:15:09
<multiple #1>:26 65.7 KB 0.0 KB 65.7 KB 100% 0.7 KB 00:10:00
localhost:20 0.0 KB 0.0 KB 0.0 KB 0% 0 00:00:00
TOTAL: 5 566.9 MB 0.0 KB 566.9 MB 100% 0.4 KB 251:27:21
=======================================================
= = = = = = = = = = = INNREPORT patch = = = = = = = = =
=======================================================
*** innreport.orig Wed Jan 26 02:20:51 2005
--- innreport Wed Jan 26 03:05:27 2005
***************
*** 10,15 ****
--- 10,17 ----
#
# Copyright (c) 1996-1999, Fabien Tassin (fta@sofaraway.org).
#
+ # version: 3.0.3 - Jim Dutton - 24 January 2005
+ # add "eof()" to Collect subroutine call
##########################################################################
#
# Usage: innreport -f config_file [-[no]options] logfile [logfile2 [...]]
***************
*** 433,440 ****
# The "heart" of the tool.
{
no strict;
! next LINE if
! &{$CLASS."::collect"} ($day, $hour, $prog, $res, $left, $CASE_SENSITIVE);
}
$unrecognize[$unrecognize_max] = $_
--- 435,442 ----
# The "heart" of the tool.
{
no strict;
! next LINE if
! &{$CLASS."::collect"} ($day, $hour, $prog, $res, $left, $CASE_SENSITIVE, eof());
}
$unrecognize[$unrecognize_max] = $_
==========================================================
= = = = = = = = = = = INNREPORT_INN.PM patch = = = = = = =
==========================================================
*** innreport_inn.pm.ORIG Wed Jan 26 03:11:44 2005
--- innreport_inn.pm Wed Jan 26 03:07:48 2005
***************
*** 5,10 ****
--- 5,33 ----
#
# (c) 1997-1999 by Fabien Tassin <fta@sofaraway.org>
# version 3.0.2
+ #
+ # version 3.0.3 - Jim Dutton - 24 January 2005
+ #
+ # The methods may not be elegant, but they do appear to work. One
+ # minor change to INNREPORT is required to pass an EOF flag in the
+ # COLLECT subroutine call.
+ #
+ # Change article stats from <server> entries to <server>:<channel>
+ # entries to present finer grained reporting on all server connections,
+ # AND to report on persistent/longterm connections which may not ever
+ # close during a given reporting period, which effectively hides any
+ # such server from the "Incoming Feeds" report blocks. This ONLY affects
+ # the "Incoming Feeds" sections, but may still make some Admins
+ # uncomfortable due to the change in formatting - but it IS more accurate.
+ #
+ # Also, change "counting method" to more accurately reflect article
+ # counts by ensuring that server transmissions after a CLOSED state
+ # have their numbers added to the previous CLOSED state, which was
+ # not happening in the previous version of INNREPORT (eg; it was
+ # keying off on "closed seconds" ONLY, and thereby missing "checkpoint
+ # seconds" counts afterwards, that were a part of the same reporting
+ # period). Additionally, counts after EOF on the input NOTICE file
+ # are properly added to the previous totals.
##########################################################
# TODO: add the map file.
***************
*** 94,102 ****
}
$nnrpd_time_times = 0; # ...
# collect: Used to collect the data.
sub collect {
! my ($day, $hour, $prog, $res, $left, $CASE_SENSITIVE) = @_;
return 1 if $left =~ /Reading config from (\S+)$/o;
--- 117,167 ----
}
$nnrpd_time_times = 0; # ...
+ #
+ # version 3.0.3 inclusions
+ #
+ my %notice_state; my %notice_state_ever_closed="NO";
+ my %checkpoint_accepted_counts; my %checkpoint_refused_counts; my %checkpoint_rejected_counts;
+ my %checkpoint_seconds_counts; my %checkpoint_stored_size_counts; my %checkpoint_duplicated_size_counts;
+
# collect: Used to collect the data.
sub collect {
! my ($day, $hour, $prog, $res, $left, $CASE_SENSITIVE, $EOF) = @_;
!
! #
! # Pick up last line(s) in NOTICE that may not have been added to the CHECKPOINT variables,
! # and "transfer" final counts to the INND variables for further processing
! #
! # Also, since CHECKPOINT_ACCEPTED_COUNTS contains entries for ALL server connections,
! # check to see if any CHECKPOINT_ACCEPTED_COUNTS server entries are NOT also in INND_CONNECT,
! # adding any missing (persistent server with NO "connected" records) server entries
! # to INND_CONNECT so Incoming totals will be properly computed; set connect count = 0
! #
! if ($EOF) {
! foreach $server (keys (%checkpoint_accepted_counts)) {
! if (! defined($innd_connect{$server})) {
! $innd_connect{$server} = 0;
! }
! if ($notice_state{$server} eq "checkpoint") {
! if ($notice_state_ever_closed{$server} eq "YES") {
! $innd_accepted{$server} += $checkpoint_accepted_counts{$server};
! $innd_refused{$server} += $checkpoint_refused_counts{$server};
! $innd_rejected{$server} += $checkpoint_rejected_counts{$server};
! $innd_seconds{$server} += $checkpoint_seconds_counts{$server};
! $innd_stored_size{$server} += $checkpoint_stored_size_counts{$server};
! $innd_duplicated_size{$server} += $checkpoint_duplicated_size_counts{$server}; }
! else {
! $innd_accepted{$server} = $checkpoint_accepted_counts{$server};
! $innd_refused{$server} = $checkpoint_refused_counts{$server};
! $innd_rejected{$server} = $checkpoint_rejected_counts{$server};
! $innd_seconds{$server} = $checkpoint_seconds_counts{$server};
! $innd_stored_size{$server} = $checkpoint_stored_size_counts{$server};
! $innd_duplicated_size{$server} = $checkpoint_duplicated_size_counts{$server};
! }
! }
! }
! return 1;
! }
return 1 if $left =~ /Reading config from (\S+)$/o;
***************
*** 319,346 ****
return 1;
}
# connected
! if ($left =~ /^(\S+) connected \d+/o) {
! my $server = $1;
$server = lc $server unless $CASE_SENSITIVE;
$innd_connect{$server}++;
return 1;
}
! # closed (with times)
! if ($left =~ /(\S+):\d+ closed seconds (\d+) accepted (\d+) refused (\d+) rejected (\d+) duplicate (\d+) accepted size (\d+) duplicate size (\d+)$/o) {
! my ($server, $seconds, $accepted, $refused, $rejected, $duplicate, $accptsize, $dupsize) =
! ($1, $2, $3, $4, $5, $6, $7, $8);
! $server = lc $server unless $CASE_SENSITIVE;
! $innd_seconds{$server} += $seconds;
! $innd_accepted{$server} += $accepted;
! $innd_refused{$server} += $refused;
! $innd_rejected{$server} += $rejected;
! $innd_stored_size{$server} += $accptsize;
! $innd_duplicated_size{$server} += $dupsize;
! return 1;
! } elsif ($left =~ /(\S+):\d+ closed seconds (\d+) accepted (\d+) refused (\d+) rejected (\d+)$/o) {
# closed (with times)
my ($server, $seconds, $accepted, $refused, $rejected) =
($1, $2, $3, $4, $5);
$server = lc $server unless $CASE_SENSITIVE;
$innd_seconds{$server} += $seconds;
$innd_accepted{$server} += $accepted;
--- 384,451 ----
return 1;
}
# connected
! if ($left =~ /^(\S+) connected (\d+) /o) {
! #
! # record <server>:<channel> instead of just <server> as that may miss
! # some persistent connection newsfeeds that in any given INNREPORT
! # reporting period, may not record any CONNECT entries; this change
! # also forces single INNREPORT <server> entries to multiple <server>:<channel>
! # entries which some Admin's may not like; for Admin's interested in actual
! # number of channels used and their respective utilization in the Incoming
! # reports, then this change will make that happen.
! #
!
! my $server = "$1:$2";
$server = lc $server unless $CASE_SENSITIVE;
$innd_connect{$server}++;
return 1;
}
! # closed/checkpoint (with times)
! if ($left =~ /(\S+:\d+) (\S+) seconds (\d+) accepted (\d+) refused (\d+) rejected (\d+) duplicate (\d+) accepted size (\d+) duplicate size (\d+)$/o) {
! #
! # non-persitent newsfeeds have multiple CLOSE events whereas persistent newsfeeds (normally) do not,
! # in which case their stats are not accumalative, but totals
! #
! my ($server, $status, $seconds, $accepted, $refused, $rejected, $duplicate, $accptsize, $dupsize) =
! ($1, $2, $3, $4, $5, $6, $7, $8 ,$9);
! $server = lc $server unless $CASE_SENSITIVE;
! $notice_state{$server}=$status;
!
! if ($status eq "checkpoint") {
! $checkpoint_accepted_counts{$server} = $accepted;
! $checkpoint_refused_counts{$server} = $refused;
! $checkpoint_rejected_counts{$server} = $rejected;
! $checkpoint_seconds_counts{$server} = $seconds;
! $checkpoint_stored_size_counts{$server} = $accptsize;
! $checkpoint_duplicated_size_counts{$server} = $dupsize;
! }
! elsif ($status eq "closed") {
! $checkpoint_accepted_counts{$server} = $accepted;
! $checkpoint_refused_counts{$server} = $refused;
! $checkpoint_rejected_counts{$server} = $rejected;
! $checkpoint_seconds_counts{$server} = $seconds;
! $checkpoint_stored_size_counts{$server} = $accptsize;
! $checkpoint_duplicated_size_counts{$server} = $dupsize;
!
! $notice_state_ever_closed{$server} ="YES";
!
! $innd_accepted{$server} += $accepted;
! $innd_refused{$server} += $refused;
! $innd_rejected{$server} += $rejected;
! $innd_seconds{$server} += $seconds;
! $innd_stored_size{$server} += $accptsize;
! $innd_duplicated_size{$server} += $dupsize;
! }
! else {print("--- unknown STATE: $status\n");}
! return 1;
! #
! # have never seen this exact entry so cannot determine whether it will affect the V3.0.3 changes or not
! #
! } elsif ($left =~ /(\S+:\d+) closed seconds (\d+) accepted (\d+) refused (\d+) rejected (\d+)$/o) {
# closed (with times)
my ($server, $seconds, $accepted, $refused, $rejected) =
($1, $2, $3, $4, $5);
+ printf("*** partial closed seconds line: $server\n");
$server = lc $server unless $CASE_SENSITIVE;
$innd_seconds{$server} += $seconds;
$innd_accepted{$server} += $accepted;
***************
*** 351,357 ****
# closed (without times (?))
return 1 if $left =~ m/\S+ closed$/o;
# checkpoint
! return 1 if $left =~ m/^\S+:\d+ checkpoint /o;
# if ($left =~ /(\S+):\d+ checkpoint seconds (\d+) accepted (\d+)
# refused (\d+) rejected (\d+)$/) {
# # Skipped...
--- 456,462 ----
# closed (without times (?))
return 1 if $left =~ m/\S+ closed$/o;
# checkpoint
! # return 1 if $left =~ m/^\S+:\d+ checkpoint /o;
# if ($left =~ /(\S+):\d+ checkpoint seconds (\d+) accepted (\d+)
# refused (\d+) rejected (\d+)$/) {
# # Skipped...
Re: Updating INNREPORT for persistent servers and more accurate Incoming counts
Author: User1001
Date: Thu, 27 Jan 2005 15:20
Date: Thu, 27 Jan 2005 15:20
319 lines
15723 bytes
15723 bytes
The off-by-one-article count for "Sites sending bad articles" problem has
been identified: an unnecessary "return 1" statement has been removed
and the INNREPORT_INN.PM patch has been updated in this article.
The Incoming Volume amounts have been verified with these patches.
On Wed, 26 Jan 2005 04:00:43 -0600, User1001 wrote:
> Having two particular newsfeeds where one uses a persistent network
> connection for an entire day, or longer, and the other which uses much
> shorter "transaction group periods" (ie; multiple CONNECTED entries in
> NEWS.NOTICE) I have found that INNREPORT-3.0.2 misses some incoming
> article counts and completely misses "persistent connection" newsfeeds.
>
> The following two patches to INNREPORT and INNREPORT_INN.PM correct the
> above and as a side affect - expands the servers listed in the Incoming
> reporting sections to list all "<server>:<channel>" pairs instead of just
> "<server>".
>
> I have verified the corrected Incoming Feeds article count differences,
> but there is an apparent one-article-off change in INNXMIT that I would
> think would NOT be affected by the Incoming changes, but am still trying
> to track that down.
>
> I have not yet verified the Incoming Volume amounts and will do that next.
> I was more concerned about the Incoming Feeds reporting as I was not
> getting ANYthing for our one "persistent connection" feed, and the
> reported counts did not match what I found in the respective NEWS.NOTICE
> file.
>
> The Elapsed times may appear to be "skewed" but are really affected by
> the persistent connection feeds. I have given some thought to trying to
> keep the first time and subtract subsequent times to come up with more
> "local" time differences that reflect the "current day", but have not
> completed that yet, so the Elapsed times may be larger than initially
> expected.
>
> At any rate, for those that are interested, please back up your
> original/current INNREPORT and INNREPORT_INN.PM and try these patches.
>
>
>
> The modified Incoming sections should look something like:
>
> Incoming Feeds (INN):
> Server Connects Offered Taken Refused Reject %Accpt Elapsed
> <persistent#1>:21 0 685002 110024 1335 573643 16% 113:32:16
> <persistent#1>:24 0 662763 105183 1307 556273 15% 113:29:56
> <multiple #1>:10 22 78996 21512 48474 9010 27% 24:15:09
> <multiple #1>:26 1 174 25 74 75 14% 00:10:00
> localhost:20 0 0 0 0 0 0% 00:00:00
>
> TOTAL: 5 23 79170 236744 51190 1139001 16% 251:27:21
>
> Incoming Volume (INN):
> Server AcceptVol DupVol TotalVol %Acc Vol/Art Elapsed
> <persistent#1>:21 260.5 MB 0.0 KB 260.5 MB 100% 0.4 KB 113:32:16
> <persistent#1>:24 246.6 MB 0.0 KB 246.6 MB 100% 0.4 KB 113:29:56
> <multiple #1>:10 59.7 MB 0.0 KB 59.7 MB 100% 2.0 KB 24:15:09
> <multiple #1>:26 65.7 KB 0.0 KB 65.7 KB 100% 0.7 KB 00:10:00
> localhost:20 0.0 KB 0.0 KB 0.0 KB 0% 0 00:00:00
>
> TOTAL: 5 566.9 MB 0.0 KB 566.9 MB 100% 0.4 KB 251:27:21
>
>
> =======================================================
> = = = = = = = = = = = INNREPORT patch = = = = = = = = =
> =======================================================
> *** innreport.orig Wed Jan 26 02:20:51 2005
> --- innreport Wed Jan 26 03:05:27 2005
> ***************
> *** 10,15 ****
> --- 10,17 ----
> #
> # Copyright (c) 1996-1999, Fabien Tassin (fta@sofaraway.org).
> #
> + # version: 3.0.3 - Jim Dutton - 24 January 2005
> + # add "eof()" to Collect subroutine call
> ##########################################################################
> #
> # Usage: innreport -f config_file [-[no]options] logfile [logfile2 [...]]
> ***************
> *** 433,440 ****
> # The "heart" of the tool.
> {
> no strict;
> ! next LINE if
> ! &{$CLASS."::collect"} ($day, $hour, $prog, $res, $left, $CASE_SENSITIVE);
> }
>
> $unrecognize[$unrecognize_max] = $_
> --- 435,442 ----
> # The "heart" of the tool.
> {
> no strict;
> ! next LINE if
> ! &{$CLASS."::collect"} ($day, $hour, $prog, $res, $left, $CASE_SENSITIVE, eof());
> }
>
> $unrecognize[$unrecognize_max] = $_
> ==========================================================
> = = = = = = = = = = = INNREPORT_INN.PM patch = = = = = = =
> ==========================================================
*** innreport_inn.pm.orig Wed Jan 7 16:47:19 2004
--- innreport_inn.pm Wed Jan 26 14:39:15 2005
***************
*** 5,10 ****
--- 5,33 ----
#
# (c) 1997-1999 by Fabien Tassin <fta@sofaraway.org>
# version 3.0.2
+ #
+ # version 3.0.3 - Jim Dutton - 24 January 2005
+ #
+ # The methods may not be elegant, but they do appear to work. One
+ # minor change to INNREPORT is required to pass an EOF flag in the
+ # COLLECT subroutine call.
+ #
+ # Change article stats from <server> entries to <server>:<channel>
+ # entries to present finer grained reporting on all server connections,
+ # AND to report on persistent/longterm connections which may not ever
+ # close during a given reporting period, which effectively hides any
+ # such server from the "Incoming Feeds" report blocks. This ONLY affects
+ # the "Incoming Feeds" sections, but may still make some Admins
+ # uncomfortable due to the change in formatting - but it IS more accurate.
+ #
+ # Also, change "counting method" to more accurately reflect article
+ # counts by ensuring that server transmissions after a CLOSED state
+ # have their numbers added to the previous CLOSED state, which was
+ # not happening in the previous version of INNREPORT (eg; it was
+ # keying off on "closed seconds" ONLY, and thereby missing "checkpoint
+ # seconds" counts afterwards, that were a part of the same reporting
+ # period). Additionally, counts after EOF on the input NOTICE file
+ # are properly added to the previous totals.
##########################################################
# TODO: add the map file.
***************
*** 94,103 ****
}
$nnrpd_time_times = 0; # ...
# collect: Used to collect the data.
sub collect {
! my ($day, $hour, $prog, $res, $left, $CASE_SENSITIVE) = @_;
return 1 if $left =~ /Reading config from (\S+)$/o;
########
--- 117,167 ----
}
$nnrpd_time_times = 0; # ...
+ #
+ # version 3.0.3 inclusions
+ #
+ my %notice_state; my %notice_state_ever_closed="NO";
+ my %checkpoint_accepted_counts; my %checkpoint_refused_counts; my %checkpoint_rejected_counts;
+ my %checkpoint_seconds_counts; my %checkpoint_stored_size_counts; my %checkpoint_duplicated_size_counts;
+
# collect: Used to collect the data.
sub collect {
! my ($day, $hour, $prog, $res, $left, $CASE_SENSITIVE, $EOF) = @_;
+ #
+ # Pick up last line(s) in NOTICE that may not have been added to the CHECKPOINT variables,
+ # and "transfer" final counts to the INND variables for further processing
+ #
+ # Also, since CHECKPOINT_ACCEPTED_COUNTS contains entries for ALL server connections,
+ # check to see if any CHECKPOINT_ACCEPTED_COUNTS server entries are NOT also in INND_CONNECT,
+ # adding any missing (persistent server with NO "connected" records) server entries
+ # to INND_CONNECT so Incoming totals will be properly computed; set connect count = 0
+ #
+ if ($EOF) {
+ foreach $server (keys (%checkpoint_accepted_counts)) {
+ if (! defined($innd_connect{$server})) {
+ $innd_connect{$server} = 0;
+ }
+ if ($notice_state{$server} eq "checkpoint") {
+ if ($notice_state_ever_closed{$server} eq "YES") {
+ $innd_accepted{$server} += $checkpoint_accepted_counts{$server};
+ $innd_refused{$server} += $checkpoint_refused_counts{$server};
+ $innd_rejected{$server} += $checkpoint_rejected_counts{$server};
+ $innd_seconds{$server} += $checkpoint_seconds_counts{$server};
+ $innd_stored_size{$server} += $checkpoint_stored_size_counts{$server};
+ $innd_duplicated_size{$server} += $checkpoint_duplicated_size_counts{$server}; }
+ else {
+ $innd_accepted{$server} = $checkpoint_accepted_counts{$server};
+ $innd_refused{$server} = $checkpoint_refused_counts{$server};
+ $innd_rejected{$server} = $checkpoint_rejected_counts{$server};
+ $innd_seconds{$server} = $checkpoint_seconds_counts{$server};
+ $innd_stored_size{$server} = $checkpoint_stored_size_counts{$server};
+ $innd_duplicated_size{$server} = $checkpoint_duplicated_size_counts{$server};
+ }
+ }
+ }
+ }
+
return 1 if $left =~ /Reading config from (\S+)$/o;
########
***************
*** 319,346 ****
return 1;
}
# connected
! if ($left =~ /^(\S+) connected \d+/o) {
! my $server = $1;
$server = lc $server unless $CASE_SENSITIVE;
$innd_connect{$server}++;
return 1;
}
! # closed (with times)
! if ($left =~ /(\S+):\d+ closed seconds (\d+) accepted (\d+) refused (\d+) rejected (\d+) duplicate (\d+) accepted size (\d+) duplicate size (\d+)$/o) {
! my ($server, $seconds, $accepted, $refused, $rejected, $duplicate, $accptsize, $dupsize) =
! ($1, $2, $3, $4, $5, $6, $7, $8);
! $server = lc $server unless $CASE_SENSITIVE;
! $innd_seconds{$server} += $seconds;
! $innd_accepted{$server} += $accepted;
! $innd_refused{$server} += $refused;
! $innd_rejected{$server} += $rejected;
! $innd_stored_size{$server} += $accptsize;
! $innd_duplicated_size{$server} += $dupsize;
return 1;
! } elsif ($left =~ /(\S+):\d+ closed seconds (\d+) accepted (\d+) refused (\d+) rejected (\d+)$/o) {
# closed (with times)
my ($server, $seconds, $accepted, $refused, $rejected) =
($1, $2, $3, $4, $5);
$server = lc $server unless $CASE_SENSITIVE;
$innd_seconds{$server} += $seconds;
$innd_accepted{$server} += $accepted;
--- 383,450 ----
return 1;
}
# connected
! if ($left =~ /^(\S+) connected (\d+) /o) {
! #
! # record <server>:<channel> instead of just <server> as that may miss
! # some persistent connection newsfeeds that in any given INNREPORT
! # reporting period, may not record any CONNECT entries; this change
! # also forces single INNREPORT <server> entries to multiple <server>:<channel>
! # entries which some Admin's may not like; for Admin's interested in actual
! # number of channels used and their respective utilization in the Incoming
! # reports, then this change will make that happen.
! #
!
! my $server = "$1:$2";
$server = lc $server unless $CASE_SENSITIVE;
$innd_connect{$server}++;
return 1;
}
! # closed/checkpoint (with times)
! if ($left =~ /(\S+:\d+) (\S+) seconds (\d+) accepted (\d+) refused (\d+) rejected (\d+) duplicate (\d+) accepted size (\d+) duplicate size (\d+)$/o) {
! #
! # non-persitent newsfeeds have multiple CLOSE events whereas persistent newsfeeds (normally) do not,
! # in which case their stats are not accumalative, but totals
! #
! my ($server, $status, $seconds, $accepted, $refused, $rejected, $duplicate, $accptsize, $dupsize) =
! ($1, $2, $3, $4, $5, $6, $7, $8 ,$9);
! $server = lc $server unless $CASE_SENSITIVE;
! $notice_state{$server}=$status;
!
! if ($status eq "checkpoint") {
! $checkpoint_accepted_counts{$server} = $accepted;
! $checkpoint_refused_counts{$server} = $refused;
! $checkpoint_rejected_counts{$server} = $rejected;
! $checkpoint_seconds_counts{$server} = $seconds;
! $checkpoint_stored_size_counts{$server} = $accptsize;
! $checkpoint_duplicated_size_counts{$server} = $dupsize;
! }
! elsif ($status eq "closed") {
! $checkpoint_accepted_counts{$server} = $accepted;
! $checkpoint_refused_counts{$server} = $refused;
! $checkpoint_rejected_counts{$server} = $rejected;
! $checkpoint_seconds_counts{$server} = $seconds;
! $checkpoint_stored_size_counts{$server} = $accptsize;
! $checkpoint_duplicated_size_counts{$server} = $dupsize;
!
! $notice_state_ever_closed{$server} ="YES";
!
! $innd_accepted{$server} += $accepted;
! $innd_refused{$server} += $refused;
! $innd_rejected{$server} += $rejected;
! $innd_seconds{$server} += $seconds;
! $innd_stored_size{$server} += $accptsize;
! $innd_duplicated_size{$server} += $dupsize;
! }
! else {print("--- unknown STATE: $status\n");}
return 1;
! #
! # have never seen this exact entry so cannot determine whether it will affect the V3.0.3 changes or not
! #
! } elsif ($left =~ /(\S+:\d+) closed seconds (\d+) accepted (\d+) refused (\d+) rejected (\d+)$/o) {
# closed (with times)
my ($server, $seconds, $accepted, $refused, $rejected) =
($1, $2, $3, $4, $5);
+ printf("*** partial closed seconds line: $server\n");
$server = lc $server unless $CASE_SENSITIVE;
$innd_seconds{$server} += $seconds;
$innd_accepted{$server} += $accepted;
***************
*** 351,357 ****
# closed (without times (?))
return 1 if $left =~ m/\S+ closed$/o;
# checkpoint
! return 1 if $left =~ m/^\S+:\d+ checkpoint /o;
# if ($left =~ /(\S+):\d+ checkpoint seconds (\d+) accepted (\d+)
# refused (\d+) rejected (\d+)$/) {
# # Skipped...
--- 455,461 ----
# closed (without times (?))
return 1 if $left =~ m/\S+ closed$/o;
# checkpoint
! # return 1 if $left =~ m/^\S+:\d+ checkpoint /o;
# if ($left =~ /(\S+):\d+ checkpoint seconds (\d+) accepted (\d+)
# refused (\d+) rejected (\d+)$/) {
# # Skipped...
Re: Updating INNREPORT for persistent servers and more accurate Incoming counts
Author: Jeffrey M. Vinocur
Date: Mon, 31 Jan 2005 03:23
Date: Mon, 31 Jan 2005 03:23
16 lines
1546 bytes
1546 bytes
In article <pan.2005.01.27.15.20.47.42605@globaleyes.net>, User1001 <supraexpress@globaleyes.net> wrote: > > [...] I haven't taken a good look at your patch, but at first glance it looks like your newsreader wrapped some long lines, which is going to make it a pain to apply. Can you do anything about that? Actually, you might send it instead to inn-patches@isc.org. -- Jeffrey M. Vinocur jeff@litech.org
Re: Updating INNREPORT for persistent servers and more accurate Incoming counts
Author: User1001
Date: Tue, 01 Feb 2005 12:05
Date: Tue, 01 Feb 2005 12:05
17 lines
1707 bytes
1707 bytes
Gzipped patch files have been sent to inn-patches under "separate cover" (e-mail). On Mon, 31 Jan 2005 03:23:18 +0000, Jeffrey M. Vinocur wrote: > In article <pan.2005.01.27.15.20.47.42605@globaleyes.net>, > User1001 <supraexpress@globaleyes.net> wrote: >> >> [...] > > I haven't taken a good look at your patch, but at first glance it > looks like your newsreader wrapped some long lines, which is > going to make it a pain to apply. Can you do anything about > that? > > Actually, you might send it instead to inn-patches@isc.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