mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Update mongo_lag
This commit is contained in:
parent
923e134dd0
commit
1357b8189e
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ def _get_members():
|
|||
port = os.environ.get('port', 27017)
|
||||
username = os.environ.get('username', '')
|
||||
password = os.environ.get('password', '')
|
||||
conn = pymongo.MongoClient(host,int(port))
|
||||
conn = pymongo.MongoClient(host, int(port))
|
||||
if username:
|
||||
connAuth = conn['admin']
|
||||
connAuth.authenticate(username, password)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue