Help understanding using a PHP script & graph output

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
Bezeker
Posts: 3
Joined: Sat Oct 21, 2006 1:50 pm

Help understanding using a PHP script & graph output

Post by Bezeker »

Hi all

I'm new to all this so any help will be appretiated.

I have a php script I run which outputs the following:
C:\web\cacti\scripts>php c:\web\cacti\scripts\gameserver.php hl2 196.24.9.35 27015
X-Powered-By: PHP/4.4.2
Content-type: text/html

player_count:21 max_players:21
C:\

I'm trying to grab the player_count & max_player count values but dont understand how to do this. I dont understand how to tell cacti to read these vaules and to graph them. A simple explenation on how this is done would be greatly apprectiated.

Debuging gives me this:
CMDPHP: Poller[0] Host[8] DS[20] WARNING: Result from CMD not valid. Partial Result: X-Powered-By: PHP/4.
CMDPHP: Poller[0] Host[8] DS[20] CMD: php c:\web\cacti\scripts\gameserver.php hl2 196.24.9.35 27015 , output: U
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest