We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ python /usr/lib64/nagios/plugins/custom/check_mongodb.py -H mongo-host -u admin -d mrs -p qwedsa -D -A index_miss_ratio -C .1 CRITICAL - General MongoDB Error: 'note' Using Pymongo 2.1.1
The text was updated successfully, but these errors were encountered:
Pasting Python Listfunc Dump CRITICAL - General MongoDB Error: 'note'
functions called: filename: /usr/lib/python2.6/site-packages/hashlib-20081119-py2.6-linux-x86_64.egg/hashlib.py, modulename: hashlib, funcname: <lambda> filename: /usr/lib/python2.6/site-packages/hashlib-20081119-py2.6-linux-x86_64.egg/hashlib.py, modulename: hashlib, funcname: <module> filename: /usr/lib64/nagios/plugins/custom/check_mongodb.py, modulename: check_mongodb, funcname: <module> filename: /usr/lib64/nagios/plugins/custom/check_mongodb.py, modulename: check_mongodb, funcname: exit_with_general_critical filename: /usr/lib64/nagios/plugins/custom/check_mongodb.py, modulename: check_mongodb, funcname: index_miss_ratio filename: /usr/lib64/nagios/plugins/custom/check_mongodb.py, modulename: check_mongodb, funcname: main filename: /usr/lib64/nagios/plugins/custom/check_mongodb.py, modulename: check_mongodb, funcname: optional_arg filename: /usr/lib64/nagios/plugins/custom/check_mongodb.py, modulename: check_mongodb, funcname: set_read_preference ....
Sorry, something went wrong.
Looks like you don't have that in your mongo stats.. can you send post the output of
db.serverStatus();
In your mongo shell
I also pushed a change just now to make the try/except fail better if it has note in the indexCounter array which means the check has failed
No branches or pull requests
$ python /usr/lib64/nagios/plugins/custom/check_mongodb.py -H mongo-host -u admin -d mrs -p qwedsa -D -A index_miss_ratio -C .1
CRITICAL - General MongoDB Error: 'note'
Using Pymongo 2.1.1
The text was updated successfully, but these errors were encountered: