4. Statistics

NNTPSwitch can create two kind of statistics. A detailed usage report of the server is created everyday. Also realtime profile usage statistics are available using rrd.

4.1. Daily Usage Reports

Daily usage reports are usually generated from the nsstats.sh shell script every night. However you might create intermediate reports using a command like this:

nsstats.pl -d /html/www/dir < news.debug

Statistics are normally generated from the nsstats.sh maintenance script. The news.debug log can get rather large on bigger sites, to make sure not too much is beeing logged, turn LogCommands, LogWriteclient, LogReadserver and LogWriteserver off.

4.2. RRD Statistics

Realtime RRD profile usage statistics can be plotted using RRDBrowse. You should use RRDBrowse 1.7 or one of the latest cvs versions for it to work.

Your RRD host should have stats access in an ACL, for example:

192.168.1.1/32  read,post,stats

For each profile you should create 3 nfo files. One for the number of active/connected users and connections, one for the bandwidth and one for the number of articles per second.

Example of Users nfo:

Type: ntsprofile
Target: 119@your.server
Profile: default
Description: Default Profile Users

Example of Bandwidth nfo:

Type: ntsprofbw
Target: 119@your.server
Profile: default
Description: Default Profile Bandwidth

Example of Articles nfo:

Type: ntsprofarts
Target: 119@your.server
Profile: default
Description: Default Profile Articles per Second

RRDBrowse is available at rrdbrowse.org. See the RRDBrowse Readme or RRDBrowse Modules Readme for more details on RRDBrowse.