shinken-monitoring/mod-mongodb — pull request #5 by VicThor (2014-08-05 15:59:11+00:00)
Title: enh: make this module compatible with mongdb replica-set. fixes #2

Make this module compatible with mongdb replica-set:
- add import ReplicaSetConnection from pymongo
- add "replica_set" parameter in "get_instance" method
- add "self.replica_set" paramater in "__init__" method
- making connection to mongodb replica-set if parameter provided in cfg
- finally edit and add "replica-set" parameter to "/etc/modules/mongodb.cfg"

Briefly, I reuse bulks of code from mod-retention-mongodb which already handles Replica-set connection.