collectd python module
Hello there,
I'm playing around with collectd at the moment, and I'd like the server to read in various data via a few python scripts.
According to the collectd-python manpage, I should import the collectd module via import collectd, but when trying in the python shell (both py2 and 3), it fails with ImportError saying there's no such module.
I installed collectd via apt-get install collectd collectd-utils. The manpage for collectd-python exists on my system, and I can see the python.so library under /usr/lib/collectd directory.
My collectd.conf contains the following:
<LoadPlugin python>
Globals true
</LoadPlugin>
<Plugin python>
ModulePath "/home/<myhome>/scripts"
</Plugin>
There is no error related to the python plugin in syslog when restarting the collectd service.
I tried googling around for the package, but nothing came up, apart from the collectd package on pip, which I assume is something else, since it is for sending external data to the collectd server, and a few collectd mailing list threads describing the same problem with no answer.
Anybody knows what I'm doing wrong? Any help solving this will be appreciated!
Thanks.
Posted Nov 14, 2015, 10:36 AM UTC