1 NewsStats 0.1 (c) 2010 Thomas Hochstein <thh@inter.net>
3 NewsStats is a software package for gathering statistical data live
4 from a Usenet feed and subsequent examination.
6 This script package is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Public License as published by
8 the Free Software Foundation.
10 ---------------------------------------------------------------------
12 INSTALLATION INSTRUCTIONS
14 1) Install the scripts
16 * Download the current version of NewsStats from
17 <http://th-h.de/download/scripts.php>.
19 * Untar it into a directory of your choice:
21 # tar -xzf newsstats-nn.tar.gz
23 Scripts in this path should be executable by the news user.
27 * Copy the sample configuration file newsstats.conf.sample to
28 newsstats.conf and modify it for your purposes:
30 # cp newsstats.conf.sample newsstats.conf
33 a) Mandatory configuration options
36 Database driver used; currently only mysql is supported.
39 The host your mysql server is running on.
42 The username to connect to the database server.
45 Matching password for your username.
47 * DBDatabase = newsstats
50 NewsStats will use those credentials to connect to your mysql
54 Table holding raw statistical data.
56 * DBTableGrps = groups_de
57 Table holding data on postings per group.
59 b) Optional configuration options
62 Limit examination to that top-level hierarchy.
64 3) Database (mysql) setup
66 * Setup your database server with a username, password and
67 database matching the NewsStats configuration (see 2 a).
69 * Start the installation script:
73 It will setup the necessary database tables and display some
74 information on the next steps.
78 You have to setup an INN feed to feedlog.pl.
80 * Edit your 'newsfeeds' file and insert something like
82 ## gather statistics for NewsStats
85 :Tc,WmtfbsPNH,Ac:/path/to/feedlog.pl
87 * You should only feed that hierarchy (those hierarchies ...) to
88 feedlog.pl you'll want to cover with your statistical
89 examination. It may be a good idea to setup different feeds (to
90 different databases ...) for different hierarchies.
92 * Please double check that your path to feedlog.pl is correct and
93 feedlog.pl can be executed by the news user
95 * Check your 'newsfeeds' syntax:
101 # ctlinnd reload newsfeeds 'Adding newsstats! feed'
103 * Watch your 'news.notice' and 'errlog' files:
105 # tail -f /var/log/news/news.notice
107 # tail -f /var/log/news/errlog
109 Everything should be going smoothly now.
111 * If INN is spewing error messages to 'errlog' or reporting
112 continous respaws of feedlog.pl to 'news.notice', stop your feed:
114 # ctlinnd drop 'newsstats!'
116 and investigate. 'errlog' may be helpful here.
118 * You can restart the feed with
120 # ctlinnd begin 'newsstats!'
124 You should be done now.
126 Just have a look at your raw data (DBTableRaw). It should now start to