Statistics¶
Gathering Statistics¶
NNTPSwitch can create two kind of statistics. A detailed usage report of the server is created every day from the maintenance scripts. Also realtime profile usage statistics are available using rrd.
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.notice
High volume sites can generate a lot of logging overhead. You can tune the following options in nntpswitch.conf: LogCommands, LogWriteclient, LogReadserver and LogWriteserver.
RRD Statistics¶
RRD statistics by using RRDBrowse is unsupported as of January 2008 but the documentation is still listed here for reference.
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