naparuba/shinken — comment on commit ab4e79781e9785679dc1545197433403e00a6f14
File:  line 0
By naparuba:

Yes, a full uri like that is definitivly beter and more flexible :)

Jean

Le 20 janv. 2012 17:14, "Gerhard Lausser" <
reply@reply.github.com>
a crit :
>
> I propose you use my init-code from logstore_mongodb
> BaseModule.__init__(self, modconf)
> self.plugins = []
> # mongodb://host1,host2:0815,host3/?safe=true;w=2;wtimeoutMS=2000
> self.mongodb_uri = getattr(modconf, 'mongodb_uri', None)
> self.database = getattr(modconf, 'database', 'logs')
>
> with "server" everyone thinks of a hostname. I prefer "mongodb_uri"
because this better makes clear that you can write much more than just a
hostname here. you can express multiple hosts and several flags, too.
>
> ---
> Reply to this email directly or view it on GitHub:
>
https://github.com/naparuba/shinken/commit/ab4e79781e9785679dc1545197433403e00a6f14#commitcomment-886448