On Sat, 2008-04-19 at 06:10 -0700, Gilad Raphaelli wrote: > Matt, > > This is really cool stuff, just a few problems actually getting it started. > It looks like I'm missing at least gmetad_dbgprint. Also, > GmetadListenSocket is trying to be imported from gmetad_socketListener > despite being in gmetad.py. Commenting these lines at least got things to > the help output: > > #from gmetad_dbgprint import dbgPrint > #from gmetad_socketListener import GmetadListenSocket
Those are artifacts, sorry, I will take care of them. > > I was only able to get things started after moving from python2.3 to > python2.5 (after making the changes above) due to some changes (?) to the > logging module. I'm fine with that but believe there were changes done to > gmond to support older python versions so I'm curious as to what direction > were you were given in that regard. Python 2.5 should not be required; I'm using Python 2.4.2. What should be the minimum supported version of Python?? > > Finally, gmetad-python does not like it when the gridname is not set throwing: > > File "/home/graph/local/src/gmetad-python/gmetad_data.py", line 44, in > generateKey > return ':'.join(vals) > TypeError: sequence item 1: expected string, NoneType found > > where vals is : ['GRID', None]. Good catch, I will fix that. > > It seems like it has started collecting metrics now. This is awesome, > awesome stuff - thanks for putting it together. > > Thank you, > > Gilad > > ----- Original Message ---- > > From: Matt Ryan <[EMAIL PROTECTED]> > > To: [email protected] > > Sent: Saturday, April 19, 2008 12:06:47 AM > > Subject: [Ganglia-developers] python gmetad > > > > Hi, > > > > Attached is a first stab at a python version of gmetad. Brad asked me > > to try rewriting gmetad in python in order to hopefully support future > > extensibility via python modules. > > > > I've included a CHANGELOG file that outlines basically what this python > > gmetad should do and what it doesn't claim to do. It is important to > > emphasize here: This is NOT yet a functional replacement for the > > current gmetad! Basically, what it WILL do is honor the current gmetad > > configuration file (at least the parts it can understand, the others are > > ignored), read gmond data, and offer the aggregated data over the XML > > (8651) and interactive (8652) ports. > > > > Some testing has been done to compare outputs from the current gmetad > > and this python gmetad. They appear to produce functionally equivalent > > XML documents, although this hasn't been extensively tested. > > > > > > What I'm Planning To Do: > > The next thing I'm planning to work on is the summary capability on the > > interactive port. When that is done we should be able to test this new > > gmetad by running it side-by-side with the current gmetad, letting the > > current gmetad generate the RRD files, and the new one respond on 8652 > > to web front end queries. In other words, see if the web front end will > > still work with the python gmetad in there. > > After that I'll probably start working on an RRD module. The goal is to > > drive first toward something that has the same functionality as the > > existing gmetad, then start looking at ways to enhance. > > > > I've also got a test engineer on my team who thinks he's going to have > > some free cycles, so hopefully he will be able to create and submit some > > more test scripts. > > > > Of course, the other thing I have to do is fix the bugs that all of you > > are going to file on it. :) > > > > > > What I'm Asking You To Do: > > - If this is of interest to the Ganglia project at all, I'd sure like to > > have it checked in if possible. Probably a discussion needs to take > > place as to where it should go. I don't think it should replace the > > current gmetad, so putting it in that directory seems wrong IMO. Maybe > > a new directory under monitor-core called gmetad-python or something? > > Anyway, if we can resolve where to put it, and if the project wants it, > > then it would be great to get it checked in, so I don't lose the work. > > - Take a look at it and try it out in a safe place. Poke around at it > > and find bugs. > > - Anything else that comes to mind. > > > > > > Installing this is easy. Just put all the files in the same directory, > > then run "python ./gmetad.py". You can add a --help at the end to show > > usage information. > > > > > > > > Please let me know what you think. > > > > -- > > Matt Ryan > > Sr. Software Engineer > > Novell, Inc. > > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Ganglia-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ganglia-developers
