Does Virtualbox support libvirt? If so, you can compile the Host sFlow
agent to link to the libvirt library to obtain VM statistics.
Otherwise, if there is a Virtualbox specific performance library that can
be used to retrieve metrics (Host sFlow uses libxenstat for Xen and WMI for
Hyper-V) then it shouldn't be too hard to write an adapter.
The best place for questions on the Host sFlow agent is the mailing list,
https://lists.sourceforge.net/lists/listinfo/host-sflow-discuss
On Tue, Mar 12, 2013 at 3:34 AM, Mayap Christine <
[email protected]> wrote:
> Hello
>
> Thanks for this orientation!
>
> When using Virtualbox, is there a special configuration to be able to
> get the VM metrics?
>
> Le 06/02/2013 12:33, Nicholas Satterly a écrit :
> > Hi,
> >
> > This is very odd. I don't understand how you could be running version
> > 3.5.0 of gmond without sFlow support enabled. Did you build this gmond
> > yourself and run "configure" with the "--disable-sflow" option because
> > it is enabled by default.
> >
> > I suggest you either rebuild gmond and ensure that you compile with
> > sFlow support enabled or download a packaged version of ganglia that
> > has sFlow support.
> >
> > This version for Ubuntu Raring should work...
> > http://packages.ubuntu.com/raring/ganglia-monitor
> >
> > ... or this version for Debian Wheezy...
> >
> http://packages.debian.org/search?suite=wheezy&searchon=names&keywords=ganglia
> >
> > Regards,
> > Nick
> >
> > On Tue, Feb 5, 2013 at 6:59 PM, Duverne, Cyrille
> > <[email protected]> wrote:
> >> Hello Nicholas,
> >>
> >>
> >> Thanks a lot for your help.
> >>
> >> Please find below the outputs of the commands :
> >>
> >> gmond --version
> >> gmond 3.5.0
> >>
> >>
> >> strings /usr/sbin/gmond | grep -i sflow
> >> no output
> >>
> >> hsflowd -v
> >> -bash: /usr/sbin/hsflowd: Permission denied
> >>
> >> sudo hsflowd -v
> >> hsflowd version 1.22.2
> >>
> >> Thanks.
> >>
> >> CyD
> >>
> >> "Imagination is more important than Knowledge"
> >> Albert Einstein
> >>
> >>
> >>
> >> Mardi 05/02/2013 à 17:05 Nicholas Satterly a écrit:
> >>
> >> 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
> >> <[email protected]> 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
> >>> <[email protected]> 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
> >>>> [email protected]
> >>>> 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) <
> [email protected]>
> >>> 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) <
> [email protected]>
> >> sub 4096R/23804EE9 2013-01-06 [expires: 2018-01-06]
> >
> >
>
>
> --
> Mayap Christine
> 2 rue Charles Camichel
> BP 7122 31071 Toulouse Cedex 7
> 0534322169
>
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> Ganglia-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
>
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general