New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mongo_lock throws an error #12
Comments
@ebeyrent I've forked this some time ago, merged in some of the other forks and added some more stuff. Can't guarantee I'll keep developing on it, but feel free to have a look :-p |
Seems to be easy to solve. def doData(): I will send a pull request soon. |
Update that solves the erh#12 The ["globalLock"]["ratio"] doesn't exist anymore, only ["globalLock"]["lockTime"] and ["globalLock"]["totalTime"].
Just a quick patch for the similar issue. It just happened that we got these plugins on mongo router, which has mongos process and does not return indexCounters on db.serverStatus() call: OLD: NEW: |
I am running mongo 2.4.8, and with the latest code from this repo, I get a key error when running the mongo_lock plugin:
$ ./mongo_lock
Traceback (most recent call last):
File "./mongo_lock", line 54, in
doData()
File "./mongo_lock", line 34, in doData
print name + ".value " + str( 100 * getServerStatus()["globalLock"]["ratio"] )
KeyError: 'ratio'
The text was updated successfully, but these errors were encountered: