I have not seen issues with Centos 6 however I usually build my RPM packages. You could do that if you type

rpmbuild -tb ganglia-3.6.0.tar.gz

Alternatively if you are interested to try prebuilt packages you can find them here.

http://vuksan.com/centos/RPMS-6/x86_64/

Vladimir

On 02/08/2014 11:11 AM, Jeff Layton wrote:
Good morning,

I'm running a CentOS 6.5 system with ganglia 3.6.0 and
ganglia-web 3.5.12. I'm following the general guidelines in
this article:

http://sachinsharm.wordpress.com/tag/installing-ganglia/

Everything goes swimmingly and ganglia itself works fine. So I
decide to go to the next step and try using Python  with
gmond. I followed the general guidelines in this article:

http://sachinsharm.wordpress.com/2013/08/19/setup-and-configure-ganglia-python-modules-on-centosrhel-6-3/

But when I start up gmond I get a segfault as reported in
/var/log/messages.


Feb  5 19:58:47 home4 kernel: gmond[17992]: segfault at 8 ip 00000036a7ce6ceb sp 00007fffaad46bf0 error 4 in libpython2.6.so.1.0[36a7c00000+15d000]
Feb  5 19:58:47 home4 abrt[18003]: Saved core dump of pid 17992 (/usr/local/sbin/gmond) to /var/spool/abrt/ccpp-2014-02-05-19:58:47-17992 (4284416 bytes)
Feb  5 19:58:47 home4 abrtd: Directory 'ccpp-2014-02-05-19:58:47-17992' creation detected
Feb  5 19:58:47 home4 abrtd: Executable '/usr/local/sbin/gmond' doesn't belong to any package and ProcessUnpackaged is set to 'no'
Feb  5 19:58:47 home4 abrtd: 'post-create' on '/var/spool/abrt/ccpp-2014-02-05-19:58:47-17992' exited with 1
Feb  5 19:58:47 home4 abrtd: Deleting problem directory '/var/spool/abrt/ccpp-2014-02-05-19:58:47-17992'


I'm been trying to debug this but I have to admit that I'm
coming up blank. Running gmond with debug doesn't give
too much information:

[root@home4 laytonjb]# gmond -d 5 -c /etc/ganglia/gmond.conf
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
loaded module: python_module
Segmentation fault (core dumped)


I went back to the Mod_Python section of the book (p. 89) and
tried to make things as simple as possible to trace down the
segfault. I went back to the beginning and edited my gmond.conf
file so that the "module" section looks like the following:

modules {
  module {
    name = "core_metrics"
  }
  module {
    name = "python_module"
    path = "/usr/local/lib64/ganglia/modpython.so"
    params = "/usr/local/lib64/ganglia/python_modules/"
  }
  module {
    name = "cpu_module"
    path = "modcpu.so"
  }
  module {
    name = "disk_module"
    path = "moddisk.so"
  }
  module {
    name = "load_module"
    path = "modload.so"
  }
  module {
    name = "mem_module"
    path = "modmem.so"
  }
  module {
    name = "net_module"
    path = "modnet.so"
  }
  module {
    name = "proc_module"
    path = "modproc.so"
  }
  module {
    name = "sys_module"
    path = "modsys.so"
  }
}


Note that I installed ganglia into the default of /usr/local. I also
added the following line to the end of my gmond.conf file:

include('/etc/ganglia/conf.d/*.pyconf')


Note that my ganglia configuration files are in /etc/ganglia.

Gmond does _not_ segfault when I remove the python module lines
in gmond.conf even when I leave the "include" line in gmond.conf.
When I put the python module into the modules section gmond
segfaults. I even tried removing the "include" line in gmond.conf
and gmond still segfaults..

Any suggestions?

Thanks!

Jeff






------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk


_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers



------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to