1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Update plugins/mongodb/mongo_lag

fixed pymongo connection - now allows to connect to a port different from 27017
This commit is contained in:
jdponomarev 2012-09-25 12:32:26 +04:00
parent bac376c23e
commit c854b3b70d

View file

@ -25,7 +25,7 @@ import pymongo
def _get_members():
host = os.environ.get('host', '127.0.0.1')
port = os.environ.get('port', 27017)
conn = pymongo.Connection(host)
conn = pymongo.Connection(host,port)
repl_status = conn.admin.command("replSetGetStatus")
members = {}