David Birdsong wrote:
> You need modpython.conf to include any .pyconf's not gmond.conf
> itself.  Change the include mysqld.pyconf to:
> include ('/etc/ganglia/conf.d/*.conf')
> 
> then in /etc/ganglia/conf.d/modpython.conf you should have yet another 
> include:
> grep conf /etc/ganglia/conf.d/modpython.conf
> include ('/etc/ganglia/conf.d/*.pyconf')
> 
> it's important that modpython loads your modules, not gmond itself.

Thanks for the suggestion.

Ok, I did this and get the same result.

It also occurred to me that my python modules mysql.py and DButil.py 
were on a read-only filesystem and so python couldn't write the compiled 
.pyc files. I'm not sure whether that matters, but to be safe, I moved 
them to a writeable filesystem and changed the params line in 
modpython.conf accordingly. Now I see the .pyc files created which I 
guess is a good sign.

But I still get 'Unable to find the metric information for $foo. 
Possible that the module has not been loaded.' for all the mysql related 
metrics.

gmond.log looks like this:

2010-12-10 11:04:17,433 - root - DEBUG   Thread-140719978264304 - 
starting up
2010-12-10 11:04:17,433 - root - DEBUG   Thread-140719978264304 - init: 
{'passwd': 'd%bWenAut^', 'user': 'ganglia', 'host': 'localhost', 
'get_slave': 'False', 'get_innodb': 'True', 'get_master': 'False'}
2010-12-10 11:04:17,433 - root - DEBUG   Thread-140719978264304 - 
updating stats
2010-12-10 11:04:17,433 - root - DEBUG   Thread-140719978264304 - 
refreshing stats
2010-12-10 11:04:17,457 - root - ERROR   Thread-140719978264304 - error 
updating stats
2010-12-10 11:04:32,456 - root - DEBUG   Thread-140719978264304 - 
updating stats
2010-12-10 11:04:32,457 - root - DEBUG   Thread-140719978264304 - 
refreshing stats
2010-12-10 11:04:32,457 - root - ERROR   Thread-140719978264304 - error 
updating stats
2010-12-10 11:04:32,458 - root - ERROR   Thread-140719978264304 - 
skipped innodb_pending_normal_aio_reads
2010-12-10 11:04:32,458 - root - ERROR   Thread-140719978264304 - 
skipped innodb_pending_log_writes


------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to