🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
18 messages
18 total messages Started by Iulius Thu, 17 Aug 2006 15:16
Innreport fails to log everything
#74041
Author: Iulius
Date: Thu, 17 Aug 2006 15:16
26 lines
2076 bytes
Hi,

Some days, I have strange reports in « incoming feeds » by Innreport.
Everything is fine, except one or two feeds (which are not the same each time).


For instance:

Incoming Feeds (INN):
Server                Connects  Offered   Taken Refused  Reject %Accpt  Elapsed
feed.good                   17   101682   29773   71600     309   29%  34:41:00
feed.bad                     4       11       4       1       6   36%  00:00:22

Normally, « feed.bad » has much more articles and a higher elapsed time!
And if I read « news.1.gz », I see that it worked well the previous day.


It looks as though, for an unknown reason, Innreport has rotated the « news » file
before the end of the count and, therefore, uses the new file created 22 seconds before.

Is somebody else having the same problem? (with INN 2.4.3)

-- 
Iulius

« Un vol en rase-bottes, quoi ! » (Astérix)
Re: Innreport fails to log everything
#74061
Author: F. Senault
Date: Mon, 21 Aug 2006 21:42
14 lines
1619 bytes
Le 17 août à 17:16, Iulius a écrit :

> Is somebody else having the same problem? (with INN 2.4.3)

I believe it was discussed here some time ago ; somebody even had a
patch for it, I think, but I've lost it.

Fred
Not much helping, this time...
-- 
I don't know who you are,    But you seem very nice
So will you talk to me?
Shall I tell you a story,    Shall I tell you a dream?
They think I'm crazy.                  (K's Choice, Everything for free)
Re: Innreport fails to log everything
#74059
Author: Iulius
Date: Tue, 22 Aug 2006 08:38
32 lines
2152 bytes
En réponse à F. Senault :
> I believe it was discussed here some time ago ; somebody even had a
> patch for it, I think, but I've lost it.

Great!
I have searched a bit before sending my article but I believe I should
have searched more :)


> Fred
> Not much helping, this time...

Yes you were:

http://groups.google.fr/group/news.software.nntp/browse_frm/thread/54fb1b9c2178aaa7/bb250a65c678b530

and the last patch:

http://members.ll.net/supraexpress/

%%
Include article information that was left out when a channel was reported as closed
and the reporting process had begun before another channel close had occured, which
would have then updated the article counts inbetween the two channel closes.
%%

Unfortunately, there is no grouping :(

-- 
Iulius

« Plus un ordinateur possède de RAM, plus vite il peut générer un message d'erreur. »
Re: Innreport fails to log everything
#74063
Author: F. Senault
Date: Tue, 22 Aug 2006 17:15
12 lines
1671 bytes
Le 22 août à 10:38, Iulius a écrit :

> Unfortunately, there is no grouping :(

Grouping ?

Fred
-- 
Toute ressemblance avec un message écrit par un être au moins aussi
intelligent qu'un singe tapant sur une machine à écrire pour reproduire
du Shakespeare serait purement fortuite; prière de prévenir en cas de
miracle.                                          (Jokeuse, sur #lacave)
Re: Innreport fails to log everything
#74064
Author: Iulius
Date: Tue, 22 Aug 2006 18:28
29 lines
2448 bytes
En réponse à F. Senault :
>> Unfortunately, there is no grouping :(
> 
> Grouping ?

Each connection is logged.
It would have been better to have the sum of all of them (one line for
a peer).  Well, I suppose it is possible if I add a temporary variable
in order to sum the whole thing (or even if I rewrite the report after
it is done!).

%%
Display hostnames in a <hostname>:<channel> format, which will increase
the number of entries displayed, but will also more accurately reflect
each host connection. The hostname is truncated to 20 characters to allow
the channel part to be tacked onto it, and still fit in its reporting field.
Note that this will increase the number of report lines! (see sample below)

hostname.AA.BB:12            2      872      43     826       3    4%  02:04:04
hostname.AA.BB:13            1      324       9     313       2    2%  01:03:37
hostname.AA.BB:18            1      613      36     577       0    5%  01:03:38
hostname.AA.BB:30            1      460      12     447       1    2%  01:03:38
[...]
%%

-- 
Iulius

« Quès acco ? » (Caligulaminix)
Re: Innreport fails to log everything
#74065
Author: Russ Allbery
Date: Tue, 22 Aug 2006 18:37
15 lines
1785 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:

> Each connection is logged.
> It would have been better to have the sum of all of them (one line for
> a peer).  Well, I suppose it is possible if I add a temporary variable
> in order to sum the whole thing (or even if I rewrite the report after
> it is done!).

Yeah, that was the main reason why I wasn't thrilled by that patch.

-- 
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: Innreport fails to log everything
#74102
Author: Iulius
Date: Sun, 27 Aug 2006 08:56
19 lines
1717 bytes
By the way, in « innfeed.conf » man, there is a mistake in:


backlog-limit
      [...] The limit depends on whether backlog-factor or backlog-limit-high is used.


It is « backlog-limit-highwater », not « backlog-limit-high ».



Moreover, there is the undocumented « backlog-rotate-period » which
is yet written in the example of the man...

-- 
Iulius

« Dès l'époque secondaire, les mollusques construisaient leur coquille
   en suivant les leçons de géométrie transcendante. » (Gaston Bachelard)
Re: Innreport fails to log everything
#74105
Author: Iulius
Date: Sun, 27 Aug 2006 09:02
20 lines
2155 bytes
En réponse à Russ Allbery :
>> Each connection is logged.
>> It would have been better to have the sum of all of them (one line for
>> a peer).  Well, I suppose it is possible if I add a temporary variable
>> in order to sum the whole thing (or even if I rewrite the report after
>> it is done!).
> 
> Yeah, that was the main reason why I wasn't thrilled by that patch.

Shouldn't it be possible to do two loops?
One with the patch and the other one to make the sum and the new stats?

I know it is not good coding, but I believe it is better than wrong results...

-- 
Iulius

« -- Je me sens un peu rouillé ! C'est sûrement à cause
   des pluies provoquées par Assurancetourix !
   -- En attendant c'est nous qui dérouillons ! » (Astérix)
Re: Innreport fails to log everything
#74107
Author: Russ Allbery
Date: Sun, 27 Aug 2006 17:24
16 lines
1830 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:

> Shouldn't it be possible to do two loops?
> One with the patch and the other one to make the sum and the new stats?

> I know it is not good coding, but I believe it is better than wrong
> results...

I'm sure it's possible; I just don't have time to work on it.  I'd welcome
a fixed patch.

-- 
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: Innreport fails to log everything
#74106
Author: Russ Allbery
Date: Sun, 27 Aug 2006 17:31
21 lines
1747 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:

> By the way, in « innfeed.conf » man, there is a mistake in:

> backlog-limit
>      [...] The limit depends on whether backlog-factor or backlog-limit-high is used.

> It is « backlog-limit-highwater », not « backlog-limit-high ».

Thanks, fixed.

> Moreover, there is the undocumented « backlog-rotate-period » which
> is yet written in the example of the man...

Fixed.

-- 
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: Innreport fails to log everything
#74110
Author: Iulius
Date: Mon, 28 Aug 2006 12:59
52 lines
2969 bytes
En réponse à Russ Allbery :
> I'm sure it's possible; I just don't have time to work on it.  I'd welcome
> a fixed patch.

Well...
Here it is: <http://people.via.ecp.fr/~iulius/inn2/>.

I have successfully tested it (with stable Debian Sarge version of INN 2.4.2).

The report seems fine:

28/08 14:21 news@guepard ~% scanlogs norotate > with-patch
[...]
28/08 14:22 news@guepard ~% scanlogs norotate > without-patch


with-patch
----------

Incoming Feeds (INN):
Server                Connects  Offered   Taken Refused  Reject %Accpt  Elapsed
feed1                       11    38244   14566   22982     696   38%  10:30:31
feed2                        4    23229    3878   19329      22   16%  10:33:56

[...]

TOTAL: 31                  754   968368   42556  901923   23889    4% 648:59:57



without-patch
-------------

Incoming Feeds (INN):
Server                Connects  Offered   Taken Refused  Reject %Accpt  Elapsed
feed1                       11    37284   14271   22322     691   38%  10:19:46
feed2                        4       31       0      31       0    0%  00:29:43

[...]

TOTAL: 31                  758   858714   33373  807270   18071    3% 605:54:30


We see that the patched version is more up to date!

If some people want to test it (especially on INN 2.5), they can.  Do not forget
to save your three previous innreport files before patching them (just in case...).

-- 
Iulius

« Tu l'as trop écrasé, César, ce Port-Salut. »
Re: Innreport fails to log everything
#74113
Author: Iulius
Date: Mon, 28 Aug 2006 13:35
20 lines
2015 bytes
Hi,

> I have successfully tested it (with stable Debian Sarge version of INN 
> 2.4.2).

Strange that it is a 2.4.2-3 version but it says:

200 news.ecp.fr InterNetNews server INN 2.4.3 (20050407 prerelease) ready

and « innconfval » says the same thing.
Shouldn't it say « 2.4.2 »?


The real 2.4.3-1 is in Sid, not in Sarge...  Hey! Won't it be in Etch?

-- 
Iulius

« On appelle ça une insula. C'est une maison où les gens habitent
   les uns au-dessus des autres... » (Astérix)
Re: Innreport fails to log everything
#74115
Author: John F. Morse
Date: Mon, 28 Aug 2006 15:12
26 lines
2084 bytes
Iulius wrote:

> Hi,
>
>> I have successfully tested it (with stable Debian Sarge version of 
>> INN 2.4.2).
>
>
> Strange that it is a 2.4.2-3 version but it says:
>
> 200 news.ecp.fr InterNetNews server INN 2.4.3 (20050407 prerelease) ready
>
> and « innconfval » says the same thing.
> Shouldn't it say « 2.4.2 »?
>
>
> The real 2.4.3-1 is in Sid, not in Sarge...  Hey! Won't it be in Etch?


I'm running Sarge and get:

200 news5.my.net InterNetNews NNRP server INN 2.4.3 (20050407 
prerelease) ready (posting ok).

-- 
John
Re: Innreport fails to log everything
#74114
Author: Iulius
Date: Mon, 28 Aug 2006 16:29
16 lines
2200 bytes
En réponse à John F. Morse :
> I'm running Sarge and get:
> 
> 200 news5.my.net InterNetNews NNRP server INN 2.4.3 (20050407 
> prerelease) ready (posting ok).

Yes but this package is « 2.4.2-3 » and if I read the changelog, it says it
is a 2.4.2...
Notwithstanding, INN declares itself as a 2.4.3; is it normal?
Has a variable been wrongfully updated?

-- 
Iulius

« Il y a des gens qui parlent jusqu'à ce qu'ils arrivent
   à trouver quelque chose à dire. » (Sacha Guitry)
Re: Innreport fails to log everything
#74139
Author: F. Senault
Date: Tue, 29 Aug 2006 13:53
31 lines
2749 bytes
Le 28 août à 14:59, Iulius a écrit :

> En réponse à Russ Allbery :
>> I'm sure it's possible; I just don't have time to work on it.  I'd welcome
>> a fixed patch.
> 
> Well...
> Here it is: <http://people.via.ecp.fr/~iulius/inn2/>.
/.../
> If some people want to test it (especially on INN 2.5), they can.  Do not forget
> to save your three previous innreport files before patching them (just in case...).

I'll give it a try.  By the way, I'm also working on the generation of
stats, and I've implemented this :

http://news.lacave.net/inn/status.diff

It adds a config directive (logstats) that makes innd send it's incoming
stats to syslog, in the same format than the channel closing message
(and including a 'ME' line with the totals), every <status> seconds.

I first considered processing the inn_status.html file, but it had two
flaws : it's lots of work and processing, and the sizes where
"prettified", meaning it lacked precision.

Fred
-- 
A magazine here has a bunch of bonobo's in the zoo and a bunch of market
analysts from major banks picking stocks weekly. So far the bonobo's are
turning in a profit and the analysts lose money.  The banks haven't made
the logical step yet.                       (Lieven Marchand in the SDM)
Re: Innreport fails to log everything
#74153
Author: Iulius
Date: Wed, 30 Aug 2006 08:04
26 lines
2269 bytes
En réponse à F. Senault :
> I'll give it a try.

Hmm...

http://talisker.lacave.net/news/innstats/

It doesn't look very good.  But, at least, you have the incoming volume :)

I think it is a problem of variables in « innreport.conf »...
(do you have the « *_sum » ones?  and are they defined?)

You can test whenever you want with « scanlogs norotate » (it generates
the innreport output within seconds).


> It adds a config directive (logstats) that makes innd send it's incoming
> stats to syslog, in the same format than the channel closing message
> (and including a 'ME' line with the totals), every <status> seconds.

And then, should it be added to innreport?

-- 
Iulius

« Lupus est matrem suum. »
Re: Innreport fails to log everything
#74154
Author: F. Senault
Date: Wed, 30 Aug 2006 10:00
45 lines
3320 bytes
Le 30 août à 10:04, Iulius a écrit :

> En réponse à F. Senault :
>> I'll give it a try.

(By the way, the patch didn't apply cleanly against the latest current,
it seems.  Maybe you could publish or send me the whole code of
innreport_inn.pm ?)

> Hmm...
> 
> http://talisker.lacave.net/news/innstats/
> 
> It doesn't look very good.  But, at least, you have the incoming volume :)

Yeah !

> I think it is a problem of variables in « innreport.conf »...
> (do you have the « *_sum » ones?  and are they defined?)

I have them, they should be defined, even if it looks like they
aren't...

Maybe it's the fault of my own patches, mind you.  I'll try to
investigate at one point.

> You can test whenever you want with « scanlogs norotate » (it generates
> the innreport output within seconds).
> 
>> It adds a config directive (logstats) that makes innd send it's incoming
>> stats to syslog, in the same format than the channel closing message
>> (and including a 'ME' line with the totals), every <status> seconds.
> 
> And then, should it be added to innreport?

Not necessarily.  For a resolution of one day, it's not useful.  OTOH,
I'm trying to make real-time graphs, and I needed data points every
minute (at http://news.lacave.net/ngraph/ - will probably move soon).

Fred
-- 
I have kissed honey lips              Felt the healing in her fingertips
It burned like fire   This burning desire   I have spoke with the tongue
of angels   I have held the hand of the devil   It was warm in the night
I was cold as a stone   (U2, I Still Haven't Found What I'm Looking For)
Re: Innreport fails to log everything
#74155
Author: Iulius
Date: Wed, 30 Aug 2006 12:22
39 lines
2788 bytes
En réponse à F. Senault :
> (By the way, the patch didn't apply cleanly against the latest current,
> it seems.  Maybe you could publish or send me the whole code of
> innreport_inn.pm ?)

Sure:

http://people.via.ecp.fr/~iulius/inn2/


>> It doesn't look very good.  But, at least, you have the incoming volume :)
> 
> Yeah !

I'm sorry.  Cannot you regenerate yesterday's stats (forcing the « *.1.gz »)?


>> I think it is a problem of variables in « innreport.conf »...
>> (do you have the « *_sum » ones?  and are they defined?)
> 
> I have them, they should be defined, even if it looks like they
> aren't...

Perhaps not in the good function or bracket.


> Not necessarily.  For a resolution of one day, it's not useful.  OTOH,
> I'm trying to make real-time graphs, and I needed data points every
> minute (at http://news.lacave.net/ngraph/ - will probably move soon).

Great!
However, I don't know whether my eyes are tricking me but I see more articles
in « fr.* » than « comp.* » in the graphics (while the numbers beneath say
the contrary). (?)

-- 
Iulius

« Quand je raconterai mon odyssée, personne ne me croira ! » (Astérix)
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