Live Stats
From PsychoWiki
This guide will help you implement live stats on your servers, note this is very beta part of psycho stats, almost alpha. So do this at your own risk.
This feature is completely unsupported a this time --Stormtrooper 11:55, 15 April 2007 (CDT)
Contents |
[edit] CS Server Configurations
In server.cfg, you need to configure this where the IP is the ip of the server running "stats.pl" and the port should be the port you wish to receive the information on.
logaddress <ip> <port>
[edit] Configuring the DB server
In the ACP you need configure the Logsources to look like this and the port needs to be the same as the port your configured for the logaddress command.
stream://localhost:port
Now to run "stats.pl" you need to set it so it can run continuously
[edit] Linux
For linux once this command is run stats.pl does not need to be run again as when you put the & it pushes the process to the background and it keeps running. So DO NOT this is as a cron job.
./stats.pl -q &
[edit] Windows
I'm afraid i'm not sure how to make something run in the background for windows.
make a shortcut where you type: c:\perl\bin\wperl.exe "your path to stats.pl"\stats.pl, then it will run in the backround
[edit] Caveat
Only a single logsource can be configured when using a 'stream'. Mulitple servers can stream to the same IP:Port, however it's currently untested and I'm not sure what will actually happen with certain stats under certain circumstances. Use at your own risk --Stormtrooper 11:58, 15 April 2007 (CDT)