Hi Dave:
On Fri, Sep 17, 2010 at 9:41 PM, Dave Josephsen <[email protected]> wrote:
> I'm using a source-based distro called SourceMage GNU Linux, which is what
> most of our productions servers are running. Various library versions follow:
>
> Ganglia-3.1.7
Did you actually create a "package" for Ganglia?
> First, since you seem to be getting procps related errors, below is a small
> test program I wrote that uses procps to output the number of bash processes
> running on your system. This was the proof of concept from which the
> count_procs function in the module was derived, and it should confirm that
> the module's procps code is functional on your system. I'd be curious to see
> if it compiles/runs for you.
I was able to compile and run it, but it returns 0 even though I have
a couple of bash processes running. Any ideas?
> Second, I wonder, did you add a 'ProcessNames' parameter to the module
> configuration in your gmond.conf? I doubt, in it's current state, that this
> module will handle a NULL processNames variable gracefully. In fact, I'd
> fully expect it to crash and/or do other weird things since I'm calling
> strtok() on the processNames variable, without checking for nulls etc. The
> module configuration in gmond.conf should look something like the following
> (sorry, I should have mentioned that in my initial mail):
>
> module {
> name = "cp_module"
> path = "modcprocs.so"
> Param ProcessNames {
> Value = "httpd"
> }
> }
I haven't modified my gmond.conf yet as I was just trying to get the
code compiled and running first.
> Finally, do you see anything obviously wrong with my use of apr_array_push?
I'm not really an expert on apr, that's why I was just trying to
reproduce your segfault and see if I can figure something out.
Perhaps Brad has some ideas since he's our resident apr guru :)
Cheers,
Bernard
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general