Thread View: news.software.nntp
4 messages
4 total messages
Started by John J. Sawa
Tue, 08 Apr 1997 00:00
Limit the number of concurrent nnrp connections?
Author: John J. Sawa
Date: Tue, 08 Apr 1997 00:00
Date: Tue, 08 Apr 1997 00:00
13 lines
904 bytes
904 bytes
How do you limit the number of concurrent nnrpd connections under INN 1.5.1 running under Solaris 2.5.1. I used to run INN on a BSD box which I ran a perl script which would kill the excess connections but since solaris doesn't display the originating IP in the process table how can you limit the amount of concurrent connections? Thank you... John J. Sawa jsawa@delta.net
Status of nnrpd
Author: John Payne
Date: Tue, 08 Apr 1997 00:00
Date: Tue, 08 Apr 1997 00:00
20 lines
1488 bytes
1488 bytes
John J. Sawa wrote:
>
> How do you limit the number of concurrent nnrpd connections under INN
> 1.5.1 running under Solaris 2.5.1. I used to run INN on a BSD box
> which I ran a perl script which would kill the excess connections but
> since solaris doesn't display the originating IP in the process table
> how can you limit the amount of concurrent connections?
And along the same kind of lines (if your mind works the same as mine),
is there any way of getting a snapshot of the status of nnrpd, kind of
like the number of nnrpd processes, grouped per site, or age, etc...
especially kewl if it would graph the results as well :-)
--
John Payne | VM: JOHN at RTP
IBM Global Services NS | email: john@raleigh.ibm.com
OpenNet Services (EMEA) | Intranet http://w3.irc.ibm.com/jpayne
Re: Status of nnrpd
Author: bill davidsen
Date: Thu, 10 Apr 1997 00:00
Date: Thu, 10 Apr 1997 00:00
46 lines
2146 bytes
2146 bytes
In article <334ACC1E.3F54@paynjc.portsmouth.uk.ibm.com>,
John Payne <john@paynjc.portsmouth.uk.ibm.com> wrote:
| And along the same kind of lines (if your mind works the same as mine),
| is there any way of getting a snapshot of the status of nnrpd, kind of
| like the number of nnrpd processes, grouped per site, or age, etc...
| especially kewl if it would graph the results as well :-)
Please flame me by mail for posting this half screen of source
code...
================================================================
#!/usr/local/bin/perl
# open the process file
open(NETSTAT, "netstat -f inet|") || die "Can't start netstat
process";
# process the output
while (<NETSTAT>) {
if (m/\.nntp[ \t]/) {
# pick up the node name field, drop the socket number
split;
$node = @_[4];
$node =~ s/\.[^.]*$//;
$count{$node}++;
}
}
# output the counts
foreach $node (sort keys %count) {
printf("%5d %s\n", @count{$node}, $node);
}
================================================================
There's a fair chance that this is in some way AIX dependent and you
will have to tune the offsets to match your netstat output.
Beware, this has been through drag and drop, if something isn't
quite right, it would astonish me.
--
-bill davidsen (davidsen@prodigy.com) Prodigy Internet Server Support
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
Re: Status of nnrpd
Author: John Payne
Date: Fri, 18 Apr 1997 00:00
Date: Fri, 18 Apr 1997 00:00
23 lines
1386 bytes
1386 bytes
bill davidsen wrote:
> There's a fair chance that this is in some way AIX dependent and you
> will have to tune the offsets to match your netstat output.
AIX dependancy is fine for semi-obvious reasons :-)
> Beware, this has been through drag and drop, if something isn't
> quite right, it would astonish me.
Works very well, except it picks up the feeding processes as well,
although that really doesn't
matter.
Thanks!
regards John
--
John Payne | VM: JOHN at RTP
IBM Global Services NS | email: john@raleigh.ibm.com
OpenNet Services (EMEA) | Intranet http://w3.irc.ibm.com/jpayne
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