Thread View: news.software.nntp
2 messages
2 total messages
Started by Michael Handler
Wed, 27 Mar 1996 00:00
Another silly question about filtering messages from the Daily Usenet Report
Author: Michael Handler
Date: Wed, 27 Mar 1996 00:00
Date: Wed, 27 Mar 1996 00:00
64 lines
3148 bytes
3148 bytes
Okay, we're running INN 1.4unoff4. In the Daily Usenet report, we get
thousands of messages like these:
Mar 27 08:47:30 netaxs nnrpd[9012]: wyndmoor1-53.slip.netaxs.com cant
read Connection reset by peer
Mar 27 08:57:45 netaxs nnrpd[9632]: downtown1-9.slip.netaxs.com cant
read Connection reset by peer
I've been told that this message is caused by a buggy older version of
Newswatcher (a Macintosh SLIP/PPP dialup newsreader); we've encouraged
our users to upgrade to a newer version, but we're still seeing loads
of these messages. Needless to say, I'm not particularly interested in
seeing this in my Daily Usenet report. I'm looking for a way to filter
them out.
I read the thread that Mike Batchelor (hi, Mike!) started about
filtering out 'NCmode "mode stream" received' messages from the Daily
Usenet report, and I realized I had to modify innlog.awk. So, I
modified the relevant portion of innlog.awk, and now it looks like
this:
[SECTION ONE]
if ($7 == "inactive" || $7 == "descriptors" \
|| $7 == "outgoing" || $7 == "running" \
|| $7 == "lcsetup" || $7 == "ccsetup" \
|| $7 == "rcsetup" || $7 == "readclose" \
|| $7 == "flush_all" || $7 == "NCmode" \
|| ($7 == "cant" && $8 == "read") \
) {
## Skip; for now.
next;
}
By my estimation, that should filter out both the "NCmode" messages,
as well as the "cant read Connection reset by peer" messages.
However, I was looking at the code directly above the block I was
modifying, and I saw this:
[SECTION TWO]
if ($7 == "wakeup" || ($7 == "cant" && ($8 == "write" || $8 == "read"))) {
## Skip; handled by "blocked/sleeping" above.
next;
}
Now, I'm a reasonably competent Perl and C programmer. I don't know
awk all that well, but from what I do know, it would _seem_ that the
code in [SECTION TWO] would take care of the "cant read" messages
before [SECTION ONE] executes, making my modifications to [SECTION
ONE] totally unncessary. Of course, I keep on getting these messages
in my Daily Usenet report, which contradicts what I'm thinking.
I'll know if this worked or not when news.daily runs again tonight,
but I'm posting this here because I don't know if I'm missing
something obvious.
Thanks for any help.
--
Michael Handler <handler@netaxs.com> Email: support@netaxs.com
Net Access System Administration Voice: 215-576-8669
Re: Another silly question about filtering messages from the Daily Usenet Report
Author: Per Hedeland
Date: Sat, 30 Mar 1996 00:00
Date: Sat, 30 Mar 1996 00:00
38 lines
1805 bytes
1805 bytes
[ Bogus Distribution: inet removed. ]
In article <slrn4lj507.f2d.handler@unix3.netaxs.com> handler@netaxs.com (Michael Handler) writes:
>Mar 27 08:57:45 netaxs nnrpd[9632]: downtown1-9.slip.netaxs.com cant
> read Connection reset by peer
>
>I've been told that this message is caused by a buggy older version of
>Newswatcher (a Macintosh SLIP/PPP dialup newsreader);
Buggy older versions of Netscape are also guilty of this, I believe.
>Now, I'm a reasonably competent Perl and C programmer. I don't know
>awk all that well, but from what I do know, it would _seem_ that the
>code in [SECTION TWO] would take care of the "cant read" messages
>before [SECTION ONE] executes, making my modifications to [SECTION
>ONE] totally unncessary. Of course, I keep on getting these messages
>in my Daily Usenet report, which contradicts what I'm thinking.
You're looking at the section (both ONE and TWO) that deals with
messages from *innd*:
##
## INND
##
$5 == "innd:" {
- but the messages above are from *nnrpd*, which is dealt with earlier
in the script:
##
## NNRP
##
$5 ~ /nnrpd.*/ {
--Per Hedeland
per@erix.ericsson.se
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