Update index.py

pull/109/head
midoks 3 years ago
parent 0034e852d5
commit 1451a38be8
  1. 6
      plugins/mongodb/index.py

@ -202,10 +202,16 @@ def runInfo():
result["uptime"] = serverStatus['uptime']
result['db_path'] = '/var/lib/mongo'
if os.path.exists("/var/lib/mongodb"):
result['db_path'] = '/var/lib/mongodb'
if mw.isAppleSystem():
result['db_path'] = getServerDir() + "/data"
result["connections"] = serverStatus['connections']['current']
if 'catalogStats' in serverStatus:
result["collections"] = serverStatus['catalogStats']['collections']
result["dbs"] = showDbList

Loading…
Cancel
Save