Re: [collectd] Python Plugin issues - PyExc_ValueError

2010-05-05 Thread Sven Trenkel
On 2010-05-04 06:06, dartarrow-collectd wrote: Hi, I'm trying out the python plugin but I get this error when i start collectd: [2010-05-04 04:03:58] Unhandled python exception in importing module: ImportError: /usr/lib/python2.5/lib-dynload/time.so: undefined symbol:

Re: [collectd] python memleaks?

2010-07-11 Thread Sven Trenkel
On 2010-07-11 18:48, Krzysiek Szczuka wrote: Hi.. I want to make a python based module for pinging multiple devices and store it to db.. I've compiled collectd-4.10.0 with python plugin.. I've wrote very basic 'write do /dev/null' module in python, and memory usage over time grows.. When

Re: [collectd] NetApp plugin giving NANs

2011-03-17 Thread Sven Trenkel
On 15.03.2011 12:40, Mark Syms wrote: Hi, I've been trying to use the NetApp plugin to monitor a NetApp Fas2020 that I'm working with. Collectd is running on Debian, I've built a modified package of version 4.10.1-1 using the NetApp SDK to allow enabling the NetApp plugin. The NetApp is

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

2012-01-15 Thread Sven Trenkel
What version of collectd are you using? And until we find the cause of this behavior you might try to pull the constant parts of the submitted value out of the for loop. So, v = collectd.Values() v.plugin = 'mongostats' v.type = 'counter' could be put before the loop as it's just creating and

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

2012-01-15 Thread Sven Trenkel
Never mind, I think I found the bug. I'll test it tomorrow. If you compiled collectd yourself I'll send you a patch if you tell me the exact version number you're using. ___ collectd mailing list collectd@verplant.org

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

2012-01-17 Thread Sven Trenkel
As always in life the solution was not as simple as it appeared to be. Oh well, I uploaded a patch to github, it should appear in the official collectd repository soonish. If you want to compile a it yourself from source, this patch should work on the collectd-5.0 branch:

Re: [collectd] collectd python plugin

2013-05-08 Thread Sven Trenkel
On 2013-05-08 09:25, kangqiang wrote: hi guys, i am writing a python plugin, when i try to do this: import collectd it show me no module named collectd. Did you load the Python module in collectd? If so, did it print anything in the logs? If you can't find anything useful there, paste the

Re: [collectd] collectd Digest, Vol 92, Issue 4

2013-05-11 Thread Sven Trenkel
On 10.05.2013 09:23, kangqiang wrote: it seems it's not about config. When I write python plugin, i first need to import collectd. I tried to import it in ipython, it throws exception. anyway, my python collectd config as follows: Plugin python ModulePath

Re: [collectd] collectd Digest, Vol 92, Issue 9

2013-05-16 Thread Sven Trenkel
On 2013-05-12 14:20, kangqiang wrote: I'm really appreciate for your replying, it is helpful to me. Yes, I tried to import it in interactive interpreter, the backtrace just say no module named collectd. I can import time, os,system module, and can print it well. hoping for your reply, thank

Re: [collectd] Issues when trying to use the python plugin for mongo

2015-02-13 Thread Sven Trenkel
On 13.02.2015 20:44, Finn, Dan wrote: Here is the snipet from my collectd.conf file where I enable the plugin: Plugin python ModulePath /etc/collectd.d/ Do you have something like Include /etc/collectd.d/* in your collectd config? Because in that case collectd would try to parse the

Re: [collectd] [Libguestfs] collectd leaks SIGCHLD == SIG_IGN into plugins

2018-11-13 Thread Sven Trenkel
On 2018-11-13 12:25, Richard W.M. Jones wrote: The problem with all of this is that all the different plugins that expect different SIGCHLD behaviour are running in the same process and you can only have one behaviour for all of them. I encountered that with the Python plugin years ago,