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

Dennis Jacobfeuerborn dennisml at conversis.de
Sat Feb 14 04:44:01 CET 2015


The README file shows you how to do this:

    # mongodb.py is at path /opt/collectd-plugins/mongodb.py
    ModulePath "/opt/collectd-plugins/"

You can of course use a different directory if you want to.

Regards,
  Dennis

On 13.02.2015 22:43, Finn, Dan wrote:
> In that case I guess I¹m a bit confused.  Where should I put the python
> module and how do I tell collectd where it lives?
> 
> On 2/13/15, 2:37 PM, "Sven Trenkel" <collectd at semidefinite.de> wrote:
> 
>> On 13.02.2015 20:44, Finn, Dan wrote:
>>
>>>      ModulePath "/etc/collectd.d/"
>>
>> Oh wait, I'm guessing you don't actually have a main config file but
>> instead a config directory, which happens to be /etc/collectd.d/? Again,
>> in that case collectd will try to parse python code as a config file,
>> which will obviously not work. You need to move all code out of that
>> directory.
>>
>> _______________________________________________
>> collectd mailing list
>> collectd at verplant.org
>> http://mailman.verplant.org/listinfo/collectd
> 
> 
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd
> 




More information about the collectd mailing list