[collectd] How to monitor multiple instances of something with the same python module?

Finn, Dan dfinn at ea.com
Mon Feb 23 04:16:45 CET 2015


My python isn't the strongest but I think my only option is to try and hack my way through making this be able to work with multiple instances, unless someone else has another module that they know of that would work better?

Would you mind pointing me in the right direction for how or where I would modify the module to be able to support multiple instances?

Thanks,
Dan

________________________________________
From: Finn, Dan
Sent: Friday, February 20, 2015 2:44 PM
To: Sven Trenkel
Subject: Re: [collectd] How to monitor multiple instances of something with the same python module?

I am.

Unfortunately I think that person has stopped maintaining it as I had posted another issue that I was having weeks ago and have yet to hear back.  Unfortunately I'm running into the exact same thing with a mongo module I'm using.

________________________________________
From: collectd <collectd-bounces at verplant.org> on behalf of Sven Trenkel <collectd at semidefinite.de>
Sent: Friday, February 20, 2015 2:41 PM
To: collectd at verplant.org
Subject: Re: [collectd] How to monitor multiple instances of something with the same python module?

Are you using this plugin: https://github.com/sebest/collectd-mongodb

Looking at the code, it doesn't seems to be possible to monitor more
than one database. Which is strange, because it's implemented as an
object, so it would be trivial to create one instance per database, but
the config code doesn't do that. I'd suggest filing a ticket on their
github page.

Until that's fixed you could use a bad workaround:
Create a few copies of that Python file with different names and load
and configure every file individually. Not great, but it should work.

_______________________________________________
collectd mailing list
collectd at verplant.org
http://mailman.verplant.org/listinfo/collectd



More information about the collectd mailing list