On Wed, Mar 19, 2008 at 09:11:28AM -0600, Brad Nicholes wrote:
> Carlo,
> Params is actually a valid configuration directive. There are two ways to
> pass in parameters into a gmond module. One way is to use a raw string with
> the Params directive (mod_python uses this for the module path string) and
> the other way is to use the Param name/value block for individual parameters.
> The documentation needs to be reverted to show the Params directive.
Params is a valid token for module, but it was used as a token for pymodule
here (where it is apparently invalid) resulting in :
no such option 'params'
Parse error for '/etc/ganglia/gmond.conf'
using libconfuse 2.5 as provided by the system and a modified example.pyconf
to match the instructions which I thought where probably outdated.
# head /etc/ganglia/conf.d/example.pyconf
modules {
pymodule {
name = "example"
params = "Raw string parameter"
param RandomMax {
value = 600
}
param ConstantValue {
value = 112
}
I agree it probably makes sense to be able to use 'params' in both cases but
if that should be working now then we have a bug to fix before reverting the
documentation.
Carlo
PS. the documentation for configuring python modules might make more sense in
a README in python_modules IMHO, modules/python being a better place about
"python_module" and its configuration.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers