Thanks! I'm about to use it with KVM and Vbox on Debian.
Le 02/05/13 18:46, Nicholas Satterly a écrit : > FYI, I finally got this working. Perhaps it had actually been working > all along but I hadn't noticed. I had assumed the the KVM's on the > hypervisor would show up as individual hosts within the same Ganglia > cluster as the hypervisor. I was mistaken. Metrics for all KVM's just > appear as metrics under the hypervisor hostname on which they run, > with the VM name prepended to the metric name. For example... > > <METRIC NAME="infpupmst11.vdisk_bytes_written" VAL="6246" TYPE="float" > UNITS="" TN="7" TMAX="60" DMAX="600" SLOPE="both"> > <EXTRA_DATA> > <EXTRA_ELEMENT NAME="TITLE" VAL="infpupmst11: VM Bytes Written"/> > <EXTRA_ELEMENT NAME="DESC" VAL="infpupmst11: VM Bytes Written"/> > <EXTRA_ELEMENT NAME="GROUP" VAL="vm disk"/> > </EXTRA_DATA> > </METRIC> > > So, in summary to get this working.., > > 1. ensure you are running the KVM-enabled version of hsflowd agent > (for RedHat/Centos you can just download it, for Ubuntu/Debian you > have to build your own) > 2. ensure you have configured the hsflowd agent to send metrics to the > ganglia collector by setting "collector { ip = 127.0.0.1 }" or > whatever destination your ganglia agent is running on > 3. ensure that you have configured the ganglia collector to receive vm > metrics using "sflow { accept_vm_metrics = yes }" > 4. ensure firewall rules allow udp/6343 > > And, if you are testing this with virtualbox on ubuntu/debian ensure > you are running the vbox enabled version of libvirt first -- you'll > probably have to compile from source packages. > > Hope that helps someone else. > > --Nick. > > On Tue, Feb 5, 2013 at 4:05 PM, Nicholas Satterly <nfsatte...@gmail.com> > wrote: >> Hi Cyrille, >> >> Can you run the following commands and copy-paste the output into a reply >> email? >> >> gmond --version >> strings /usr/sbin/gmond | grep -i sflow >> hsflowd -v >> >> Thanks, >> Nick >> >> On Tue, Feb 5, 2013 at 3:47 PM, Duverne, Cyrille >> <cyrille.duve...@euranova.eu> wrote: >>> Hello, >>> >>> Indeed this part was missing, but when I add it and restart ganglia, I get >>> an error saying that module sFlow doesn't exist... >>> >>> I think I'm not running an enough recent version of ganglia, I'm using 3.5.0 >>> >>> Thanks in advance for your help. >>> CyD >>> >>> >>> >>> Mardi 05/02/2013 à 13:21 Nicholas Satterly a écrit: >>> >>> Hi, >>> >>> Not sure if you ever solved your problem but I think you are missing >>> the following config stanza from gmond.conf for the gmond that is >>> receiving the sFlow packets. >>> >>> sflow { >>> accept_vm_metrics = yes >>> } >>> >>> I'm just trying this out myself for the first time and see the VM >>> metrics appear when gmond is run in debug mode but there is no trace >>> of them in the XML output. >>> >>> $ gmond -d 2 >>> ... >>> saving metadata for metric: infsrcprv10.vdisk_capacity host: smc02 >>> ***Allocating value packet for host--(null)-- and metric >>> --infsrcprv10.vdisk_capacity-- **** >>> ... >>> >>> I would guess that something is going wrong when decoding the sFlow >>> packets because a host of "(null)" can't possibly work. >>> >>> Has anyone else go this working? >>> >>> Regards, >>> Nick >>> >>> PS. I'm running ganglia agent version 3.5.0 and host sFlow agent version >>> 1.22.2. >>> >>> >>> On Wed, Jan 2, 2013 at 5:45 PM, Duverne, Cyrille >>> <cyrille.duve...@euranova.eu> wrote: >>>> Hello, >>>> >>>> I have a cluster of 4 machines, running Ubuntu 12.04 x86_64, sFlow and >>>> Ganglia, here below the config I've set up : >>>> >>>> Master instance : /etc/gmond.conf : >>>> >>>> /* Feel free to specify as many udp_send_channels as you like. Gmond >>>> used to only support having a single channel */ >>>> udp_send_channel { >>>> mcast_join = inferno.local >>>> /*mcast_join = 139.2.11.71 DEFAULT VALUE*/ >>>> port = 8649 >>>> ttl = 1 >>>> } >>>> >>>> /* You can specify as many udp_recv_channels as you like as well. */ >>>> udp_recv_channel { >>>> /* mcast_join = 239.2.11.71 DEFAULT VALUE*/ >>>> port = 8649 >>>> /* bind = 239.2.11.71 DEFAULT VALUE*/ >>>> family = inet4 >>>> } >>>> >>>> /* channel to receive sFlow */ >>>> /* 6343 is the default sFlow port, an explicit sFlow */ >>>> /* configuration section is needed to override default */ >>>> udp_recv_channel { >>>> port = 6343 >>>> } >>>> >>>> /* You can specify as many tcp_accept_channels as you like to share >>>> an xml description of the state of the cluster */ >>>> tcp_accept_channel { >>>> port = 8649 >>>> } >>>> >>>> Cluster machines : >>>> >>>> /etc/hsflowd.conf >>>> >>>> sflow { >>>> DNSSD = off >>>> polling = 20 >>>> sampling = 512 >>>> collector { >>>> ip = 192.168.0.100 >>>> udpport = 6343 >>>> } >>>> } >>>> >>>> /etc/gmond.conf : >>>> >>>> /* Feel free to specify as many udp_send_channels as you like. Gmond >>>> used to only support having a single channel */ >>>> udp_send_channel { >>>> mcast_join = inferno.local >>>> port = 8649 >>>> ttl = 1 >>>> } >>>> >>>> /* You can specify as many udp_recv_channels as you like as well. */ >>>> udp_recv_channel { >>>> port = 8649 >>>> family = inet4 >>>> } >>>> >>>> /* channel to receive sFlow */ >>>> /* 6343 is the default sFlow port, an explicit sFlow */ >>>> /* configuration section is needed to override default */ >>>> udp_recv_channel { >>>> port = 6343 >>>> } >>>> >>>> /* You can specify as many tcp_accept_channels as you like to share >>>> an xml description of the state of the cluster */ >>>> tcp_accept_channel { >>>> port = 8649 >>>> } >>>> >>>> I can't see any stats of the VM running on those hosts in Gnaglia web >>>> interface... Hosts are correctly monitored. >>>> >>>> What's wrong in this ? >>>> Thanks a lot for your help. >>>> >>>> Cheers >>>> Cyrille >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery >>>> and much more. Keep your Java skills current with LearnJavaNow - >>>> 200+ hours of step-by-step video tutorials by Java experts. >>>> SALE $49.99 this month only -- learn more at: >>>> http://p.sf.net/sfu/learnmore_122612 >>>> _______________________________________________ >>>> Ganglia-general mailing list >>>> Ganglia-general@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/ganglia-general >>>> >>> >>> >>> -- >>> gpg: using PGP trust model >>> pub 4096R/1EE38BD9 2013-01-06 [expires: 2018-01-06] >>> Key fingerprint = 3EE9 550D D9D8 DB65 58C2 B58D CE78 EC6C 1EE3 8BD9 >>> uid Nicholas Satterly (Debian Key) <nfsatte...@gmail.com> >>> sub 4096R/23804EE9 2013-01-06 [expires: 2018-01-06] >> >> >> -- >> gpg: using PGP trust model >> pub 4096R/1EE38BD9 2013-01-06 [expires: 2018-01-06] >> Key fingerprint = 3EE9 550D D9D8 DB65 58C2 B58D CE78 EC6C 1EE3 8BD9 >> uid Nicholas Satterly (Debian Key) <nfsatte...@gmail.com> >> sub 4096R/23804EE9 2013-01-06 [expires: 2018-01-06] > > -- Mayap Christine 2 rue Charles Camichel BP 7122 31071 Toulouse Cedex 7 0534322169 ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general