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
8fc3d29dd6
commit
923e134dd0
1 changed files with 2 additions and 3 deletions
|
@ -33,9 +33,8 @@ def _get_members():
|
||||||
if username:
|
if username:
|
||||||
connAuth = conn['admin']
|
connAuth = conn['admin']
|
||||||
connAuth.authenticate(username, password)
|
connAuth.authenticate(username, password)
|
||||||
repl_status = conn.admin.command("replSetGetStatus")
|
|
||||||
else:
|
repl_status = conn.admin.command("replSetGetStatus")
|
||||||
repl_status = conn.admin.command("replSetGetStatus")
|
|
||||||
|
|
||||||
members = {}
|
members = {}
|
||||||
for member in repl_status['members']:
|
for member in repl_status['members']:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue