Article View: news.software.nntp
Article #1311nestor patch #03 (low priority) Part 01/01
From: Edwin Kremer
Date: Mon, 08 Jul 1991 13:50
Date: Mon, 08 Jul 1991 13:50
381 lines
12460 bytes
12460 bytes
Here is a SHARred low-priority patch for the ``nestor'' program. Major
change is the looks of the report; no bugs were fixed (none found either
;-}). If you are currently using nestor 1.0PL2 please apply this patch
to upgrade to 1.0PL3. If you're unfamiliar with nestor or running a
pre-1.0PL2 version of nestor, I encourage you to read ``INTRODUCTION''
below and consider picking up a complete new release from our archive --
details in ``HOW TO GET'' below.
------------------------------------------------------------------------
*************************** INTRODUCTION *****************************
------------------------------------------------------------------------
This is ``nestor'', a program to summarize the copious logging
information from the NNTP Usenet News transport agent (for the curious:
"Nestor" is short for "NEws STatistics ORganizer"). ``nestor'' is
distributed under the terms of the GNU General Public License.
------------------------------------------------------------------------
*************************** HOW TO GET *****************************
------------------------------------------------------------------------
We, Computer Science department, Utrecht University, are running an
anonymous FTP server on one of our systems. In addition to the FTP
service we're also running a mail server, for those of you without
direct Internet access.
--> How to get 'nestor' via anonymous FTP:
Site: archive.cs.ruu.nl [131.211.80.5]
Login: "anonymous" or "ftp"
Password: your own email address (you@your_domain)
File: UNIX/nestor.tar.Z
--> How to get 'nestor' via e-mail from our mail-server:
NOTE: In the following I have assumed that your mail address is
"fred_flintstone@stone.age.edu"; of course you must substitute
your own address for this.
** PLEASE USE VALID DOMAIN ADDRESSES. DO NOT USE ADDRESSES **
** WITH ! and @ MIXED !!!! BITNETTERS USE USER@HOST.BITNET **
Send the following message to
mail-server@cs.ruu.nl
or the old-fashioned path alternative
uunet!mcsun!hp4nl!ruuinf!mail-server
begin
path fred_flintstone@stone.age.edu (SUBSTITUTE *YOUR* ADDRESS)
send UNIX/nestor.tar.Z
end
The path command can be deleted if we receive a valid from address in your
message. If this is the first time you use our mail server, we suggest you
first issue the request:
send HELP
A complete "ls-lR" listing of the archive is kept in the top-level
directory, it will be updated every night. To get it, issue the command:
send ls-lR.Z
That's all for now. If you encounter problems using the FTP service
and/or the mail-server, feel free to drop me a line (by e-mail, please).
=================================CUT===HERE===================================
#!/bin/sh
# This is a shell archive (shar 3.32)
# made 07/08/1991 13:31 UTC by edwin@cs.ruu.nl
#
# existing files WILL be overwritten
#
# This shar contains:
# length mode name
# ------ ---------- ------------------------------------------
# 7326 -rw-r----- Patch03
#
if touch 2>&1 | fgrep 'amc' > /dev/null
then TOUCH=touch
else TOUCH=true
fi
# ============= Patch03 ==============
echo "x - extracting Patch03 (Text)"
sed 's/^X//' << 'SHAR_EOF' > Patch03 &&
X*** ../1.0PL2/Changes Wed Jun 12 11:30:14 1991
X--- Changes Mon Jul 8 14:50:07 1991
X***************
X*** 104,106 ****
X--- 104,120 ----
X perculiarities.
X
X
X+ Nestor -- 1.0 PL3
X+ =================
X+ Patch #3 was posted in "news.software.nntp" and "comp.sources.bugs" on
X+ July 8, 1991.
X+
X+ Topic: first field should allow machine names of 23+ characters
X+ From: Steven Goodman <manager@spool.mu.edu>
X+ Added: Patch #3 [report.c]
X+
X+ Steven sent me a modified "report.c" that would allow more
X+ character positions for the hostname. The report indeed looks
X+ a lot nicer now. Thanks Steven!
X+
X+
X
X*** ../1.0PL2/nestor.1 Wed Jun 12 10:40:22 1991
X--- nestor.1 Mon Jul 8 15:30:39 1991
X***************
X*** 1,4 ****
X! .TH NESTOR 1L "RUU-CS Version 1.0PL2"
X .SH NAME
X nestor \- NEws STatistics ORganizer
X .SH SYNOPSIS
X--- 1,4 ----
X! .TH NESTOR 1L "RUU-CS Version 1.0PL3"
X .SH NAME
X nestor \- NEws STatistics ORganizer
X .SH SYNOPSIS
X
X*** ../1.0PL2/patchlevel.h Tue Jun 11 21:37:50 1991
X--- patchlevel.h Mon Jul 8 15:29:51 1991
X***************
X*** 14,21 ****
X * 23-May-91 EHK Prepared UseNet community release 1.0 PL0
X * 03-Jun-91 EHK Various problem fixes; better parsing 1.0 PL1
X * 11-Jun-91 EHK Safer mem alloc; real-logging period 1.0 PL2
X *
X *---------------------------------------------------------------------------
X */
X
X! #define PATCHLEVEL 2
X--- 14,22 ----
X * 23-May-91 EHK Prepared UseNet community release 1.0 PL0
X * 03-Jun-91 EHK Various problem fixes; better parsing 1.0 PL1
X * 11-Jun-91 EHK Safer mem alloc; real-logging period 1.0 PL2
X+ * 08-Jul-91 EHK Nicer report; longer hostnames allowed 1.0 PL3
X *
X *---------------------------------------------------------------------------
X */
X
X! #define PATCHLEVEL 3
X
X*** ../1.0PL2/report.c Mon Jun 3 20:03:44 1991
X--- report.c Mon Jul 8 14:04:34 1991
X***************
X*** 17,25 ****
X
X printf("\n\n\
X *** Incoming Articles Via NntpDaemon ***\
X! \n");
X
X! printf("%-17.17s %8s %7s %7s %9s %9s %9s\n",
X "News Site", "Accept", "Reject", "Failed",
X "usr cpu", "sys cpu", "elapsed");
X
X--- 17,25 ----
X
X printf("\n\n\
X *** Incoming Articles Via NntpDaemon ***\
X! \n\n");
X
X! printf("%-24.24s %8s %7s %7s %9s %9s %9s\n",
X "News Site", "Accept", "Reject", "Failed",
X "usr cpu", "sys cpu", "elapsed");
X
X***************
X*** 27,33 ****
X {
X if ( np->recv_a_acc ) /* accept anything btw? */
X {
X! printf("%-17.17s %8d %7d %7d %9s %9s %9s\n",
X np->nntp_host,
X np->recv_a_acc,
X np->recv_a_rej,
X--- 27,33 ----
X {
X if ( np->recv_a_acc ) /* accept anything btw? */
X {
X! printf("%-24.24s %8d %7d %7d %9s %9s %9s\n",
X np->nntp_host,
X np->recv_a_acc,
X np->recv_a_rej,
X***************
X*** 52,68 ****
X
X printf("\n\n\
X *** Outgoing Articles Via NntpXmit ***\
X! \n");
X
X! printf("%-17.17s %7s %7s %7s %7s %9s %9s %9s\n",
X! "News Site", "Offer", "Accept", "Reject", "Failed",
X "usr cpu", "sys cpu", "elapsed");
X
X for ( np = nntps ; np < nntps + num_nntp_hosts ; np++ )
X {
X if ( np->xmit_a_off )
X {
X! printf("%-17.17s %7d %7d %7d %7d %9s %9s %9s\n",
X np->nntp_host,
X np->xmit_a_off,
X np->xmit_a_acc,
X--- 52,68 ----
X
X printf("\n\n\
X *** Outgoing Articles Via NntpXmit ***\
X! \n\n");
X
X! printf("%-23.23s %6s %6s %6s %4s %9s %9s %9s\n",
X! "News Site", "Offer", "Accept", "Reject", "Fail",
X "usr cpu", "sys cpu", "elapsed");
X
X for ( np = nntps ; np < nntps + num_nntp_hosts ; np++ )
X {
X if ( np->xmit_a_off )
X {
X! printf("%-23.23s %6d %6d %6d %4d %9s %9s %9s\n",
X np->nntp_host,
X np->xmit_a_off,
X np->xmit_a_acc,
X***************
X*** 87,105 ****
X
X printf("\n\n\
X *** Overall Network Connections Report ***\
X! \n");
X
X printf("\
X! Network Connections --------- Incoming -------- --------- Outgoing --------\
X \n");
X
X! printf("%-17.17s %7s %10s %10s %7s %10s %10s\n",
X "News Site", "#conn", "#lsyserr", "#neterr",
X "#conn", "#rsyserr", "#neterr");
X
X for ( np = nntps ; np < nntps + num_nntp_hosts ; np++ )
X {
X! printf("%-17.17s %7d %10d %10d %7d %10d %10d %c\n",
X np->nntp_host,
X np->recv_n_connect,
X np->recv_n_hostfail, np->recv_n_netfail,
X--- 87,105 ----
X
X printf("\n\n\
X *** Overall Network Connections Report ***\
X! \n\n");
X
X printf("\
X! Network Connections -------- Incoming ------- -------- Outgoing -------\
X \n");
X
X! printf("%-23.23s %7s %9s %9s %7s %9s %8s\n",
X "News Site", "#conn", "#lsyserr", "#neterr",
X "#conn", "#rsyserr", "#neterr");
X
X for ( np = nntps ; np < nntps + num_nntp_hosts ; np++ )
X {
X! printf("%-23.23s %7d %9d %9d %7d %9d %8d %c\n",
X np->nntp_host,
X np->recv_n_connect,
X np->recv_n_hostfail, np->recv_n_netfail,
X***************
X*** 121,133 ****
X
X printf("\n\n\
X *** Remote Clients Usage Report ***\
X! \n");
X
X printf("\
X! Remote Readerships --- Reading --- ---------- Postings ----------\
X \n");
X
X! printf("%-17.17s %8s %8s %10s %10s %10s\n",
X "News Site", "groups", "articles",
X "#succeed", "#reject", "#fail");
X
X--- 121,133 ----
X
X printf("\n\n\
X *** Remote Clients Usage Report ***\
X! \n\n");
X
X printf("\
X! Remote Readerships --- Reading --- ---------- Postings ----------\
X \n");
X
X! printf("%-23.23s %8s %8s %10s %10s %10s\n",
X "News Site", "groups", "articles",
X "#succeed", "#reject", "#fail");
X
X***************
X*** 135,141 ****
X {
X if ( np->recv_rr_grp || np->recv_rr_art ||
X np->recv_p_acc || np->recv_p_rej || np->recv_p_fai )
X! printf("%-17.17s %8d %8d %10d %10d %10d\n",
X np->nntp_host,
X np->recv_rr_grp, np->recv_rr_art,
X np->recv_p_acc, np->recv_p_rej, np->recv_p_fai);
X--- 135,141 ----
X {
X if ( np->recv_rr_grp || np->recv_rr_art ||
X np->recv_p_acc || np->recv_p_rej || np->recv_p_fai )
X! printf("%-23.23s %8d %8d %10d %10d %10d\n",
X np->nntp_host,
X np->recv_rr_grp, np->recv_rr_art,
X np->recv_p_acc, np->recv_p_rej, np->recv_p_fai);
X***************
X*** 160,172 ****
X
X printf("\n\n\
X *** Overall Performance Averages ***\
X! \n");
X
X printf("\
X! Performance Quality --- Articles/Second --- ----- Network Link -----\
X \n");
X
X! printf("%-17.17s %10s %8s %8s %14s\n",
X "News Site", "incoming", "outgoing",
X "%-failed", "classification");
X
X--- 160,172 ----
X
X printf("\n\n\
X *** Overall Performance Averages ***\
X! \n\n");
X
X printf("\
X! Performance Quality --- Articles/Second --- ----- Network Link -----\
X \n");
X
X! printf("%-23.23s %10s %8s %8s %14s\n",
X "News Site", "incoming", "outgoing",
X "%-failed", "classification");
X
X***************
X*** 197,203 ****
X else
X class = not_avail;
X
X! printf("%-17.17s ", np->nntp_host);
X if ( np->recv_a_acc )
X printf("%10.2f", np->recv_a_acc / np->recv_r_cpu);
X else
X--- 197,203 ----
X else
X class = not_avail;
X
X! printf("%-23.23s ", np->nntp_host);
X if ( np->recv_a_acc )
X printf("%10.2f", np->recv_a_acc / np->recv_r_cpu);
X else
X
SHAR_EOF
$TOUCH -am 0708153191 Patch03 &&
chmod 0640 Patch03 ||
echo "restore of Patch03 failed"
set `wc -c Patch03`;Wc_c=$1
if test "$Wc_c" != "7326"; then
echo original size 7326, current size $Wc_c
fi
exit 0
--
Edwin Kremer, systems and network administrator. [NIC-Whois handle: EHK3]
Department of Computer Science, Utrecht University, The Netherlands
Email: edwin@cs.ruu.nl | UUCP to: ...!uunet!mcsun!hp4nl!ruuinf!edwin
Technical Details
Message-ID:
<1991Jul08.135011.14207@cs.ruu.nl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sources.bugs.mbox.zip!gmdzi!unido!mcsun!hp4nl!alchemy!edwinShow Full Headers
Complete Article Headers
Message-ID: <1991Jul08.135011.14207@cs.ruu.nl> Subject: nestor patch #03 (low priority) Part 01/01 Date: Mon, 08 Jul 1991 13:50:11 +0000 From: edwin@cs.ruu.nl (Edwin Kremer) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sources.bugs.mbox.zip!gmdzi!unido!mcsun!hp4nl!alchemy!edwin Newsgroups: comp.sources.bugs,news.software.nntp Summary: nestor 1.0PL3 released via anonymous ftp from archive.cs.ruu.nl Organization: Utrecht University, Dept. of Computer Science Lines: 380 X-Comp-Archives-Magic-Cookie: archive.cs.ruu.nl:/pub/UNIX/nestor.tar.Z