Re: [Ganglia-general] Problen with python module

2010-04-12 Thread Matt
On 8 March 2010 14:45, ivan.collan...@alumnos.unican.es wrote: Hi I'm writting a python module to check the status of a RAID, this is the module: import os def raid_handler(name): tw_cli = sudo /usr/local/bin/tw_cli /c0/u0 show status out = os.popen(tw_cli) f = out.read(18)

Re: [Ganglia-general] Problem with custom metrics

2010-04-12 Thread Hernandez, Hugo (NIH/NIAID) [C]
Brad, Thanks for your answer. On this email there are the first lines before to start listening all metrics data. It says that the python module was loaded but the I got an error message related to the metric tempHost. Here is relevant information from my gmond.conf file: module {

Re: [Ganglia-general] Problem with custom metrics

2010-04-12 Thread Bernard Li
Hi Hugo: On Mon, Apr 12, 2010 at 9:51 AM, Hernandez, Hugo (NIH/NIAID) [C] hugo.hernan...@nih.gov wrote: [r...@rocks ~]# python /opt/ganglia/lib64/ganglia/python_modules/hostTemp.py value for tempHost is 8 Try renaming your Python file tempHost.py. That's the name given to your module. You

Re: [Ganglia-general] Problem with custom metrics

2010-04-12 Thread Brad Nicholes
Actually Bernard is the guru here. thanks Bernard :) On 4/12/2010 at 12:20 PM, in message c7e8dca8.7895%hugo.hernan...@nih.gov, Hernandez, Hugo (NIH/NIAID) [C] hugo.hernan...@nih.gov wrote: Brad, Those changes did the trick. Thanks a lot! Now, I can explore my new metrics to be added.