>>> On 11/7/2007 at 1:37 PM, in message
<[EMAIL PROTECTED]>, "Bernard Li"
<[EMAIL PROTECTED]> wrote:
> Hi guys (specifically Brad ;-):
> 
> Using Ganglia trunk SVN r860.
> 
> I have disabled all the python modules already:
> 
> # ls -l /etc/ganglia/conf.d/
> total 16
> -rw-r--r--  1 root root  331 Nov  7 11:48 diskusage.pyconf.off
> -rw-r--r--  1 root root  417 Nov  7 11:48 modpython.conf
> -rw-r--r--  1 root root  715 Nov  7 11:48 multicpu.conf
> -rw-r--r--  1 root root 1090 Nov  7 11:48 tcpconn.pyconf.off
> 
> (the .pyconf have all been renamed .pyconf.off)
> 
> However, when I start gmond, it still tries to start up the tcpconn
> python module:
> 
> Nov  7 12:27:26 server1 gmond: gmond startup succeeded
> Nov  7 12:27:26 server1 GMOND[12568]: [PYTHON] Can't import the metric
> module [tcpconn].
> 
> Am I missing something?
> 

Yes, the fact that the .py file exists in the /usr/lib/ganglia/python_modules 
directory means that mod_python will automatically load the module.  Gmond will 
not try to collect metrics from it or call any of its handlers, but it will 
load the module.  The only way to avoid this is to move the .py file out of the 
directory or give it a different extention.  So to disable a python module, you 
not only have to rename the .conf file, but you also have to move or remove the 
corresponding .py file itself.
  So the more interesting question is why won't the tcpconn module load?  One 
of the nice things about building a gmond python module is that you can 
actually do all of the development and debugging completely independent from 
gmond.  In other words, you can just run the .py script directly through python 
and it will function just as if gmond had called it.  Have you tried to run 
tcpconn.py directly in python?  I would be interested to know what it is 
failing on.

Brad


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to