[collectd] write_mongodb plugin working

2012-01-18 Thread Chris Lundquist
I would love to see this get pulled into the code base. There seems to be a few 
other outstanding pull requests there as well, so I thought I would post here 
since that is a secondary mirror.

https://github.com/octo/collectd/pull/12

Please let me know what I can do to expedite the process. Originally there was 
a missing opts structure that I nuked since it was not defined, along with 
some other pseudocode like things.

I compiled that code against

https://github.com/mongodb/mongo-c-driver tag v0.4


The mongo-c-driver doesn't have an install target so it was difficult to get 
the plugin to link against it as autoconf made some presumptions about having 
an include and lib directory.

Here is some sample output. The short tags of ts, i, h, etc were there 
already. I was wondering if it might be helpful to be more verbose? I assume 
that they are short for size reasons.

$ mongo
MongoDB shell version: 1.8.2
connecting to: test
 show dbs
admin   (empty)
collectd0.203125GB

 show collections
interface
load
memory
system.indexes

db.interface.find()
{ _id : ObjectId(4f15016613426e13ee1fce73), ts : 
ISODate(133611749-01--2147483647T05:08:46.720Z), h : 
collectd.example.com, i : lo, t : if_octets, ti : , rx : 
NumberLong(52595), tx : NumberLong(52595) }

 db.interface.count();
1608

 db.memory.find();
{ _id : ObjectId(4f15016613426e13ee1fce74), ts : 
ISODate(133611749-01--2147483647T00:22:26.560Z), h : 
collectd.example.com, i : , t : memory, ti : used, value : 
222003200 }___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd


Re: [collectd] Possible memory leak in python plugin?

2012-01-18 Thread Florian Forster
Hey,

On Wed, Jan 18, 2012 at 02:22:37AM +0100, Sven Trenkel wrote:
 Oh well, I uploaded a patch to github, it should appear in the
 official collectd repository soonish.

thanks for fixing this, Sven! I've cherry-picked the commit to the
collectd-4.10 branch which is available from git.verplant.org and
GitHub.

Best regards,
—octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x0C705A15
http://octo.it/


signature.asc
Description: Digital signature
___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd


Re: [collectd] iptables, netlink, irq plugins seems not to work correctly

2012-01-18 Thread Bostjan Skufca
Hi all collectders :)

I've found this old thread about IRQ plugin not working correctly
(excessive logging of some unsuccessful parsing of strings as numbers). Old
thread is here:
http://mailman.verplant.org/pipermail/collectd/2011-July/004638.html

As I was submitting some patches before I suspected that my patches might
have introduced that bug mentioned above. I've created a patch for this,
you can download it from here:
http://source.a2o.si/patches/collectd-5.0.1-fix-irq-error.diff

Octo, please incorporate this patch in the next collectd release (if it
passes your coding standards, of course).
I've made parsing code a bit more intuitive and I've also added a few
additional comments.

Best regards,
b.
___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd


[collectd] Unable to load Plugin amqp -- cannot find dependency librabbitmq.so

2012-01-18 Thread Anna Shen
Hi there,

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.

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:

1. install collectd from https://github.com/octo/collectd.git
2. *install rabbitmq from https://github.com/rabbitmq/rabbitmq-c
3. re-configure /opt/collectd/etc/collectd.conf by un-commenting amqp
plugin body
4. ./configure
5. restart collectd by execute /opt/collectd/sbin/collectd

all went well until i hit 5. I got the following error message:

*
*root@server-32615:~# /opt/collectd/sbin/collectd*
*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.*
*Unable to load plugin amqp.*
**
*root@server-32615:~# ldd /opt/collectd/lib/collectd/amqp.so*
*linux-vdso.so.1 =  (0x7fff06f47000)*
*librabbitmq.so.0 = not found*
*libdl.so.2 = /lib/x86_64-linux-gnu/libdl.so.2 (0x7fee7c439000)
*
*libc.so.6 = /lib/x86_64-linux-gnu/libc.so.6 (0x7fee7c0a4000)*
*/lib64/ld-linux-x86-64.so.2 (0x7fee7c84b000)*
***
I did make a symbolic link for librabbitmq, see below:

root@server-32615:/opt/collectd/lib/collectd# ls -al
total 5076
drwxr-xr-x 2 root root   4096 2012-01-17 19:24 .
drwxr-xr-x 5 root root   4096 2012-01-17 07:50 ..
-rw-r--r-- 1 root root 114690 2012-01-17 07:50 amqp.a
-rwxr-xr-x 1 root root941 2012-01-17 07:50 amqp.la
-rwxr-xr-x 1 root root  79686 2012-01-17 07:50 amqp.so
..
-rw-r--r-- 2 root root 447538 2012-01-17 07:11 librabbitmq.a
-rwxr-xr-x 2 root root971 2012-01-17 07:11 librabbitmq.la
lrwxrwxrwx 2 root root 20 2012-01-17 07:11 librabbitmq.so -
librabbitmq.so.0.0.0
lrwxrwxrwx 2 root root 20 2012-01-17 07:11 librabbitmq.so.0 -
librabbitmq.so.0.0.0
-rwxr-xr-x 2 root root 284712 2012-01-17 07:11 librabbitmq.so.0.0.0


for the librabbitmq.so file I copied from /usr/local/bin


I just do not understand why collectd cannot recognize librabbitmq.so

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?

Can someone please help me figuring out what is missing from the picture.
Thank you so much .

Anna




*
___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd