[collectd] Welcome to the "collectd" mailing list

Mahendra Kutare mahendra.kutare at gmail.com
Wed Jul 29 04:10:33 CEST 2009


On Tue, Jul 28, 2009 at 4:42 PM, Mahendra Kutare
<mahendra.kutare at gmail.com>wrote:

>
> On Tue, Jul 28, 2009 at 4:08 PM, Mariusz Gronczewski <xani666 at gmail.com>wrote:
>
>> Hi,
>> > I am wondering if I have to build libvirt from source along with
>> collectd to
>> > make this work ? Or is there a way to make it work from RPM installation
>> of
>> > collectd and libvirt ?
>> >
>> Do u have libvirt-dev in  repo ? Thats enougth to build libvirt plugin
>> in collectd
>>
>>
> Well I found couple of things which I was missing -
>
> 1. I yum installed *collectd-virt* which puts collectd version of
> libvirt.so in my Plugin directory.
> This was not there earlier with installation *yum install collectd *and I
> would have to install libvirt-devel as mentioned below and then compile
> collectd from source.
>
> So this way I just *yum install collectd-virt* which for now makes it work
> for me.  I believe it takes care of libvirt-devel even if I did not had it
> earlier installed.
>
> Now I have libvirt installed and getting the metrics but the problem I have
> now is it gets me only CPU metrics by default.
>
> I want to atleast have 2-4 metrics - CPU, Memory, Network and Disk. How do
> I add these to be fetched from libvirt through collectd ?
>
> I do not see any options for that in -
>
> 162 <Plugin libvirt>
> 163     Connection "xen:///"
> 164 #   RefreshInterval 60
> 165 #   Domain "name"
> 166 #   BlockDevice "name:device"
> 167 #   InterfaceDevice "name:device"
> 168 #   IgnoreSelected false
> 169     HostnameFormat name
> 170 </Plugin>
>
> Do I just uncomment BlockDevice and InterfaceDevice for Disk and Network ?
> What about memory ?
>

Since I mentioned I was able to get the libvirt working with collectd .. It
also requires me to start libvirt daemon and then start collectd ..
For now I am able to get only CPU statistics..but even then I see after a
while libvirt deamon just dissappears and no longer running -

[root at samoa2 ~ 10:07 PM]$ /etc/init.d/libvirtd status
libvirtd is stopped
[root at samoa2 ~ 10:07 PM]$

but if I do tail on libvirt cpu statistics its still gettings the stats and
so I am wondering how is this statistics getting collected by COLLECTD if
libvirt daemon is no longer running.

[root at samoa2 ~ 10:07 PM]$ tail -f
/var/lib/collectd/csv/Domain-0/libvirt/virt_cpu_total-2009-07-28
1248833348,19386749.000000
1248833349,54430218.000000
1248833350,11854492.000000
1248833351,148050572.000000
1248833352,32229078.000000
1248833353,24888903.000000
1248833354,15100561.000000
1248833355,16550331.000000
1248833356,76380175.000000
1248833357,25201017.000000
1248833358,7488821.000000

So any idea how is this working and still generating stats ?? Does collectd
does require libvirt daemon only for starting libvirt plugin and there on it
does not  ?

Thanks
Mahendra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20090728/4df7f449/attachment.htm 


More information about the collectd mailing list