Hi there, <br><br>I am pretty new to collectd and have carefully read collectd official FAQ and spent significant time over internet for possible solutions and have tried all of them. I still cannot find a working solution. <br>
<br>I am trying to configure the collectd so that it can collects metrics data and publish them to an external rabbitmq server.  I found amqp plugin and did the following:<br><br>1. install collectd from <a href="https://github.com/octo/collectd.git">https://github.com/octo/collectd.git</a> <br>
2. <strong style="font-weight:normal">install rabbitmq from <a href="https://github.com/rabbitmq/rabbitmq-c">https://github.com/rabbitmq/rabbitmq-c</a><br>3. re-configure /opt/collectd/etc/collectd.conf by un-commenting amqp plugin body<br>
4. ./configure<br>5. restart collectd by execute "/opt/collectd/sbin/collectd"<br><br>all went well until i hit 5. I got the following error message:<br><br></strong><div style="margin-left:40px"><strong style="font-weight:normal">root@server-32615:~# /opt/collectd/sbin/collectd</strong><br>
<strong style="font-weight:normal">ERROR: lt_dlopen ("/opt/collectd/lib/collectd/amqp.so") failed: file not found. The most common cause for this problem are missing dependencies. Use ldd(1) to check the dependencies of the plugin / shared object.</strong><br>
<strong style="font-weight:normal">Unable to load plugin amqp.</strong><br><strong style="font-weight:normal"></strong><br><strong style="font-weight:normal">root@server-32615:~# ldd /opt/collectd/lib/collectd/amqp.so</strong><br>
<strong style="font-weight:normal">        linux-vdso.so.1 =>  (0x00007fff06f47000)</strong><br><strong style="font-weight:normal">        librabbitmq.so.0 => not found</strong><br><strong style="font-weight:normal">        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fee7c439000)</strong><br>
<strong style="font-weight:normal">        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fee7c0a4000)</strong><br><strong style="font-weight:normal">        /lib64/ld-linux-x86-64.so.2 (0x00007fee7c84b000)</strong><br>
</div><strong style="font-weight:normal"></strong><strong style="font-weight:normal"><br>I did make a symbolic link for librabbitmq, see below:<br><br>root@server-32615:/opt/collectd/lib/collectd# ls -al<br>total 5076<br>
drwxr-xr-x 2 root root   4096 2012-01-17 19:24 .<br>drwxr-xr-x 5 root root   4096 2012-01-17 07:50 ..<br>-rw-r--r-- 1 root root 114690 2012-01-17 07:50 amqp.a<br>-rwxr-xr-x 1 root root    941 2012-01-17 07:50 <a href="http://amqp.la">amqp.la</a><br>
-rwxr-xr-x 1 root root  79686 2012-01-17 07:50 amqp.so<br>......<br>-rw-r--r-- 2 root root 447538 2012-01-17 07:11 librabbitmq.a<br>-rwxr-xr-x 2 root root    971 2012-01-17 07:11 <a href="http://librabbitmq.la">librabbitmq.la</a><br>
lrwxrwxrwx 2 root root     20 2012-01-17 07:11 librabbitmq.so -> librabbitmq.so.0.0.0<br>lrwxrwxrwx 2 root root     20 2012-01-17 07:11 librabbitmq.so.0 -> librabbitmq.so.0.0.0<br>-rwxr-xr-x 2 root root 284712 2012-01-17 07:11 librabbitmq.so.0.0.0<br>
<br><br>for the librabbitmq.so file I copied from /usr/local/bin <br><br><br>I just do not understand why collectd cannot recognize librabbitmq.so <br><br>by the way, i tried install collectd 5.0.1 from .tar,  and collectd 4.x.x using apt tool, no luck either... by the way, the collectd from the git source i cloned has a version tag 5.0.0, something wrong?<br>
<br>Can someone please help me figuring out what is missing from the picture. Thank you so much .<br><br>Anna<br><br><br><br><br></strong>