Game Server Reporting - UT2004, QW, BF1042, BFV, COD, HL
Moderators: Developers, Moderators
-
- Posts: 6
- Joined: Sat Mar 12, 2005 11:14 pm
Install qstat. (emerge qstat on Gentoo)
Download zip file with scripts and xml templates from page 1 of this thread.
Copy scripts (.pl, .php) to the scripts directory of cacti.
Make the scripts executable. (chmod a+x)
Import xml templates through Cacti's "Import Template" feature.
Add servers to monitor.
Download zip file with scripts and xml templates from page 1 of this thread.
Copy scripts (.pl, .php) to the scripts directory of cacti.
Make the scripts executable. (chmod a+x)
Import xml templates through Cacti's "Import Template" feature.
Add servers to monitor.
-
- Cacti User
- Posts: 130
- Joined: Thu Mar 31, 2005 4:24 pm
- Location: Sydney, Asutralia
- Contact:
help
Hi,mindstormmaster wrote:Install qstat. (emerge qstat on Gentoo)
Download zip file with scripts and xml templates from page 1 of this thread.
Copy scripts (.pl, .php) to the scripts directory of cacti.
Make the scripts executable. (chmod a+x)
Import xml templates through Cacti's "Import Template" feature.
Add servers to monitor.
Thanks for the instrustions but need abit more help. The files called "cacti_graph_template_players_per_game_server.xml", If you import this file it has references to Half life in it. Do you have to modify this file with lets say Call of duty information and import that to make it work for COD? Or am I missing something here??
All I am trying to do is to get it to work for Call of duty at the moment/
Also has anyone got this to work for games like Raven Shield/Joint Operations or Black Hawk Down?
-
- Cacti User
- Posts: 130
- Joined: Thu Mar 31, 2005 4:24 pm
- Location: Sydney, Asutralia
- Contact:
If I use the players per game server template or the game server template I seem to the get the same error.
04/01/2005 01:57:39 PM - CACTID: Poller[0] Host[7] WARNING: Result from SCRIPT not valid. Partial Result: player_count:0 max_p...
04/01/2005 01:57:39 PM - CACTID: Poller[0] Host[7] SCRIPT: perl /var/www/html/graphs.dodgynet.it/scripts/cod_query.pl 212.42.13.71:28960, output: U
04/01/2005 01:57:39 PM - CACTID: Poller[0] Host[7] WARNING: Result from SCRIPT not valid. Partial Result: player_count: max_pl...
But if I run the above command from the linux command line I get a prober results --
/var/www/html/graphs.dodgynet.it/scripts/cod_query.pl 212.42.13.71:28960
player_count:0 max_players:26
Anyone have any ideas what I am doing wrong?
Thanks
Grant
04/01/2005 01:57:39 PM - CACTID: Poller[0] Host[7] WARNING: Result from SCRIPT not valid. Partial Result: player_count:0 max_p...
04/01/2005 01:57:39 PM - CACTID: Poller[0] Host[7] SCRIPT: perl /var/www/html/graphs.dodgynet.it/scripts/cod_query.pl 212.42.13.71:28960, output: U
04/01/2005 01:57:39 PM - CACTID: Poller[0] Host[7] WARNING: Result from SCRIPT not valid. Partial Result: player_count: max_pl...
But if I run the above command from the linux command line I get a prober results --
/var/www/html/graphs.dodgynet.it/scripts/cod_query.pl 212.42.13.71:28960
player_count:0 max_players:26
Anyone have any ideas what I am doing wrong?
Thanks
Grant
-
- Posts: 6
- Joined: Sat Mar 12, 2005 11:14 pm
Found an error in both cod_query.pl and ut2004_query.pl
This will get rid of the 'permission denied' error for folks running cacti as eg. nobody
In 'ut2004_query.pl' replace next line:
with:
There is a similar line in cod_query.pl where by mistyping the ampersand the script wants to write output into a file... switching the '&' and the '1' will fix this error.
Another note: Debian users can install qstat with 'apt-get install qstat'. However, in the debian package the qstat executable was renamed to 'quakestat' (conflict?) so the qstat command in the scripts should be changed into quakestat.
This will get rid of the 'permission denied' error for folks running cacti as eg. nobody
In 'ut2004_query.pl' replace next line:
Code: Select all
$response = `qstat -raw __ -ut2s $address 2>1&`;
Code: Select all
$response = `qstat -raw __ -ut2s $address 2>&1`;
Another note: Debian users can install qstat with 'apt-get install qstat'. However, in the debian package the qstat executable was renamed to 'quakestat' (conflict?) so the qstat command in the scripts should be changed into quakestat.
Here's the addon for BF2 (and demo) servers. You must already have installed the templates from the first post in this topic! This is only the BF2 data-source template and script.
- Unzip the xml and import it in cacti
- Unzip the .php and put it in your cacti/scripts/ directory.
(Use the address of the server and the gamespy query port like this:
123.123.123.123:29900
Not 127.0.0.1 or the gameport 16567! )
Make sure the php script is executable by cacti.
- Unzip the xml and import it in cacti
- Unzip the .php and put it in your cacti/scripts/ directory.
(Use the address of the server and the gamespy query port like this:
123.123.123.123:29900
Not 127.0.0.1 or the gameport 16567! )
Make sure the php script is executable by cacti.
- Attachments
-
- bf2_template_and_script.zip
- (1.97 KiB) Downloaded 599 times
- SCaRaBaeuS
- Posts: 22
- Joined: Tue Mar 30, 2004 9:42 am
My changed implementation to monitor lots of gameservers.
Hi all,
I took this nice idea and created a new implementation which supports more games.
For information, installation instructions, license and a list of supported games, please see the README.txt included in the archive.
I took this nice idea and created a new implementation which supports more games.
For information, installation instructions, license and a list of supported games, please see the README.txt included in the archive.
- Attachments
-
- gameserver.zip
- PHP scripts, Cacti data and graph templates to monitor lots of different gameservers. :)
- (132.02 KiB) Downloaded 1164 times
Who is online
Users browsing this forum: No registered users and 0 guests