>>> On 8/12/2008 at 3:03 PM, in message <[EMAIL PROTECTED]>, "Sid Stuart" <[EMAIL PROTECTED]> wrote: > Hi, > > I have written a small Python metric module that contains one metric, > CacheHits. When the module is included in the configuration, gmond spits out > the following error message, > > Unable to collect metric 'CacheHits' on this platform. Exiting. > > As far as I can tell, gmond is parsing the configuration file and accepting > the data in it, but cannot seem to find/run the handler for the metric. I > have compiled and run the Python module and it works standalone. Is there > any way to get gmond to provide more detail on what is failing? >
After fixing a tabbing bug in your cacheHits() function, everything loaded fine and the callback function was called as it should be. The callback didn't actually work on my system, but that is a different problem. Make sure that you don't have any python syntax errors in your module. Otherwise the module won't load. Brad ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general