Would Server Admins Use This?

BytorBytor Join Date: 2002-11-19 Member: 9323Members
<div class="IPBDescription">Player count graphs for your NS servers</div> Heya ... this post is directed specifically at NS server operators.

I've been toying with the idea of creating a set of scripts that would allow server operators to log into my site, enter IP/port information for an NS server (or several) and then be able to access graphs showing the number of players on their server(s) over time. It would probably also show the server name, current map, etc. but the main function would be the simple player count graphs.

<a href='http://www.metacraft.com/mrtg/nsplayers.html' target='_blank'>An example of the graphs</a> (kinda boring, since it's graphing my passworded server which is only used for small pickups and playtesting new maps.)

I mainly want to set this up just for the fun of it. I dunno how useful it would really be for anyone, but I thought I'd get some feedback before I started. I haven't fully thought it through yet, and I dunno if I'll allow off-site linking to the images (so that server ops could embed the graphs in their own web sites) but we'll see. I'll definitely be limiting it to NS servers only, not just any HL or HL mod. That could just put too much of a load on my web server, eventually.

Thoughts?

Comments

  • BioHazardBioHazard Join Date: 2002-11-07 Member: 7495Members
    i like it.. how often would it hit the server and how much bandwidth per hit to the game server? is it done by log parsing?
  • BytorBytor Join Date: 2002-11-19 Member: 9323Members
    It would hit each game server once every 5 minutes. The bandwidth hit would be exactly the same as something like All Seeing Eye or any other server list tool. It's a single UDP packet with maybe a couple hundred bytes of information returned from the server. The servers would never notice.

    It's done using the standard HL query protocol, which is a single UDP packet with a "command" in it such as "info". The server responds with another UDP packet that has various information such as the mod, number of players, max players, if it's passworded, the server name, and a couple other bits of data. So, the graphing tool I'm proposing would work on any server, not just ones that gave me access to logs or anything like that.
  • GoleXGoleX Join Date: 2002-11-07 Member: 7681Members
    I would love it <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' valign='absmiddle' alt='wink.gif'><!--endemo-->
  • zaikozaiko Join Date: 2002-11-23 Member: 9716Members
    nice idea,
    go for it! <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
  • r3v0luti0nr3v0luti0n Join Date: 2002-12-11 Member: 10528Members
    what OS do you need? that looks like one of those linux program's generated graphs..
  • BrutusBrutus Join Date: 2002-10-20 Member: 1555Members
    It looks like it is using MRTG (Multi Router Traffic Grapher). Nice if you could do this for everyone though.
  • BytorBytor Join Date: 2002-11-19 Member: 9323Members
    <!--QuoteBegin--r3v0luti0n+Jan 9 2003, 02:57 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (r3v0luti0n @ Jan 9 2003, 02:57 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->what OS do you need? that looks like one of those linux program's generated graphs..<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Any o/s with a web browser. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo--> It would be web based, run entirely on my server, so it requires no installation on your end. You would just come to my site, enter in the IPs of your server(s) and that's it. There would be a user name/password assigned to you so you could manage your server list over time.

    I use MRTG now, but I will probably switch to RRDTool so that I have more options for combining multiple servers onto one graph, etc.
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    *bump*

    whats going on with this? you still going to do it?
  • BytorBytor Join Date: 2002-11-19 Member: 9323Members
    Yup, maybe not right away, but within a few weeks.
  • playerhaterplayerhater Join Date: 2002-11-13 Member: 8405Members
    I used to graph players connected to the server using MRTG via the q3 pluggin. It was neat for awhile but decided that it wasnt very neat later. Good idea to set it up on your server for everyone. Now I just have MRTG watch my ethernet interface. I can get a pretty good idea of howmany players are connected by the amount of traffic flowing in and out eth interface.

    Like I said, it is a good idea, but I would use RRDtool so that your server is not creating hundreds of graphs every five minutes. (depending on how many servers you service. Or, at least run your MRTG configs as deamons.


    MRTG rocks!
  • sh1nysh1ny Join Date: 2002-11-02 Member: 3880Members
    just two links from me...
    ill let you discover the rest <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->

    <a href='http://gold.ma3x.net/uglygs/' target='_blank'>http://gold.ma3x.net/uglygs/</a>

    <a href='http://uglygs.uglypunk.com/' target='_blank'>http://uglygs.uglypunk.com/</a>

    use it <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • BytorBytor Join Date: 2002-11-19 Member: 9323Members
    sh1ny, not sure why you posted those links ...

    playerhater, yeah, I'm probably going to use RRDTool so that I can graph directly from mySQL data which I will collect separately from one main daemon, probably written in perl. MRTG would probably work fine, but I'd eventually end up with a lot of process thrashing as it fired up the query script every 5 minutes for each server I query.

    So I'm going to have one master daemon running the queries and storing the results in the database, then use RRDTool to update the graphs every 5 minutes. Using RRDTool may also open up other possibilities like graphing multiple servers on one graph.
  • sh1nysh1ny Join Date: 2002-11-02 Member: 3880Members
    Well i posted them because :
    Uglygs is a tool that is in it's dev phase (it's growing, adding new feat. etc.) and the things you try to do with mtrg (and with mrtg looks ugly <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' valign='absmiddle' alt='tounge.gif'><!--endemo--> ) are easy done with that tool.
    I posted links to the tools homepage and to a example page using it (that page is acutally list of my servers <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' valign='absmiddle' alt='tounge.gif'><!--endemo--> )
    The tool is easy to install, uses qstat, supports a big number of games (almost all that qstat supports) and you can create a nice server stats page in just a few minutes <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • BytorBytor Join Date: 2002-11-19 Member: 9323Members
    edited January 2003
    I'm aware that there are many server stats packages out there already. What I'm doing is different. I'm setting up a site where server admins can log in and add/remove servers from a list, and my system will generate graphs for their servers, which they can view from my server. This prevents anyone from having to install any software or even know any HTML. They just log in, plug in their server IPs, and my system does the rest. (Also, as I said in a reply, I'm using RRDTool, not MRTG.)

    (Maybe the software you mention has the same ability for multiple users to manage multiple servers via a web interface, but it doesn't appear to at first glance. At any rate, as I mentioned, I want to code this myself so that it ends up exactly the way I want it.)
  • sh1nysh1ny Join Date: 2002-11-02 Member: 3880Members
    Well if you know a little php this could be done easy with uglygs, since it uses a txt file to store the adresses of the servers to scan.
    I didn't want to sound rude or anything else i was just trying to help <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' valign='absmiddle' alt='biggrin.gif'><!--endemo-->
  • BytorBytor Join Date: 2002-11-19 Member: 9323Members
    That would end up being more work. "uglygs" serves a different purpose, and modifying it to do what I'm looking for would be more work than starting from scratch, at least for me. Besides, half the fun is writing the code. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    how is it comming btw?
  • BytorBytor Join Date: 2002-11-19 Member: 9323Members
    Haven't even started yet. I'm not going to work on it until I'm done with another PHP project I'm on right now. The one I'm on now is a paying job, puts food on the table, etc, so it gets first priority. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • UgLyPuNkUgLyPuNk Join Date: 2002-11-03 Member: 6530Members
    I like UgLygs

    i think the guy who wrote it is a legend <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->

    u can make mrtg poll the server quite easily
    but it is limited in what u can do after that

    Uglygs can do much much much more then that
    and the new version will do other funky stuff too

    Anyway good luck with ur proggy (i like programming too)

    UgLy
  • BytorBytor Join Date: 2002-11-19 Member: 9323Members
    Sure would be great if you and your friend would stop trying to hijack my thread by posting about some program that doesn't even serve the same purpose.
  • UgLyPuNkUgLyPuNk Join Date: 2002-11-03 Member: 6530Members
    Actually i don't know who the other guy is
    i think he just is one of many using my software

    im not trying to hijack the thread
    i say good on u and good luck on your script
Sign In or Register to comment.