I currently add some metrics to ganglia python plugin which monitor MySQL status.
It has been working for a long time. after modifying the mysql.py, I restart gmond, and log shows
[PYTHON] Can't import the metric module [mysql].
I run gmond -m
and get the result:
[PYTHON] Can't import the metric module [mysql].
Traceback (most recent call last):
File "/usr/lib/ganglia/python_modules/mysql.py", line 49, in <module>
import MySQLdb
ImportError: No module named MySQLdb
I can import MySQLdb in python cli, what's the problem?