>>> On 4/28/2010 at 2:39 AM, in message <1272443964.4606.4.ca...@station3.hq>, Patrick Datko <patrick.da...@ymc.ch> wrote: > Am Dienstag, den 27.04.2010, 08:22 -0600 schrieb Brad Nicholes: >> >>> On 4/27/2010 at 3:20 AM, in message > <1272360012.4619.9.ca...@station3.hq>, >> Patrick Datko <patrick.da...@ymc.ch> wrote: >> > Hey People, >> > i'm using Ganglia 3.1.2, installed with aptitude, to observe my > cluster >> > and it works without any problem. I wanted to integrate a metric > which >> > control the traffic of the several nodes, so i build a little python >> > module to check a xml-file which includes the traffic amount. I used >> > sourceforge wiki to build one. I included in my python script the 3 >> > Methods (traffic_handler, metric_init, metric_cleanup) which are >> > required of ganglia and added the following lines >> > to /etc/ganglia/gmond.conf >> > >> > module { >> > name = "traffic" >> > language = "python" >> > path = "/usr/lib/ganglia/traffic.py" >> > } >> > >> > collection_group { >> > collect_every = 10 >> > time_threshold = 50 >> > metric { >> > name = "traffic" >> > title = "Traffic" >> > value_threshold = 70 >> > } >> > } >> > >> > But if i restard gmond & gmetad the metric still not appears in the >> > webinterface of ganglia. Does anyone has a clou where the Problem is > or >> > maybe has the same Problem like me? >> > >> >> >> Have you run your module independent of gmond to make sure that it is > functioning correctly? Have you tried starting gmond with a -d 10 > command line parameter to force the debug output to the screen? This > will usually show you if there is a problem loading the module. >> >> Brad >> > Yes i tested it seperatly and it works fine, and if i use the debug flag > of gmond the following line appears: > "Unable to find the metric information for 'traffic'. Possible that the > module has not been loaded." > And i don't understand, why ganglia doesn't load the plugin!? > When i installed Ganglia from aptitude, there are no directorys like > "conf.d" or "python_modules" so i created one but the error is the same. >
Is mod_python being loaded? mod_python is the interface module between gmond and any other python module Brad ------------------------------------------------------------------------------ _______________________________________________ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general