Author Topic: UO Gateway Poller, and possible desktop app  (Read 18655 times)

Red Squirrel

  • Administrator
  • Seeker
  • *****
  • Posts: 184
  • Karma: +4/-0
    • Age of Valor free UO Shard
UO Gateway Poller, and possible desktop app
« on: October 15, 2011, 12:19:13 AM »
Just to keep everyone in the loop, I am currently working on enhancing the polling app.  It was actually quickly thrown together originally and does not use multithreading.  When a shard is down the poller falls behind and it often happens that not all shards get polled within the 300 second period.  Once I fix that, I also want to make better graphs, as well as better status buttons.  Perhaps a few so shard owners can choose the one they want.

Once the poller has been rewritten and that part is more enhanced, I am thinking of possibly writing a desktop app.  I am not too knowledgeable with reverse engineering so doing the encryption thing is not a possibility for me, however with Razor we don't really have to worry about that.  So instead I will concentrate on making a patch management system.  TBH I'm not that familiar with how UOG or ConnectUO handled this, so I'm open to suggestions on how the app should handle patches.

What I have in mind is shard owners would have to upload their UO directory to their server and each file would have a MD5 checksum file associated with it.  When a user connects, an MD5 check would be done on each of their client files (if the file exists on the shard's url).  If there are differences a new directory would be created for that shard, and the proper files would be downloaded and the rest copied.  A master MD5 would also be available so any further connections would be fast.  It would basically tell razor where to load the client from.    The UOG client would provide an easy way for shard admins to generate this folder for their website.

Keep in mind the client is just a "possible" thing at this point though, as I am busy with other projects.  If there's enough demand for it, then I may do it. 

Red Squirrel

  • Administrator
  • Seeker
  • *****
  • Posts: 184
  • Karma: +4/-0
    • Age of Valor free UO Shard
Re: UO Gateway Poller, and possible desktop app
« Reply #1 on: October 30, 2011, 12:52:19 AM »
This is going fairly smooth.  I do have a random crash issue I'm trying to fix.  Seems to be related to multithreading but it's a tough one to find, as usual, when it comes to multithreading.  I'm sure I'll find it though.

Also, another feature I am adding is the ability to receive emails.  The poller will send emails under these conditions:

- If a shard has been offline for too long, it is deactivated
- If a shard that has been deactivated returns online (it's not guarantee that it even gets polled, but it may)
- If you have turned monitoring on (will be off by default) and the shard goes online or offline

I had previously coded the email part, but had turned it off since I did not want false positives to be generated when I am working in my dev environment, but I added a flag to turn it off in this case. 

Red Squirrel

  • Administrator
  • Seeker
  • *****
  • Posts: 184
  • Karma: +4/-0
    • Age of Valor free UO Shard
Re: UO Gateway Poller, and possible desktop app
« Reply #2 on: November 12, 2011, 03:34:11 PM »
Just an update:

I still cannot figure out the random crash issue.  Suspecting it has to do with the pngwriter library I am using for the graphs.  I will be reading up on how to code with libpng directly, and write a wrapper class which I can then use.   The other crashes seem to have been solved.  Once I figure out the last crash I will do a final test on my local server for a week or so then release it.  The only difference to really expect is the graphs might be redesigned and made to look nicer.  Same with the "online" status buttons.  I will also offer more choices.

I have started putting more attention towards my shard, but I will be turning my attention back to this project probably after Christmas.  I'm kind of back and forth between the two.

Red Squirrel

  • Administrator
  • Seeker
  • *****
  • Posts: 184
  • Karma: +4/-0
    • Age of Valor free UO Shard
Re: UO Gateway Poller, and possible desktop app
« Reply #3 on: January 04, 2012, 05:36:13 PM »
I did not forget about this, I've just been really busy IRL with other stuff. 

Red Squirrel

  • Administrator
  • Seeker
  • *****
  • Posts: 184
  • Karma: +4/-0
    • Age of Valor free UO Shard
Re: UO Gateway Poller, and possible desktop app
« Reply #4 on: April 26, 2012, 10:52:24 PM »
I think I ruled out the random crash issue to be the pngwriter library.  I will look at rewriting the graph generation without using it.  I'll probably end up writing my own library based on libpng.  Hopefully it was not actually libpng crashing, but I doubt it, it's a fairly well known/used library.

Red Squirrel

  • Administrator
  • Seeker
  • *****
  • Posts: 184
  • Karma: +4/-0
    • Age of Valor free UO Shard
Re: UO Gateway Poller, and possible desktop app
« Reply #5 on: February 14, 2013, 03:38:01 AM »
Yeah yeah, I know, I still did not look at this and still did not update the poller.  ;D  Been busy with stuff...  It's on my mind, it might be on the back of my mind, but it's on my mind.  It will be done. Eventually.

I think what I will end up doing is reading up on RRDtool and just use that. 

Soulless

  • Noob
  • *
  • Posts: 13
  • Karma: +0/-0
Re: UO Gateway Poller, and possible desktop app
« Reply #6 on: February 15, 2013, 08:14:45 PM »
Wanted to say thanks for all your hard work Red! can't wait to see a UOG tool back in the UO free server community. It was the butter for our bread, and the bread has been bland without it!

Thanks!

 


This website and service is non profit other than the little revenue received through ads.
Donations are appreciated to help keep this service going.