1 NewsStats 0.1 (c) 2010-2013 Thomas Hochstein <thh@inter.net>
3 NewsStats is a software package used to gather statistical information
4 from a live Usenet feed and for its 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 - at least feedlog.pl - should be executable by the
28 * Copy the sample configuration file newsstats.conf.sample to
29 newsstats.conf and modify it for your purposes:
31 # cp newsstats.conf.sample newsstats.conf
34 a) Mandatory configuration options
37 Database driver used; currently only mysql is supported.
40 The host your mysql server is running on.
43 The username to connect to the database server.
46 Matching password for your username.
48 * DBDatabase = newsstats
51 NewsStats will use those credentials to connect to your mysql
55 Table holding raw statistical data.
57 * DBTableGrps = groups_de
58 Table holding data on postings per group.
60 b) Optional configuration options
63 Limit examination to that top-level hierarchy.
65 3) Database (mysql) setup
67 * Setup your database server with a username, password and
68 database matching the NewsStats configuration (see 2 a).
70 * Start the installation script:
74 It will setup the necessary database tables and display some
75 information on the next steps.
79 You have to setup an INN feed to feedlog.pl.
81 * Edit your 'newsfeeds' file and insert something like
83 ## gather statistics for NewsStats
86 :Tc,WmtfbsPNH,Ac:/path/to/feedlog.pl
88 * You should only feed that hierarchy (those hierarchies ...) to
89 feedlog.pl you'll want to cover with your statistical
90 examination. It may be a good idea to setup different feeds (to
91 different databases ...) for different hierarchies.
93 * Please double check that your path to feedlog.pl is correct and
94 feedlog.pl can be executed by the news user
96 * Check your 'newsfeeds' syntax:
100 * Reload 'newsfeeds':
102 # ctlinnd reload newsfeeds 'Adding newsstats! feed'
104 * Watch your 'news.notice' and 'errlog' files:
106 # tail -f /var/log/news/news.notice
108 # tail -f /var/log/news/errlog
110 Everything should be going smoothly now.
112 * If INN is spewing error messages to 'errlog' or reporting
113 continous respawns of feedlog.pl to 'news.notice', stop your feed:
115 # ctlinnd drop 'newsstats!'
117 and investigate. 'errlog' may be helpful here.
119 * You can restart the feed with
121 # ctlinnd begin 'newsstats!'
125 You should be done now.
127 Just have a look at your raw data (DBTableRaw). It should now start to