🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by NPG Mon, 04 Apr 2011 23:23
What is this log message?
#83956
Author: NPG
Date: Mon, 04 Apr 2011 23:23
14 lines
1348 bytes
innd: ctlinnd command s

It shows up in the logs about every 10 minutes.
My guess, ctlinnd is telling innd to do something every 10 minutes, but what?

Thanks
-- 
Sincerely,

Nathan Gibbs

Systems Administrator
Christ Media
http://www.cmpublishers.com
Re: What is this log message?
#83957
Author: Russ Allbery
Date: Mon, 04 Apr 2011 23:31
16 lines
1656 bytes
NPG <nathan@cmpublishers.com> writes:

> innd: ctlinnd command s

> It shows up in the logs about every 10 minutes.
> My guess, ctlinnd is telling innd to do something every 10 minutes, but what?

It's asking for current status.  The ctlinnd command is being run by
innwatch, which is checking to make sure the server isn't throttled or
having other problems.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: What is this log message?
#83955
Author: NPG
Date: Tue, 05 Apr 2011 00:22
32 lines
1973 bytes
* Russ Allbery wrote:
> NPG <nathan@cmpublishers.com> writes:
> 
>> innd: ctlinnd command s
> 
>> It shows up in the logs about every 10 minutes.
>> My guess, ctlinnd is telling innd to do something every 10 minutes, but what?
> 
> It's asking for current status.  The ctlinnd command is being run by
> innwatch, which is checking to make sure the server isn't throttled or
> having other problems.
> 
Ok, thanks.
I'll just ignore that then.

Is there a doc that explains what each

"ctlinnd command ?"

line means?

I wouldn't want to ignore them all and miss something important.


-- 
Sincerely,

Nathan Gibbs

Systems Administrator
Christ Media
http://www.cmpublishers.com
Re: What is this log message?
#83958
Author: Russ Allbery
Date: Tue, 05 Apr 2011 01:03
22 lines
1853 bytes
NPG <nathan@cmpublishers.com> writes:

> Ok, thanks.
> I'll just ignore that then.

> Is there a doc that explains what each

> "ctlinnd command ?"

> line means?

> I wouldn't want to ignore them all and miss something important.

The mapping from the letters to the actual command names is in the
inn/inndcomm.h include file.  (At some point, we should really make it log
the actual command name instead of the protocol letter.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: What is this log message?
#83960
Author: John F. Morse
Date: Tue, 05 Apr 2011 06:56
99 lines
2938 bytes
Russ Allbery wrote:
> NPG <nathan@cmpublishers.com> writes:
>> Ok, thanks.
>> I'll just ignore that then.
>>     
>> Is there a doc that explains what each
>>     
>> "ctlinnd command ?"
>>     
>> line means?
>>     
>> I wouldn't want to ignore them all and miss something important.
>>     
>
> The mapping from the letters to the actual command names is in the
> inn/inndcomm.h include file.  (At some point, we should really make it log
> the actual command name instead of the protocol letter.)
>   

Sorted by letter code:

a = addhist
A = send
b = begin
B = signal
c = cancel
C = reject
D = allow
d = checkfile
e = drop
E = logmode
F = feedinfo
f = flush
g = flushlogs
h = go
i = hangup
j = name
k = newgroup
l = param
m = pause
n = renumber
o = reload
P = perl
p = rmgroup
q = shutdown
r = throttle
s = mode
T = filter
t = refile
u = changegroup
v = readers
w = trace
x = xabort
y = xexec
z = reserve


Sorted by command:

a = addhist
D = allow
b = begin
c = cancel
u = changegroup
d = checkfile
e = drop
F = feedinfo
T = filter
f = flush
g = flushlogs
h = go
i = hangup
E = logmode
s = mode
j = name
k = newgroup
l = param
m = pause
P = perl
v = readers
t = refile
C = reject
o = reload
n = renumber
z = reserve
p = rmgroup
A = send
q = shutdown
B = signal
r = throttle
w = trace
x = xabort
y = xexec


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: What is this log message?
#83959
Author: Julien ÉLIE
Date: Wed, 06 Apr 2011 21:41
24 lines
1733 bytes
Hi John,

> Sorted by letter code:

I wonder where you find out the list.
The following letters are missing from yours:

H = stathist
L = lowmark
r = throttle
S = status
Y = python
Z = timer

and these ones are no longer in INN 2.5 :

> T = filter
> t = refile

-- 
Julien ÉLIE

« Quand on retire tout ce qu'on a dit, il reste tout ce qu'on n'a pas
   dit. » (Philippe Geluck)
Re: What is this log message?
#83962
Author: John F. Morse
Date: Thu, 07 Apr 2011 00:12
140 lines
5709 bytes
Hi Julien,

> I wonder where you find out the list.


I had it in a textfile. It shows last modified 2010-04-05. That is just 
over a year ago, so I don't remember. ;-)

It may have been created from picking through older INN 2.4.x files.


> The following letters are missing from yours:
> H = stathist
> L = lowmark
> r = throttle
> S = status
> Y = python
> Z = timer


r = throttle was in my list.

Are the others for INN > 2.5.2?


> and these ones are no longer in INN 2.5 :
>
>> T = filter
>> t = refile


Thanks for your updates. I've added them to my textfile.

While looking in various files I did discover a small comment typo in 
innreport:

--- /usr.lib.news/bin/innreport_2.5.2    2011-04-06 18:21:34.000000000 -0500
+++ /usr.lib.news/bin/innreport_2.5.2_edit    2011-04-06 
18:24:22.000000000 -0500
@@ -1476,9 +1476,9 @@
   my $max = 0;
   my $ymax = 300;
   my $nb = 0;
-  # A hugly hack to convert hashes to lists..
-  # and to adjust the first and the last value...
-  # this function should be rewritten..
+  # An ugly hack to convert hashes to lists,
+  # and to adjust the first and the last value.
+  # This function should be rewritten.
   my (@a, @b, $kk);
   foreach $kk (sort keys (%$val1))   {
     if (defined $$val1{$kk}) {

Oh! Digging more I found it! Here's what you wanted to know:

##########################################################
# INN module for innreport (3.*).
#
# Sample file tested with INN 2.4, 2.3, 2.2, 1.7.2 and 1.5.1
#
# (c) 1997-1999 by Fabien Tassin <fta@sofaraway.org>
# version 3.0.2
##########################################################

# TODO: add the map file.

package innreport_inn;

my $MIN = 1E10;
my $MAX = -1;

my %ctlinnd = ('a', 'addhist',     'D', 'allow',
               'b', 'begin',       'c', 'cancel',
               'u', 'changegroup', 'd', 'checkfile',
               'e', 'drop',        'f', 'flush',
               'g', 'flushlogs',   'h', 'go',
               'i', 'hangup',      's', 'mode',
               'j', 'name',        'k', 'newgroup',
               'l', 'param',       'm', 'pause',
               'v', 'readers',     't', 'refile',
               'C', 'reject',      'o', 'reload',
               'n', 'renumber',    'z', 'reserve',
               'p', 'rmgroup',     'A', 'send',
               'q', 'shutdown',    'B', 'signal',
               'r', 'throttle',    'w', 'trace',
               'x', 'xabort',      'y', 'xexec',
               'E', 'logmode',     'F', 'feedinfo',
               'T', 'filter',      'P', 'perl',);

The above is from INN 2.4.5 /usr/lib/news/innreport_inn.pm

Below is INN 2.5.2 /usr/lib/news/innreport_inn.pm

##########################################################################
# INN module for innreport (3.*).
#
# $Id: innreport_inn.pm 9021 2010-03-21 16:48:39Z iulius $
#
# Sample file tested with INN 2.5, 2.4, 2.3, 2.2, 1.7.2 and 1.5.1.
#
# (c) 1997-2001 by Fabien Tassin <fta@sofaraway.org>.
# See innreport for more information.
#
# Version 3.1.0.
#
##########################################################################

# TODO: add the map file.

package innreport_inn;
use strict;

my $MIN = 1E10;
my $MAX = -1;

my %ctlinnd = ('a', 'addhist',     'D', 'allow',
               'b', 'begin',       'c', 'cancel',
               'u', 'changegroup', 'd', 'checkfile',
               'e', 'drop',        'f', 'flush',
               'g', 'flushlogs',   'h', 'go',
               'i', 'hangup',      's', 'mode',
               'j', 'name',        'k', 'newgroup',
               'l', 'param',       'm', 'pause',
               'v', 'readers',     't', 'refile',
               'C', 'reject',      'o', 'reload',
               'n', 'renumber',    'z', 'reserve',
               'p', 'rmgroup',     'A', 'send',
               'q', 'shutdown',    'B', 'signal',
               'r', 'throttle',    'w', 'trace',
               'x', 'xabort',      'y', 'xexec',
               'E', 'logmode',     'F', 'feedinfo',
               'T', 'filter',      'P', 'perl',);

Looks identical to me.


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: What is this log message?
#83964
Author: Julien ÉLIE
Date: Thu, 07 Apr 2011 18:58
41 lines
3045 bytes
Hi John,

> While looking in various files I did discover a small comment typo in
> innreport:
>
> - # A hugly hack to convert hashes to lists..
> + # An ugly hack to convert hashes to lists,

I think it was intentional.
A nice misspell to highlight the ugliness of the hack :-)


> Oh! Digging more I found it! Here's what you wanted to know:
>
> my %ctlinnd = ('a', 'addhist', 'D', 'allow',
> 'b', 'begin', 'c', 'cancel',
>
> INN 2.5.2 /usr/lib/news/innreport_inn.pm

OK, thanks for the pointer.  I now understand why we have discrepancies 
between our two checks of the letters.
I checked at the source (where ctlinnd generates the letter from the 
input of the user).

We have the list at three places (at least):  ctlinnd, innd and 
innreport.  The last one seems very outdated.
Russ is of course right when he suggests to no longer use the letters; 
it will also increase the maintainability because it will allow to 
remove the duplicate (and outdated) translation list in innreport.

I have just noted to do the change.  Not difficult to do.  The only 
downside is that innreport will not properly report ctlinnd commands the 
day when INN is upgraded to the new version with complete command names. 
  I think it is not a big deal (we already did the same thing once when 
we changed the way checkpoints are handled by INN).

-- 
Julien ÉLIE

« Le travail, c'est le refuge des gens qui n'ont rien de mieux à
   faire. » (Oscar Wilde)
Re: What is this log message?
#83967
Author: NPG
Date: Fri, 08 Apr 2011 02:57
15 lines
1645 bytes
* John F. Morse wrote:
> 
> Sorted by letter code:
> 
Thanks, now I can cross looking that up off my to do list.
:-)

-- 
Sincerely,

Nathan Gibbs

Systems Administrator
Christ Media
http://www.cmpublishers.com
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