Article View: news.software.nntp
Article #84206Re: submitting to top1000
From: Julien ÉLIE
Date: Mon, 18 Jul 2011 21:51
Date: Mon, 18 Jul 2011 21:51
84 lines
4648 bytes
4648 bytes
Hi all,
> In the sendinpaths script shipped with INN, the report is supposed to be
> sent every month (30 days is hard-coded). Maybe we should make it
> configurable; this way, people could give the number of days for the
> report as an argument to the script when they put it into their crontab.
I have just taken the time to do that.
I read in <http://top1000.org/>:
It only relies on the few servers that send their stats on a
daily/weekly basis.
Just set up a cron job to compute the stats every month, or even
every day/week. Sending stats every day is an interesting option,
because full feeds today mean big path logfiles, parsing and clearing
them daily is often valuable. It also helps computing pertinent daily
stats.
OK, then it is time to switch to a daily generation!
I suggest the following changes for INN 2.5.3.
Excerpt from an updated documentation:
ninpaths
--------
Enter into your news user crontab these two lines:
6 6 * * * <pathbin>/ctlinnd flush inpaths!
10 6 * * * <pathbin>/sendinpaths
(the actual time doesn’t matter). This will force ninpaths to
generate a dump file once a day. Then, a few minutes later,
sendinpaths collects the dumps, makes a report, sends the
collected statistics, and deletes the old dumps.
Note that you can manually generate a report without mailing it,
and without deleting processed dump files, with "sendinpaths -n".
sendinpaths
-----------
sendinpaths [-n] [-k keep-days] [-r report-days]
[address [address ...]]
-k keep-days
After having processed dump files, sendinpaths removes those
that are older than keep-days days. The
default is 0, that is to say to remove all dump files.
Setting keep-days to another value can be useful for
debugging purpose because it permits to keep a few
dump files.
-r report-days
Process dump files generated during the last report-days
days. The default is 30, that is to say to
process all the dump files that have been generated during
the last 30 days (if, of course, they have
not been deleted yet by a previous run of sendinpaths
according to the value set by the -k flag).
This way, the new script is totally transparent during an update from
previous versions of INN. An existing monthly crontab will go on
working the same way (because of the -r flag defaulting to 30 days).
Old dumps will be purged, though. But already treated.
This new script will also fix weird things that affected the previous
sendinpaths script, like a loss of stats for 1 or 2 days when the month
is 30 or 31 days, and a day sent twice when the month is 28 days
(because of a previous -k defaulting to 14 days).
--
Julien ÉLIE
« Les horizontales se rencontrent dans tous les milieux, les
parallèles jamais. » (Alphonse Allais)
Technical Details
Message-ID:
<j029sq$f5t$1@news.trigofacile.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.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-552-1-98-96.w83-199.abo.wanadoo.fr!not-for-mailReferences:
<e34583e6-1b0f-4aca-a64a-5f4565aad0c7@k17g2000vbn.googlegroups.com> <4dcaf983$0$41117$e4fe514c@news.xs4all.nl> <930eq6Fij5U1@mid.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <j029sq$f5t$1@news.trigofacile.com> Subject: Re: submitting to top1000 Date: Mon, 18 Jul 2011 23:51:22 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <e34583e6-1b0f-4aca-a64a-5f4565aad0c7@k17g2000vbn.googlegroups.com> <4dcaf983$0$41117$e4fe514c@news.xs4all.nl> <930eq6Fij5U1@mid.individual.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-552-1-98-96.w83-199.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 18 Jul 2011 21:51:22 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-552-1-98-96.w83-199.abo.wanadoo.fr:83.199.209.96"; logging-data="15549"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; In-Reply-To: <930eq6Fij5U1@mid.individual.net> Lines: 83