Article View: news.software.nntp
Article #6059Another silly question about filtering messages from the Daily Usenet Report
From: 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
Technical Details
Message-ID:
<slrn4lj507.f2d.handler@unix3.netaxs.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: <slrn4lj507.f2d.handler@unix3.netaxs.com> Subject: Another silly question about filtering messages from the Daily Usenet Report Date: Wed, 27 Mar 1996 00:00:00 +0000 From: handler@netaxs.com (Michael Handler) 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: 144487017 Distribution: inet Organization: Net Access System Administration Newsgroups: news.software.nntp