Game Server Reporting - UT2004, QW, BF1042, BFV, COD, HL

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Alberts
Posts: 14
Joined: Sun Jan 23, 2005 11:04 am

Post by Alberts »

Come on ppl, one of u can explain what I need to do so I can add like

36 + game servers...
Alberts
Posts: 14
Joined: Sun Jan 23, 2005 11:04 am

Post by Alberts »

KICK
mindstormmaster
Posts: 6
Joined: Sat Mar 12, 2005 11:14 pm

Post by mindstormmaster »

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.
africanw
Cacti User
Posts: 130
Joined: Thu Mar 31, 2005 4:24 pm
Location: Sydney, Asutralia
Contact:

help

Post by africanw »

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.
Hi,

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?
africanw
Cacti User
Posts: 130
Joined: Thu Mar 31, 2005 4:24 pm
Location: Sydney, Asutralia
Contact:

Post by africanw »

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
africanw
Cacti User
Posts: 130
Joined: Thu Mar 31, 2005 4:24 pm
Location: Sydney, Asutralia
Contact:

Post by africanw »

Can't believe it. It now works. I switched the poller from using cactid to cmd and off it went.

Anyone else using cactid with this and working?
zlib
Posts: 2
Joined: Sun Aug 08, 2004 2:31 pm

Post by zlib »

why wont the poller create/update the rra :(
mindstormmaster
Posts: 6
Joined: Sat Mar 12, 2005 11:14 pm

Post by mindstormmaster »

You have to run the script as a user that has write permissions to the rra directory.
Herminator
Posts: 17
Joined: Mon Aug 22, 2005 11:46 am

Post by Herminator »

Is this also available by now for BF2?
xlr8or
Posts: 2
Joined: Thu Oct 20, 2005 5:27 am
Location: The Netherlands
Contact:

Post by xlr8or »

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:

Code: Select all

$response = `qstat -raw __  -ut2s $address 2>1&`;
with:

Code: Select all

$response = `qstat -raw __  -ut2s $address 2>&1`;
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.
xlr8or
Posts: 2
Joined: Thu Oct 20, 2005 5:27 am
Location: The Netherlands
Contact:

Post by xlr8or »

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.
Attachments
bf2_template_and_script.zip
(1.97 KiB) Downloaded 599 times
Chepre
Posts: 1
Joined: Fri Nov 04, 2005 5:21 pm

Post by Chepre »

the whole scripts are damn buggy.

could you guys please fix your great but buggy work! would be great! thanks
mtxd
Posts: 1
Joined: Tue Nov 08, 2005 5:46 am
Location: Lithuania

Post by mtxd »

Is this available for Quake4 for now? Would be great to have it worked :)
User avatar
SCaRaBaeuS
Posts: 22
Joined: Tue Mar 30, 2004 9:42 am

Post by SCaRaBaeuS »

Can someone please update this script? so it doesn't install the BF and that sort of "crap" games =]
I only need Halflife (source) + ut2k4 + COD(UO/2)

If someone can build it for me, that would be great!

you can leave me a line through e-mail: paul[at]mystery-land.net
hangy
Posts: 1
Joined: Mon Jul 03, 2006 4:53 pm

My changed implementation to monitor lots of gameservers.

Post by hangy »

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.
Attachments
gameserver.zip
PHP scripts, Cacti data and graph templates to monitor lots of different gameservers. :)
(132.02 KiB) Downloaded 1164 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests