Urban Terror Forums: server polling - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

server polling Rate Topic: -----

#1 User is offline   Langly (old) Icon

  • Joined: 09-April 04
  • Posts: 6
  • LocationLas Vegas, NV

Posted 09 April 2004 - 06:14 AM

Does anyone know a way to create a perl script/php/etc to embed in a web page to poll the status of a server?

I figured out how to get a good stats page (Unistats) working properly, but would also like to place a link on my site to let visitors see the current players, map, score, and any other useful info.

Thanks in advance for any ideas,
Langly

#2 User is offline   illogical Icon

  •   verified user   
    Retired Master Server Administrator
  • Account: illogical
  • Main tag: 6th|
  • Country:
  • Joined: 08-March 10
  • Posts: 2,349

Posted 09 April 2004 - 02:34 AM

I have a PHP script I wrote a while back that seems to be useful. You can see it in action @ http://www.you-are-terminated.com/. Let me know if you'd like it.

#3 User is offline   HoboHumpinSlut (old) Icon

  • Joined: 07-February 04
  • Posts: 2,308

Posted 09 April 2004 - 12:26 PM

have u ever hear of qstat, Langly? i dont know if its avail for windows as well, but i guess it is. its a tool to query q3 servers (and many more). it is rather easy to use it from within a perl script, but i would not query your server everytime some1 requests a webpage.

#4 User is offline   illogical Icon

  •   verified user   
    Retired Master Server Administrator
  • Account: illogical
  • Main tag: 6th|
  • Country:
  • Joined: 08-March 10
  • Posts: 2,349

Posted 09 April 2004 - 08:19 AM

I already sent him my PHP deal. You're just too slow ;-)

#5 User is offline   Aarsbuds0r (old) Icon

  • Joined: 21-January 04
  • Posts: 1,334
  • LocationNetherlands, The

Posted 09 April 2004 - 02:15 PM

The same site that has Unistats on also has a serverstatus-script.... http://balgo.net

Anywayz, Illo, I couldnt get your once to work :D Emailed you about it, but got no answer :P

bullet_loaderAdvertisement

#6 User is offline   illogical Icon

  •   verified user   
    Retired Master Server Administrator
  • Account: illogical
  • Main tag: 6th|
  • Country:
  • Joined: 08-March 10
  • Posts: 2,349

Posted 09 April 2004 - 12:18 PM

And email is the only way to contact me buds0r? Exactly...

#7 User is offline   Langly (old) Icon

  • Joined: 09-April 04
  • Posts: 6
  • LocationLas Vegas, NV

Posted 10 April 2004 - 12:03 AM

Thanks illogical for the PHP, although I couldn't get it to work after playing with it a few minutes... got this error:

Warning: socket_bind() unable to bind address [99]: Cannot assign requested address in /scic101x/www/html/sinfo/serverinfo2.php on line 52

Warning: socket_sendto() Host lookup failed [-10004]: No address associated with name in /scic101x/www/html/sinfo/serverinfo2.php on line 183

I don't know much about sockets and php, so got a little stuck there.

HOWEVER, I did get plgstats (http://balgo.net/) to work quite well...took me about 2 minutes total...just had to make sure the file was in cgi-bin. Thanks Aarsbuds0r!

The only thing that isn't quite right is that the IP listed is the LAN-side address, but if I put langly.dyndns.org as the host it finds the server but doesn't show it as an IP address on the page. (Oh well, it gets the job done though :)

Thanks again everyone!
Langly
http://langly.dyndns.org/q3ut3[/url]

#8 Guest_balgo

Posted 15 April 2004 - 05:44 PM

@Langly:

1. I'll fix the ip variable from plgstats, sorry.You can also set the colors of table and main background.
2. Your unistats engine and webinterface is very old, use the new version 0.1.5 interface / 0.1.3 engine. Check http://balgo.net for sourceforge.net link to the new files.

balgo

#9 User is offline   Langly (old) Icon

  • Joined: 09-April 04
  • Posts: 6
  • LocationLas Vegas, NV

Posted 16 April 2004 - 12:28 AM

Thanks balgo!

I'll make the changes this weekend hopefully. I got UniStats to work a while ago, and at the time was more concerned about getting it to work than making sure it was the most current version :)

Yes, it would be convenient to have the plgstats resolve the host name to IP in the interface. Granted it's functional with the host name, but would be more beneficial to see the IP.

Langly

#10 Guest_balgo

Posted 16 April 2004 - 02:46 PM

Ok, check http://balgo.net for new plgstats 0.3.3. I've also fixed your ip / hostname problem. Please test the new version.

thanks,
balgo

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Sponsored link
https://www.frozensand.com/


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942