Page 1 of 1

UO Gateway Poller, and possible desktop app

Posted: Sat Oct 15, 2011 12:19 am
by Red Squirrel
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. 

Archived topic from UOG, old topic ID:5, old post ID:6

Re: UO Gateway Poller, and possible desktop app

Posted: Sun Oct 30, 2011 12:52 am
by Red Squirrel
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. 

Archived topic from UOG, old topic ID:5, old post ID:7

Re: UO Gateway Poller, and possible desktop app

Posted: Sat Nov 12, 2011 3:34 pm
by Red Squirrel
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.

Archived topic from UOG, old topic ID:5, old post ID:14

Re: UO Gateway Poller, and possible desktop app

Posted: Wed Jan 04, 2012 5:36 pm
by Red Squirrel
I did not forget about this, I've just been really busy IRL with other stuff. 

Archived topic from UOG, old topic ID:5, old post ID:25

Re: UO Gateway Poller, and possible desktop app

Posted: Thu Apr 26, 2012 10:52 pm
by Red Squirrel
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.

Archived topic from UOG, old topic ID:5, old post ID:39

Re: UO Gateway Poller, and possible desktop app

Posted: Thu Feb 14, 2013 3:38 am
by Red Squirrel
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. 

Archived topic from UOG, old topic ID:5, old post ID:109

Re: UO Gateway Poller, and possible desktop app

Posted: Fri Feb 15, 2013 8:14 pm
by Soulless_ug
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!

Archived topic from UOG, old topic ID:5, old post ID:114