Thread View: news.software.nntp
4 messages
4 total messages
Started by Ragnar Lonn
Tue, 01 Apr 1997 00:00
More Diablo questions
Author: Ragnar Lonn
Date: Tue, 01 Apr 1997 00:00
Date: Tue, 01 Apr 1997 00:00
44 lines
2503 bytes
2503 bytes
Hello again, This time I have some questions about Diablo's syslogging. I have a couple of programs that scans the syslog files and makes summaries of articles received, transmitted, etc each day. However, I've been getting some slightly strange figures out of these programs lately (I won't swear it isn't my programs doing something stupid but I don't *think* so, so I thought I'd better ask before I started looking for bugs). For example, these are the figures I get for an outgoing NNTP feed to our local reader machine: Feedname Secs Off Acc Dup Rej epimetheus 205464 553448 505116 48332 0 The reader machine epimetheus, on the other hand, reports this for the same period: Articles received by server System Connects Offered Took Refuse Rejct Accpt Elapsed localhost 309 309 304 4 1 98% 2:55:47 newsfeed1-2.algonet. 587 238131 212568 4154 21409 89% 22:43:01 Now this is based on syslog data from a 24-hour period of time. I rotate the syslog files every day just after these statistics are gathered. According to this, dnewslink has offered 553448 articles and the reader machine has accepted 505116 ones. The reader machine that is being fed claims it has been offered 238131 articles and taken 212568. Which looks more reasonable. Now, my program that generates these stats takes all the "final" logs generated by dnewslink and adds together all the figures in them to get these values. Is this the wrong method? If so, then what *is* dnewslink logging in its 'final' syslog entries? Any thoughts on how reliable these log entries are would be interesting. Also, the same info about diablo's log entries for incoming NNTP traffic is of interest as I've begun to generate statistics using them too. I am going to compare my logs with those of my peers and see if things look roughly the same. Regards, /Ragnar, Algonet
Re: More Diablo questions
Author: Matt Dillon
Date: Tue, 01 Apr 1997 00:00
Date: Tue, 01 Apr 1997 00:00
41 lines
2095 bytes
2095 bytes
:In article <5hpgo3$h6i@epimetheus.algonet.se>,
:Ragnar Lonn <prl@algonet.se> wrote:
:>Hello again,
:>
:>This time I have some questions about Diablo's syslogging. I have a couple
:..
:>Feedname Secs Off Acc Dup Rej
:>epimetheus 205464 553448 505116 48332 0
:>
:>The reader machine epimetheus, on the other hand, reports this for the
:>same period:
:>
:>Articles received by server
:>System Connects Offered Took Refuse Rejct Accpt Elapsed
:>localhost 309 309 304 4 1 98% 2:55:47
:>newsfeed1-2.algonet. 587 238131 212568 4154 21409 89% 22:43:01
:>
:>Now this is based on syslog data from a 24-hour period of time. I rotate
:>the syslog files every day just after these statistics are gathered. According
:>to this, dnewslink has offered 553448 articles and the reader machine has
:...
:>Now, my program that generates these stats takes all the "final" logs
:>generated by dnewslink and adds together all the figures in them to get
:>these values. Is this the wrong method? If so, then what *is* dnewslink
:>logging in its 'final' syslog entries?
Are you absolutely sure you are only taking into account the final
logs ? Those numbers sound very suspiciously like you are, in fact,
summing both the 'final' entries and the 'mark' entries. My logs
look right.. around 250K articles sent and 250K articles received
by the newsreader machine.
:>Regards,
:>
:> /Ragnar, Algonet
-Matt
Re: More Diablo questions
Author: Ragnar Lonn
Date: Thu, 03 Apr 1997 00:00
Date: Thu, 03 Apr 1997 00:00
33 lines
1653 bytes
1653 bytes
In article <5hrmsd$d10@flea.best.net>, dillon@flea.best.net (Matt Dillon) wrote: s? > Are you absolutely sure you are only taking into account the final > logs ? Those numbers sound very suspiciously like you are, in fact, > summing both the 'final' entries and the 'mark' entries. My logs > look right.. around 250K articles sent and 250K articles received > by the newsreader machine. > Actually, I do this: grep final diablo.log | grep newslink | cut -d: -f5- | /news/dbin/dlogscan.prl $1 ..I grep out all entries from dnewslink that contains the word 'final'. I even tried inserting a "grep -v mark" but nothing changed. I might make my program (dlogscan.prl) a bit smarter so it figures out for itself what lines to use and what ones to throw away but for now it's too stupid and just tries to get something useful out of every line it gets. Hmm...maybe I'd better start doing some debugging then. After all, I could be adding the numbers twice somewhere! Regards, /Ragnar, Algonet
Re: More Diablo questions
Author: Ragnar Lonn
Date: Thu, 03 Apr 1997 00:00
Date: Thu, 03 Apr 1997 00:00
60 lines
3031 bytes
3031 bytes
In article <5huri0$53b@epimetheus.algonet.se>, prl@algonet.se (Ragnar Lonn)
wrote:
>In article <5hrmsd$d10@flea.best.net>, dillon@flea.best.net (Matt Dillon)
>wrote:
>s?
>> Are you absolutely sure you are only taking into account the final
>> logs ? Those numbers sound very suspiciously like you are, in fact,
>> summing both the 'final' entries and the 'mark' entries. My logs
>> look right.. around 250K articles sent and 250K articles received
>> by the newsreader machine.
>>
>
Ok I have double-checked now. I did this:
grep newslink diablo.log | grep final | awk '{print $12}' | cut -d= -f2 >FILE
(diablo.log is the syslog-generated file holding log entries from both diablo
and dnewslink)
Then I did:
set TOTAL=0
foreach NO (`cat FILE`)
set TOTAL=`expr $TOTAL + $NO`
end
echo $TOTAL
The resulting value is the sum of all the "tot=<number>" fields in the
"final" log entries. That should be the number of articles offered, right?
The result matched exactly the result my C-program gave for the same 24-hour
log period and it seems to be about twice the number of articles actually
offered.
Have anyone else experienced this behaviour with dnewslink from the
Diablo 1.06 distribution? That it seems to double all the numbers it
logs. I'm not sure about the 'secs' values but the others seem doubled.
Another strange thing I noticed, but which might have some rational
explanation I just can't think of is that dnewslink reports that our reader
machine, which it is feeding, responds with 'duplicate' quite often when
it is being offered an article. It happened (according to dnewslink)
57,000 times yesterday (http://fanta.algonet.se/ - epimetheus is the
reader machine) and this is very strange to me because the reader
machine has no other feeds! How can it already have articles it is
being offered? Could Diablo be offering articles more than once
sometimes?
It is of course *possible* that the articles may be old and that they
were fed to the reader before we setup the Diablo feeder machine
(9 days ago) but the number of duplicates seem quite high? Or maybe
it isn't. After all the real number might be 27,000 duplicates and not
57,000 if the logging is messed up. I don't know how many articles
older than, say a week, is being offered to us every day really.
/Ragnar, Algonet
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