|
|
| Author |
Message |
BrianF
Joined: 18 Jul 2006 Posts: 2
|
Posted: Tue Jul 18, 2006 5:36 pm Post subject: |
|
|
Hi,
I have this working and would like the graphs to report correct info.
At the moment the game server has 6 player in and the data at the bottom is reporting.
Max Players: 14.00
Current: 6.00
Average: 4.99
Maximum: 6.00
How can I get it to show
Max Players: 14
Current: 6
Average: 4
Maximum: 6
Lose the .00 ????
Please help |
|
| Back to top |
|
 |
BrianF
Joined: 18 Jul 2006 Posts: 2
|
Posted: Tue Jul 18, 2006 5:42 pm Post subject: |
|
|
Forget last post resolved.  |
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5453 Location: Wisconsin, USA
|
Posted: Tue Jul 18, 2006 6:48 pm Post subject: |
|
|
Help other people out in the future and post what you did...  |
|
| Back to top |
|
 |
Bullitt
Joined: 25 Aug 2006 Posts: 3
|
Posted: Fri Aug 25, 2006 8:37 am Post subject: Re: My changed implementation to monitor lots of gameservers |
|
|
| hangy wrote: | 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. |
Perhaps I'm being dense. How do I specify IP/port information?
Hrrmm, I may have bigger issues. When importing the templates (per the Readme.txt) I am getting some Unmet Dependencies
importing "cacti_graph_template_game_server_status_players.xml"
| Code: |
Cacti has imported the following items:
GPRINT Preset
[success] Normal [update]
Graph Template
[success] Game Server Status - Players [new]
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (GPRINT Preset) Normal
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item) |
|
|
| Back to top |
|
 |
Bullitt
Joined: 25 Aug 2006 Posts: 3
|
Posted: Sat Aug 26, 2006 2:22 pm Post subject: |
|
|
I've gotten Hangy's templates to work now. The steps I took were as follows:
Download and install his scripts per his README.txt (I ignored the unmet dependancy issues from my prior post)
In cacti (with administrative priviledges)
1) Console -> "Data Input Methods" -> Game Server Status
a. Here, I had to change my "input string" because on my debian system, the user scripts seemed to want to be placed in "/usr/local/share/cacti/" The point is wherever you install the scripts, doublecheck your paths to the scripts here.
b. Also check the syntax of the script. It was initially "pathtoscripts/gameserver.php<game><ip><port><query_port>" Checking my logs, it was not using a whitespace between game/ip/port/queryport thus causing the php to crap out. I inserted a whitespace between the <game> <ip> <port> <query_port> thus becoming
| Code: |
gameserver.php <game> <ip> <port> <query_port> |
Of course, your scripts may not be in the same spot as my system, so modify your pathname as appropriate here.
I believe that's all I did to make mine to work. To add the graph, I had to create a "Data Source" for this.
I selected console -> Data Source -> Select host -> Add
I select "Game Server Status" from the dropdown "selected data template" menu and select the appropriate host then click "Create"
I now have a new data source for my data sources.
On the next page under "Supplemental Data Template Data" I modified this field to be my descriptor for the game. In the custom data section, I replaced warsow with my gametype (example: q3 ), filled in my IP of the game server with appropriate port
Create the Graph:
Console -> Graph Management -> Add
From the "Selected Graph Template" pick the appropriate "Game Server Status" option (I chose "Game Server Status - Players" ) click Create.
I doublecheck that I am using the appropriate templates (game server status - players, and my host), then I title my graph appropriately. I then select my max players from my datasource and my playercount from the new datasource. I click Save and wait the appropriate time for the data to populate.
I'm sorry if this was really really basic, but from the past 4 pages of posts, the majority of posters (like me) didnt have a clue and those who found a clue didnt post their steps. If my steps are confusing or need clarification, let me know, I'll try and follow this thread. |
|
| Back to top |
|
 |
Bezeker
Joined: 21 Oct 2006 Posts: 3
|
Posted: Sat Oct 21, 2006 1:57 pm Post subject: Re: My changed implementation to monitor lots of gameservers |
|
|
| hangy wrote: | 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 installed this on a windows box but can seem to get any data in the graphs. Can someone help if you tell me what info you need I will be glad to post it.
Sorry I'm new to all of this.
Thanks |
|
| Back to top |
|
 |
-SG1-Jack_O_Neill.DK
Joined: 02 Jan 2007 Posts: 2
|
Posted: Thu Jan 04, 2007 9:45 pm Post subject: |
|
|
Hi
I have created a graph as you do in this text below, but I can see the graph, but it's not updateing.
http://89.186.169.200/cacti/graph_image.php?local_graph_id=15&rra_id=0&view_type=tree&graph_start=1167878791&graph_end=1167965191
I have tryed to run:
php cmd.php
And get this error:
| Code: | 01/05/2007 03:44:35 AM - CMDPHP: Poller[0] Host[1] DS[8] WARNING: Result from CMD not valid. Partial Result: bf289.186.169.200299
01/05/2007 03:44:36 AM - CMDPHP: Poller[0] Host[1] DS[9] WARNING: Result from CMD not valid. Partial Result: bf289.186.169.200299
01/05/2007 03:44:36 AM - CMDPHP: Poller[0] Time: 0.1610 s, Theads: N/A, Hosts: 1
root@stargate:/usr/share/cacti/site#
|
Can any one help me with this?
| Bullitt wrote: | I've gotten Hangy's templates to work now. The steps I took were as follows:
Download and install his scripts per his README.txt (I ignored the unmet dependancy issues from my prior post)
In cacti (with administrative priviledges)
1) Console -> "Data Input Methods" -> Game Server Status
a. Here, I had to change my "input string" because on my debian system, the user scripts seemed to want to be placed in "/usr/local/share/cacti/" The point is wherever you install the scripts, doublecheck your paths to the scripts here.
b. Also check the syntax of the script. It was initially "pathtoscripts/gameserver.php<game><ip><port><query_port>" Checking my logs, it was not using a whitespace between game/ip/port/queryport thus causing the php to crap out. I inserted a whitespace between the <game> <ip> <port> <query_port> thus becoming
| Code: |
gameserver.php <game> <ip> <port> <query_port> |
Of course, your scripts may not be in the same spot as my system, so modify your pathname as appropriate here.
I believe that's all I did to make mine to work. To add the graph, I had to create a "Data Source" for this.
I selected console -> Data Source -> Select host -> Add
I select "Game Server Status" from the dropdown "selected data template" menu and select the appropriate host then click "Create"
I now have a new data source for my data sources.
On the next page under "Supplemental Data Template Data" I modified this field to be my descriptor for the game. In the custom data section, I replaced warsow with my gametype (example: q3 ), filled in my IP of the game server with appropriate port
Create the Graph:
Console -> Graph Management -> Add
From the "Selected Graph Template" pick the appropriate "Game Server Status" option (I chose "Game Server Status - Players" ) click Create.
I doublecheck that I am using the appropriate templates (game server status - players, and my host), then I title my graph appropriately. I then select my max players from my datasource and my playercount from the new datasource. I click Save and wait the appropriate time for the data to populate.
I'm sorry if this was really really basic, but from the past 4 pages of posts, the majority of posters (like me) didnt have a clue and those who found a clue didnt post their steps. If my steps are confusing or need clarification, let me know, I'll try and follow this thread. |
|
|
| Back to top |
|
 |
Spaz
Joined: 09 Jan 2007 Posts: 9
|
Posted: Wed Jan 10, 2007 5:12 am Post subject: |
|
|
bf2 89.186.169.200 29900
That the way that it needs to be send to the php file
| Quote: | In cacti (with administrative priviledges)
1) Console -> "Data Input Methods" -> Game Server Status
a. Here, I had to change my "input string" because on my debian system, the user scripts seemed to want to be placed in "/usr/local/share/cacti/" The point is wherever you install the scripts, doublecheck your paths to the scripts here.
b. Also check the syntax of the script. It was initially "pathtoscripts/gameserver.php<game><ip><port><query_port>" Checking my logs, it was not using a whitespace between game/ip/port/queryport thus causing the php to crap out. I inserted a whitespace between the <game> <ip> <port> <query_port> thus becoming
Code:
gameserver.php <game> <ip> <port> <query_port> |
See post bullit
The problems I have on the moment are:
teamspeak classe doesn't return count players
bf1942 dc doesn't return count & max players
stats working:
bf2
fear |
|
| Back to top |
|
 |
bbrother
Joined: 15 Apr 2007 Posts: 5 Location: Holland
|
Posted: Wed Apr 18, 2007 3:56 pm Post subject: |
|
|
Yes I have this working with an UT:GOTY server.
1 down, 2 to other servers to go
Hangy and Bullit thank you very much for your time and effort.
Bullit for your small "howto" it helped me out  |
|
| Back to top |
|
 |
Bullitt
Joined: 25 Aug 2006 Posts: 3
|
Posted: Thu Apr 19, 2007 11:32 am Post subject: |
|
|
| bbrother wrote: | Yes I have this working with an UT:GOTY server.
1 down, 2 to other servers to go
Hangy and Bullit thank you very much for your time and effort.
Bullit for your small "howto" it helped me out  |
I'm pleased that someone found it useful.
Re-reading my howto reminds me that I need to document my steps better. I'm terrible at documentation.
Hangy is "the man" I just wrote down what I did as a cacti-novice to make it work. |
|
| Back to top |
|
 |
Rittsel
Joined: 19 May 2007 Posts: 1
|
Posted: Sat May 19, 2007 12:25 pm Post subject: |
|
|
Hi! The script works like a charm.
But.. in the perl script i see that it has ability to grab map, name & ip.
I would like to use these as GPRINT on the graph but i dont understand much of the xml-files :/
Can anyone add these things or tell me how to do it manually within cacti?
Thanks |
|
| Back to top |
|
 |
Julia41
Joined: 19 Aug 2007 Posts: 3
|
Posted: Sun Aug 19, 2007 10:05 pm Post subject: |
|
|
I have a little problem with this script... It is running when I execute manually the poller.php (cactid or cmd.php). But with the poller.php in a crontab, only this graph doesn't work...
My crontab is the same command :
| Code: | | */5 * * * * /usr/share/cacti/cacti.sh |
And in my cacti.sh :
| Code: |
#!/bin/sh
/usr/share/cacti/site/poller.php # /dev/null 2>>/var/log/cacti/poller-error.log |
When I run this shell script manually, the graph update nice, but with crontab, nothing :/
I try the .sh for try to correct the problem...
My logs say a "basic" error :
| Code: |
08/19/2007 05:45:05 PM - CACTID: Poller[0] Host[18] DS[145] SCRIPT: perl /usr/share/cacti/site/scripts/hls_query.pl 91.121.25.199:27060, output: U
08/19/2007 05:45:05 PM - CACTID: Poller[0] Host[18] DS[145] WARNING: Result from SCRIPT not valid. Partial Result: ... |
But the output is correct... When I run the poller manually :/
I run Cacti Version 0.8.6j with plugin architecture 1.1
You can see my Cacti on http://cacti.fun-frags.net/graph_view.php
I apologize for my English, I'm French... Very Nice project all the Cacti Template, Script & Plugin, to be continued  |
|
| Back to top |
|
 |
sgtrock
Joined: 08 Feb 2008 Posts: 9
|
Posted: Sat Feb 09, 2008 4:16 pm Post subject: |
|
|
I'm using Hangy's zip file instead of the file linked in the first post. The first graph that I want to do is a player count for TF2 with a maximum. Here's the output from the Graph Debug:
| Quote: | RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Llama - TF2 Status" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
LINE2:#8D00BA:"Maximum Players" \
GPRINT::LAST:"Current\:%8.2lf %s\n" \
AREA:#FF0000:"Current Player Count" \
GPRINT::LAST:"Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
ERROR: parameter '#8D00BA' does not represent a number in line LINE2:#8D00BA:Maximum Players |
The output from the Data Source Debug:
| Quote: | Data Source Debug
/usr/bin/rrdtool create \
/var/www/localhost/htdocs/cacti/rra/max_players_46.rrd \
--step 300 \
DS:max_players:GAUGE:600:0:1000 \
DS:player_count:GAUGE:600:0:100 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \ |
Can anyone see anything obvious?
TIA
--
Edit. Never mind. Stupid mistake on my part. Gotta select a data source first!  |
|
| Back to top |
|
 |
Curves
Joined: 26 Apr 2008 Posts: 1
|
Posted: Sat Apr 26, 2008 3:48 am Post subject: |
|
|
| BrianF wrote: | Hi,
I have this working and would like the graphs to report correct info.
At the moment the game server has 6 player in and the data at the bottom is reporting.
Max Players: 14.00
Current: 6.00
Average: 4.99
Maximum: 6.00
How can I get it to show
Max Players: 14
Current: 6
Average: 4
Maximum: 6
Lose the .00 ????
Please help |
| BrianF wrote: | Forget last post resolved.  |
Hi,
How do you have solved this problem please ?
(iam using the hangy script)
Thx, Curves. |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|