Category Archives: monitoring

Adding Python support for Ganglia – gmond on Centos / RHEL

While creating Ganglia RPM packages for my Centos repository I got stuck with a lack of Python support in Ganglia – gmond. I’ll try to to explain details of this whole issue.

First of all one could just install ganglia-gmond packages from Epel repo – and that will make the general case. I checked EPEL packages and those contain so go for it ;) But I just couldn’t go that way as I had to create my own packages.

First of all – let’s check the compilation params regarding to Python:

So by default there should be Python support builtin. But after compiling & building there’s no library on /usr/lib64/ganglia and that is weird. Digging deeper in config.log there’s:

Hmm – that’s really weird. Let’s go even more deeper – now with

Ok so it’s true – by default there should be Python support. Let’s check further (still

Ah crap – and here it is. Python support will be disabled and library won’t be created when there’s no header files for Python on our OS. You can make sure if there is Python.h by using locate / find / whatever.

Solution? Just:

And that will make it.

Ganglia, multicast && KVM on CentOS

This is just a short note – I have to post it as this problem was really annoying and I couldn’t find any solutions in Google, so had to resolve it by myself.

Don’t know what Ganglia is? Check here: – it just kicks ass :)

Problem? I installed gmond on all our hosts / guests (CentOS 5/6, KVM virt, latest Ganglia daemons), also configured properly gmetad daemons and started this whole stuff using multicast. And it was working – for a while. After about 10-20 minutes it just stopped working on KVM guests. I saw no charts for those machines – but gmonds (even in debug mode) didn’t reveal any problems. And KVM hosts’ charts were fine (mostly..).

One more thing – in KVM guests I always set “deaf = yes” (just don’t want to have too much multicast traffic – i set it to “no” only on some bare hosts).

Ok so the problem.. I hung for some time on tcpdump / strace and came to the root of this problem – somehow there was no multicast traffic on KVM guests (I turned off iptables on KVM guests for the time of this whole issue – resolving). After some time I found 2 possible root causes:

  1. On KVM hosts by default there is multicast filter set on: no-ip-multicast (You can check if You have it turned on with following command: 

    If it’s turned on – You can turn it off with:

    And that should do this part of the trick
  2. And also – on CentOS KVM guests we have to turn off rp_filter in /etc/sysctl.conf:


    (You can try setting it to “loose mode” (so value: 2) instead of 0 – it can work for You and it’s always safer

Thats all for now. My sources for this one?