mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing mongo btree munin graph.
This commit is contained in:
parent
be332f39a1
commit
181a3f5174
1 changed files with 1 additions and 2 deletions
|
@ -20,7 +20,6 @@ def getServerStatus():
|
|||
user = os.environ.get("user")
|
||||
password = os.environ.get("password")
|
||||
if user and password:
|
||||
print user,password
|
||||
passwdmngr = urllib2.HTTPPasswordMgrWithDefaultRealm()
|
||||
passwdmngr.add_password(None, 'http://%s:%d' % (host, port), user, password)
|
||||
authhandler = urllib2.HTTPDigestAuthHandler(passwdmngr)
|
||||
|
@ -30,7 +29,7 @@ def getServerStatus():
|
|||
return json.loads( raw )["serverStatus"]
|
||||
|
||||
def get():
|
||||
return getServerStatus()["indexCounters"]["btree"]
|
||||
return getServerStatus()["indexCounters"]
|
||||
|
||||
def doData():
|
||||
for k,v in get().iteritems():
|
||||
|
|
Loading…
Add table
Reference in a new issue