Hi,<br><br><div class="gmail_quote">On Tue, Jul 28, 2009 at 5:43 AM, Sebastian Harl <span dir="ltr"><<a href="mailto:sh@tokkee.org">sh@tokkee.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Mahendra,<br>
<div class="im"><br>
On Mon, Jul 27, 2009 at 11:18:26PM -0400, Mahendra Kutare wrote:<br>
> I have collectd version 4.5.3 installed on Xen platform.<br>
<br>
</div>Which Linux distribution do you use (does ".el5" in the Kernel uname<br>
suggest RHEL5?)? Where did you get collectd from? Did you install a<br>
pre-compiled package or did you compile it yourself? In the later case,<br>
please provide the file "config.log" created during the build.<br>
<div class="im"></div></blockquote><div><br>I have RHEL5 and Xen 3.1.2 installed. This is installed through RHEL RPMS using puppet.<br>For installation of collectd I just did yum install collectd. So its the same as above.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
> 1. I enabled the Plugin section for libvirt but I don't see any entry for<br>
> libvirt in LoadPlugin section in default /etc/collectd.conf file. So I added<br>
> the entry myself and try starting the collectd with command and get this -<br>
><br>
> [root@samoa1 ~ 10:39 PM]$ /etc/init.d/collectd start<br>
> Starting collectd: Could not find plugin libvirt.<br>
> [2009-07-27 22:39:38] Found a configuration for the `libvirt' plugin, but<br>
> the plugin isn't loaded or didn't register a configuration callback.<br>
> [2009-07-27 22:39:38] Found a configuration for the `libvirt' plugin, but<br>
> the plugin isn't loaded or didn't register a configuration callback.<br>
> [ OK ]<br>
><br>
> Next I see the plugin directory specified at /etc/collectd.conf is located<br>
> at - *PluginDir "/usr/lib64/collectd"*<br>
><br>
> But libvirt.so.x file is not available there. I also see libvirt.so.x file<br>
> in /usr/lib/ directory. So do I have to copy or create soft links to that<br>
> file from plugin dir ?<br>
<br>
</div>libvirt.so.x is the libvirt library which is used by the "libvirt"<br>
plugin (which might be confusing and, in fact, even confuses the build<br>
system under certain conditions - we might want to think about renaming<br>
the plugin in version 5). The plugin binary is called "libvirt.so"<br>
without any version appended to it. If you cannot find that file in<br>
PluginDir, most likely the plugin is not available - I need answers to<br>
the questions above to provide more information about that.</blockquote><div><br>So I see libvirt.so is not present in /usr/lib64/collectd and even attempting to copy them from somewhere like /usr/lib64 to /usr/lib64/collectd i.e. PluginDir does not work as it says - MODULE_REGISTER is not defined so I understand collectd expects some funcs which are OBVIOUSLY not there in default.<br>
<br>Another point is - since everything is installed with RPMS I am not sure if COLLECTD expect source files for libvirt which to change/add funcs as the way it requires e.g. MODULE_REGISTER func for libvirt in libvirt.so in PLUGIN_DIR ?<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<div class="im"><br>
> 2. I see there is a plugin for gmond - which essentially recieves data from<br>
> ganglia gmonds but Is there a way to send collectd data to ganglia gmond ?<br>
<br>
</div>Nope, that is not (yet?) possible. Patches are welcome! ;-)<br>
<div class="im"></div></blockquote><div><br>Well as part of my work, I will have to get this working, So once am done with my experiments I can contribute the patch. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
</div></blockquote></div><br>Thanks<br>Mahendra<br>