Logging server with BZFQuery
- linuxdude2
- Private First Class
- Posts: 11
- Joined: Sat Mar 03, 2012 9:26 pm
- Location: Where my feet are
Logging server with BZFQuery
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.
Re: Logging server with BZAdmin
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.
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.
- linuxdude2
- Private First Class
- Posts: 11
- Joined: Sat Mar 03, 2012 9:26 pm
- Location: Where my feet are
Re: Logging server with BZAdmin
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??
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??
Re: Logging server with BZAdmin
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.
- linuxdude2
- Private First Class
- Posts: 11
- Joined: Sat Mar 03, 2012 9:26 pm
- Location: Where my feet are
Re: Logging server with BZAdmin
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
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
Re: Logging server with BZAdmin
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.
- linuxdude2
- Private First Class
- Posts: 11
- Joined: Sat Mar 03, 2012 9:26 pm
- Location: Where my feet are
Re: Logging server with BZAdmin
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
But I have found the file for my 2.4 installation
http://www.mediafire.com/?5wc2wabh8hfen6p
Re: Logging server with BZAdmin
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!
Good luck!
A pessimist is an optimist with experience... ;o)
- linuxdude2
- Private First Class
- Posts: 11
- Joined: Sat Mar 03, 2012 9:26 pm
- Location: Where my feet are
Re: Logging server with BZAdmin
I have it, but it doesn't work
Blank page
Blank page
Re: Logging server with BZAdmin
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.
- linuxdude2
- Private First Class
- Posts: 11
- Joined: Sat Mar 03, 2012 9:26 pm
- Location: Where my feet are
Re: Logging server with BZAdmin
Oh
I don't know much PHP code
I don't know much PHP code
Re: Logging server with BZAdmin
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.
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)
- linuxdude2
- Private First Class
- Posts: 11
- Joined: Sat Mar 03, 2012 9:26 pm
- Location: Where my feet are
Re: Logging server with BZAdmin
I know a little about PHP
But only a few commands
But only a few commands