mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 10:39:53 +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:
parent
bac376c23e
commit
c854b3b70d
1 changed files with 1 additions and 1 deletions
|
@ -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 = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue