Logging server with BZFQuery

Place for people to discuss public servers, and also for admins to lay out the details of their servers
Post Reply
User avatar
linuxdude2
Private First Class
Private First Class
Posts: 11
Joined: Sat Mar 03, 2012 9:26 pm
Location: Where my feet are

Logging server with BZFQuery

Post by linuxdude2 » Wed Mar 21, 2012 9:04 pm

How do I log my server with BZAdmin??
Last edited by linuxdude2 on Fri Mar 23, 2012 7:12 pm, edited 1 time in total.
My BZFlag server: linuxdude.no-ip.org:5154
My server: http://linuxdude.no-ip.org

Image

Image

User avatar
blast
General
General
Posts: 4736
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Logging server with BZAdmin

Post by blast » Wed Mar 21, 2012 9:36 pm

You don't, because that would be silly. BZAdmin is not a stable/efficient program.

What you should do is log using bzfs itself. There is either the debug levels (-d or -dd work for most servers) or the logDetail plugin (-loadplugin logDetail). After that, it's just a matter of redirecting output to a log file.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
linuxdude2
Private First Class
Private First Class
Posts: 11
Joined: Sat Mar 03, 2012 9:26 pm
Location: Where my feet are

Re: Logging server with BZAdmin

Post by linuxdude2 » Wed Mar 21, 2012 10:53 pm

I don't think I phrased my question correctly

How do I create a page like:
http://www.guleague.org/Servertracker/

It seems that BZAdmin pulls the info for that page

How do I do that??
My BZFlag server: linuxdude.no-ip.org:5154
My server: http://linuxdude.no-ip.org

Image

Image

User avatar
blast
General
General
Posts: 4736
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Logging server with BZAdmin

Post by blast » Wed Mar 21, 2012 11:12 pm

BZAdmin has nothing to do with that page. That's generated by a PHP script that queries the servers over a TCP socket. There's sample query functions located in the BZFlag source somewhere within the misc/ directory. Look for bzfquery. Beyond that, you'll have to set up a database or some way of generating a static HTML page periodically.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
linuxdude2
Private First Class
Private First Class
Posts: 11
Joined: Sat Mar 03, 2012 9:26 pm
Location: Where my feet are

Re: Logging server with BZAdmin

Post by linuxdude2 » Thu Mar 22, 2012 9:37 am

Ok
What's the PHP code??

It would make me really glad to be able to set up a page like that


EDIT:
http://www.koders.com/php/fid1AC7E95B9C ... px?s=open2
My BZFlag server: linuxdude.no-ip.org:5154
My server: http://linuxdude.no-ip.org

Image

Image

User avatar
blast
General
General
Posts: 4736
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Logging server with BZAdmin

Post by blast » Thu Mar 22, 2012 10:56 am

Dude, can't you find a file on your computer? Really. Just do what I said. That version you linked to will only work with 1.10 and 2.0 servers. You want the one in the 2.4 source code.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
linuxdude2
Private First Class
Private First Class
Posts: 11
Joined: Sat Mar 03, 2012 9:26 pm
Location: Where my feet are

Re: Logging server with BZAdmin

Post by linuxdude2 » Thu Mar 22, 2012 8:12 pm

I'm running this with a 2.0 server
But I have found the file for my 2.4 installation
http://www.mediafire.com/?5wc2wabh8hfen6p
My BZFlag server: linuxdude.no-ip.org:5154
My server: http://linuxdude.no-ip.org

Image

Image

User avatar
strayer
Sergeant Major
Sergeant Major
Posts: 191
Joined: Sat May 24, 2003 3:54 pm
Location: Germany
Contact:

Re: Logging server with BZAdmin

Post by strayer » Thu Mar 22, 2012 8:20 pm

linuxdude2, you should really do some more research. Check BZFlag's SourceForge page, download the source and have a look into the misc folder like blast told you. In "bzflag/bzflag/misc/" you'll find a set of more or less useful scripts. Most important for you are the scripts starting with "bzfquery". Try them on your server and see what happens and make your decision whether investing time into your plan (querying your server) is worth the work you have to put into it.
Good luck!
A pessimist is an optimist with experience... ;o)

User avatar
linuxdude2
Private First Class
Private First Class
Posts: 11
Joined: Sat Mar 03, 2012 9:26 pm
Location: Where my feet are

Re: Logging server with BZAdmin

Post by linuxdude2 » Thu Mar 22, 2012 10:43 pm

I have it, but it doesn't work
Blank page
My BZFlag server: linuxdude.no-ip.org:5154
My server: http://linuxdude.no-ip.org

Image

Image

User avatar
blast
General
General
Posts: 4736
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Logging server with BZAdmin

Post by blast » Fri Mar 23, 2012 2:04 am

It's not set up to just run. It's a PHP function. You have to write code that actually calls it and utilizes the data it returns. There is not a "drop in" script that does what you want.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
linuxdude2
Private First Class
Private First Class
Posts: 11
Joined: Sat Mar 03, 2012 9:26 pm
Location: Where my feet are

Re: Logging server with BZAdmin

Post by linuxdude2 » Fri Mar 23, 2012 11:14 am

Oh
I don't know much PHP code
My BZFlag server: linuxdude.no-ip.org:5154
My server: http://linuxdude.no-ip.org

Image

Image

User avatar
strayer
Sergeant Major
Sergeant Major
Posts: 191
Joined: Sat May 24, 2003 3:54 pm
Location: Germany
Contact:

Re: Logging server with BZAdmin

Post by strayer » Fri Mar 23, 2012 1:26 pm

No problem...you still can choose between Perl and Python. ;)

Seriously, you obviously don't have any knowledge of (script) programming. I suggest learning the basics before you proceed with querying BZFlag servers. There are a lot of beginner tutorials (PHP, Perl, Python) in the internet.
A pessimist is an optimist with experience... ;o)

User avatar
linuxdude2
Private First Class
Private First Class
Posts: 11
Joined: Sat Mar 03, 2012 9:26 pm
Location: Where my feet are

Re: Logging server with BZAdmin

Post by linuxdude2 » Fri Mar 23, 2012 7:11 pm

I know a little about PHP
But only a few commands
My BZFlag server: linuxdude.no-ip.org:5154
My server: http://linuxdude.no-ip.org

Image

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest