Re: [Ganglia-general] Debugging Gmond Python Metric Module

2008-08-13 Thread Sid Stuart
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.

Re: [Ganglia-general] Debugging Gmond Python Metric Module

2008-08-13 Thread Brad Nicholes
On 8/13/2008 at 10:42 AM, in message [EMAIL PROTECTED], Sid Stuart [EMAIL PROTECTED] wrote: 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

Re: [Ganglia-general] Debugging Gmond Python Metric Module

2008-08-13 Thread Bernard Li
Hi Sid: On Wed, Aug 13, 2008 at 9:42 AM, Sid Stuart [EMAIL PROTECTED] wrote: Thanks for going to all the effort. I think the tabbing bug was inserted by cut and paste as the cacheHits() function works on my system. I am beginning to believe the problem is with running any Python Metric

[Ganglia-general] Debugging Gmond Python Metric Module

2008-08-12 Thread Sid Stuart
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

Re: [Ganglia-general] Debugging Gmond Python Metric Module

2008-08-12 Thread Bernard Li
HI Sid: On Tue, Aug 12, 2008 at 2:03 PM, Sid Stuart [EMAIL PROTECTED] wrote: 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'

Re: [Ganglia-general] Debugging Gmond Python Metric Module

2008-08-12 Thread Sid Stuart
Hi Benard, [EMAIL PROTECTED] conf.d]# pwd /etc/ganglia/conf.d [EMAIL PROTECTED] conf.d]# ls diskusage.pyconf.off *memcached.pyconf* tcpconn.pyconf [EMAIL PROTECTED] python_modules]# pwd /usr/lib64/ganglia/python_modules [EMAIL PROTECTED] python_modules]# ls example.py example.pyo

Re: [Ganglia-general] Debugging Gmond Python Metric Module

2008-08-12 Thread Bernard Li
Hi Sid: On Tue, Aug 12, 2008 at 2:31 PM, Sid Stuart [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] conf.d]# pwd /etc/ganglia/conf.d [EMAIL PROTECTED] conf.d]# ls diskusage.pyconf.off memcached.pyconf tcpconn.pyconf [EMAIL PROTECTED] python_modules]# pwd /usr/lib64/ganglia/python_modules

Re: [Ganglia-general] Debugging Gmond Python Metric Module

2008-08-12 Thread Sid Stuart
Thanks for the suggestions Bernard. I ran the script as nobody and it runs fine. I have been running gmond in debug mode, that is where I got my original error message, gmond -d 10 loaded module: core_metrics loaded module: cpu_module loaded module: disk_module loaded module: load_module loaded

Re: [Ganglia-general] Debugging Gmond Python Metric Module

2008-08-12 Thread Bernard Li
Hi Sid: On Tue, Aug 12, 2008 at 2:48 PM, Sid Stuart [EMAIL PROTECTED] wrote: Thanks for the suggestions Bernard. I ran the script as nobody and it runs fine. I have been running gmond in debug mode, that is where I got my original error message, gmond -d 10 loaded module: core_metrics

Re: [Ganglia-general] Debugging Gmond Python Metric Module

2008-08-12 Thread Brad Nicholes
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

Re: [Ganglia-general] Debugging Gmond Python Metric Module

2008-08-12 Thread Brad Nicholes
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