I've written the iostat standalone DSO module a while back in C. I do have the whole build process documented (to some degree) and provided template for creating standalone DSO.
I think you can search for "iostat" in the archives. If you can't find it, I'll dig it up and reply again. On Nov 11, 2009, at 9:47 AM, "Brad Nicholes" <bnicho...@novell.com> wrote: >>>> On 11/10/2009 at 8:30 PM, in message > <75fb37ae0911101930g55978c94u1a16c48fd5cc2...@mail.gmail.com>, > Sylvester Steele > <sylvesterste...@gmail.com> wrote: >> ---------- Forwarded message ---------- >> From: Sylvester Steele <sylvesterste...@gmail.com> >> Date: Tue, Nov 10, 2009 at 10:19 PM >> Subject: Re: [Ganglia-developers] Getting started with developing a >> C++ DSO module >> To: Brad Nicholes <bnicho...@novell.com> >> >> >>>> 1. Compile to .so >>>> 2. Place compiled .so in the /usr/lib/ganglia folder >>>> 3. Make appropriate changes to the gmond.conf file - so it can >>>> pickup >>>> the the new .so and the mmodule in it >>>> 4. Restart gmond >>>> >> >>> It sounds like you are trying to build your module inside of the >>> Ganglia >> build environment. Since your module isn't part of the standard >> Ganglia >> modules, you should be creating your own make file and building >> your module >> outside of the Ganglia environment as a stand-alone build. >> Unfortunately I >> don't have a good example of a stand-alone module build to point >> you to but >> there may be others that have done this in the past for a C >> module. I did >> this at one point a couple of years ago just to make sure that we had >> everything in place to build a module outside of Ganglia, but I >> can't seem to >> find the makefiles that I used. You might want to search back >> through the >> develop mailing list to see if there were discussions about this. >> I know >> that there was a module contribution about 6 months ago where they >> were >> building their own C module. The code never made it into the >> repository but >> it should still be on the mailing list somewhere. >>> >> >> Oh ok. I'll see if I can find it in the mailing list archives. Will >> the 4 steps I've listed above be enough to make Ganglia pickup my >> module and start sending the metrics? >> > > Sure. As long as gmond can find the module and load it will all > dependancies, things should be good. > > Brad > > > --- > --- > --- > --------------------------------------------------------------------- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Ganglia-developers mailing list > Ganglia-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ganglia-developers ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers