Skip to content
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

Plugin Misbehaving with Mongo Version 2.4.3 for Index_miss_ration Call. With CRITICAL - General MongoDB Error: 'note' #81

Open
saurajeet opened this issue May 28, 2013 · 3 comments

Comments

@saurajeet
Copy link

$ 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

@saurajeet
Copy link
Author

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
 ....

@mzupan
Copy link
Owner

mzupan commented May 28, 2013

Looks like you don't have that in your mongo stats.. can you send post the output of

db.serverStatus();

In your mongo shell

@mzupan
Copy link
Owner

mzupan commented May 28, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants