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.
(i think i'm describing this correctly)
On Thu, Dec 9, 2010 at 4:37 PM, Duncan Hutty <[email protected]> wrote:
> I have just compiled a clean version of gmond against python2.6, and I
> have lots of pretty new graphs for 2 hosts in a cluster called 'Test'.
>
> One of these hosts is a mysql server and I'd like to use the scripts in
> gmond-python-modules[1] to monitor it. So in my gmond.conf, I have
>
> include ('/etc/ganglia/conf.d/mysqld.pyconf')
>
> and mysqld.pyconf is unmodified except for the username/password
> necessary to connect to my mysqld. But then when I run gmond on the
> mysql server, I can see that it's failing. I have verified that I can
> write a python script using the same credentials from that box using the
> same python install that can connect to the mysqld.
>
> Here's the output, any suggestions?
>
>
> /usr/local/sbin/gmond -c /etc/ganglia/gmond.conf -p /var/run/gmond.pid -d 9
> loaded module: core_metrics
> loaded module: cpu_module
> loaded module: disk_module
> loaded module: load_module
> loaded module: mem_module
> loaded module: net_module
> loaded module: proc_module
> loaded module: sys_module
> loaded module: python_module
> udp_recv_channel mcast_join=NULL mcast_if=NULL port=8649 bind=NULL
> tcp_accept_channel bind=NULL port=8649
> udp_send_channel mcast_join=NULL mcast_if=NULL host=aux.campus.local
> port=8649
>
> Unable to find the metric information for
> 'mysql_innodb_pending_normal_aio_reads'. Possible that the module has
> not been loaded.
> Unable to find the metric information for
> 'mysql_innodb_pending_log_writes'. Possible that the module has not been
> loaded.
> Unable to find the metric information for 'mysql_innodb_transactions'.
> Possible that the module has not been loaded.
> Unable to find the metric information for
> 'mysql_innodb_pending_chkp_writes'. Possible that the module has not
> been loaded.
>
> <snipped lots more similar 'Unable to find ...' messages>
>
> [1] https://github.com/ganglia/gmond_python_modules
>
> --
> Duncan Hutty
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Ganglia-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
>
------------------------------------------------------------------------------
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general