ganglia / gmond_python_modules

Repository of user-contributed Gmond Python DSO metric modules
http://sourceforge.net/apps/trac/ganglia/wiki/ganglia_gmond_python_modules
389 stars 354 forks source link

mysqld python module have error "Can't call the metric_init function in the python module" #224

Open yhb001002 opened 8 years ago

yhb001002 commented 8 years ago

When I use the mysql python module have error ,tail -f /var/log/message: Sep 14 09:51:53 localhost /usr/sbin/gmond[24970]: [PYTHON] Can't call the metric_init function in the python module [mysqlmo].#012 Sep 14 09:51:53 localhost abrt: Unable to find any metric information for 'filechecks(.+)'. Possible that a module has not been loaded.#012 .... I use #gmond -m can see python_module have loaded ,but mysql can't find ;

gmond -d2 there is no error at here.

mysql.pyconf modules { module { name = 'mysql_mo' language = 'python' param host { value = 'localhost' } param user { value = 'root' } param passwd { value = 'root' } param get_innodb { value = True } param get_master { value = False } param get_slave { value = False } param delta_per_second { value = True } } } and my mysql_mo.py in /usr/lib64/ganglia/python_modules didn't modify Any one know how to fix this ? Thanks!