Re: [Ganglia-general] Problem displaying Virtual Machine data with hsflowd and ganglia 3.2.0 in an Openstack Compute node.

2011-08-17 Thread santosh gangwani
try having soft links using ln command, may or may not work though :)
ln -s

On Wed, Aug 17, 2011 at 4:17 PM, Emanuele Verga
 wrote:
> Hi Neil,
> thanks for the suggestion.
> I tried to do it. After recompiling hsflowd i checked the files it had open
> and it showed:
> hsflowd   30019       nobody  mem       REG              251,3       84728
>   927248 /usr/lib/libxenctrl.so.3.2.0
> hsflowd   30019       nobody  mem       REG              251,3       22928
>   927250 /usr/lib/libxenstore.so.3.0.0
> but this solution didn't work.
> Virtual machines stopped showing up in ganglia and hsflowd gave this error:
> ERROR Internal error: Could not obtain handle on privileged command
> interface (2 = No such file or directory)
> xc_interface_open() failed : No such file or directory
> then it continued to work normally  (hsflowd log file:
> http://uploading.com/files/get/a3876c8b/ ) but it didn't report anything to
> ganglia and the VMS were shown as down, the reporting for the physical host
> instead it's working perfectly, as before.
> If it can help you, the implementation of Openstack we have uses KVM to
> virtualize the hosts. Could it be related?
> Thanks again,
> Emanuele
> 2011/8/16 Neil Mckee 
>>
>> Hello,
>> On an OpenStack node you may be able to use libxenstore instead of
>> libvirt.  You'll need to recompile hsflowd to try this.  Looking at
>> trunk/src/Linux/Makefile it appears to look for libvirt first,  but you can
>> override that by compiling hsflowd like this:
>> make clean
>> make LIBVIRT=no
>> The Makefile will then test for libxenstore and libxenctrl.  If it finds
>> them it will compile with -DHSF_XEN (instead of -DHSF_VRT),  and you may get
>> better results.  Please let me know what happens.
>> Neil
>>
>>
>> On Aug 16, 2011, at 2:14 AM, Emanuele Verga wrote:
>>
>> Hi,
>> we have a problem with the following installation:
>> we have a system that’s a compute node in an Openstack test installation.
>> Now on this machine we decided to install Ganglia, to check it’s
>> monitoring capabilities regarding virtual machines hosted on that node by
>> Openstack.
>> We then proceeded to add the repository for ganglia version 3.2 and
>> install:
>> Hsflowd                                     1.18
>> Ganglia Monitor Demon              3.2.0.0
>> Ganglia Meta demon                  3.2.0.0
>> Ganglia Web FronEnd                3.2.0.0
>> Dwoo                                        1.1.1
>> all on the same machine and to configure ports accordingly.
>> All said and done, the web frontend shown  the physical host and all of
>> the VM, but we were unable to:
>> See the hypervisor section in the physical host statistics. It simply is
>> not there.
>> See the graphical preview for VM statistics
>> (http://imageshack.us/photo/my-images/585/screenshotgangliacomput.png/). The
>> thumbnail are missing but the links  do work, clicking on one of the missing
>> thumbnails you are taken to the details page for that VM.
>> See details regarding VM hard disk and I/O.
>> (http://imageshack.us/photo/my-images/694/screenshotgangliainstan.png/)
>> Debugging hsflowd we found errors similar to the following:
>> Aug 16 06:26:57 eta hsflowd:
>> virStorageLookupByPath(/var/lib/nova/instances/instance-004d/disk.local)
>> failed
>> Aug 16 06:26:57 eta hsflowd:
>> virStorageLookupByPath(/var/lib/nova/instances/instance-004d/disk)
>> failed
>> The strange thing is, the path is correct.
>> We checked libvirt using virsh  and found that the Storage Volumes are not
>> reported  by libvirt, it seems because libvirt by default search
>> informations in path /var/lib/libvirt/images,  instead nova places them
>> inside /var/lib/nova/instances/INSTANCENAME/.
>> Did you have the same problems when testing for Sflow/ Openstack ? How did
>> you manage to resolve it?
>> Any help is appreciated.
>> Thanks in advance for your support!
>>
>> --
>> uberSVN's rich system and user administration capabilities and model
>> configuration take the hassle out of deploying and managing Subversion and
>> the tools developers use with it. Learn more about uberSVN and get a free
>> download at:  http://p.sf.net/sfu/wandisco-dev2dev
>> ___
>> Ganglia-general mailing list
>> Ganglia-general@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/ganglia-general
>>
>
>
> --
> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
> user administration capabilities and model configuration. Take
> the hassle out of deploying and managing Subversion and the
> tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
> ___
> Ganglia-general mailing list
> Ganglia-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
>
>

--

[Ganglia-general] ganglia 3.1.7 compilation error - rhel 5.6 - fix

2011-08-09 Thread santosh gangwani
Got error saying 'undefined reference to in_xml_list' when trying to
compile Ganglia 3.1.7
on RHEL 5.6 - gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50)
Was not getting this earlier on RHEL 5.5 (gcc (GCC) 4.1.2 20080704
(Red Hat 4.1.2-44)

Manual fix used:

changed file gmetad/Makefile.am:
replace $$ with $ in the line
gperf -l -H xml_hash -t -F ', 0' -N in_xml_list -k '1,$$' -W xml_tags
xml_hash.gperf > xml_hash.c
so line becomes
gperf -l -H xml_hash -t -F ', 0' -N in_xml_list -k '1,$' -W xml_tags
xml_hash.gperf > xml_hash.c

Full error details:

gcc -std=gnu99 -I../lib -I../gmond -I../include
> -D_LARGEFILE64_SOURCE -DSYSCONFDIR=\"/etc/ganglia\" -g -O2 
> -fno-strict-aliasing
> -Wall -D_REENTRANT -o .libs/gmetad gmetad.o cmdline.o data_thread.o server.o
> process_xml.o rrd_helpers.o conf.o type_hash.o xml_hash.o cleanup.o  
> ../lib/.libs/libganglia.so
> -lrrd -lm -ldl -lnsl -lpcre /usr/lib64/libexpat.so -lconfuse 
> /usr/lib64/libapr-1.so
> -lpthread  -Wl,--rpath -Wl,/usr/lib64
> process_xml.o: In function `end':
> /var/tmp/ganglia/gmetad/process_xml.c:1152:
> undefined reference to `in_xml_list'
> process_xml.o: In function `fillmetric':
> /var/tmp/ganglia/gmetad/process_xml.c:86:
> undefined reference to `in_xml_list'
> process_xml.o: In function `startElement_EXTRA_ELEMENT':
> /var/tmp/ganglia/gmetad/process_xml.c:767:
> undefined reference to `in_xml_list'
> process_xml.o: In function `start':
> /var/tmp/ganglia/gmetad/process_xml.c:985:
> undefined reference to `in_xml_list'
> process_xml.o: In function `startElement_GANGLIA_XML':
> /var/tmp/ganglia/gmetad/process_xml.c:953:
> undefined reference to `in_xml_list'
> process_xml.o:/var/tmp/ganglia/gmetad/process_xml.c:591:
> more undefined references to `in_xml_list' follow
> collect2: ld returned 1 exit status
> make[2]: *** [gmetad] Error 1
> make[2]: Leaving directory `/var/tmp/ganglia/gmetad'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/var/tmp/ganglia'
> make: *** [all] Error 2

--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general